Skip to content

jo-tools/crccalculator

Repository files navigation

CRCCalculator

Xojo example projects (API1 & API2)
Cyclic Redundancy Check: CRC8, CRC16, CRC32

License: MIT

Description

This example Xojo project shows how CRC Calculations can be implemented in pure Xojo Code. Because CRC classes are not available in the Xojo Framework, one has to either use a 3rd Party Plugin - or calculate the Algorithm(s) manually.

Cyclic Redundancy Check Algorithm

This example is based on this documentation: Understanding CRC.
That article is also included as a PDF.

ScreenShots

Built Desktop application running on macOS:
ScreenShot: CRC16CalculatorDesktop

Built Desktop application running on Windows:
ScreenShot: CRC16CalculatorDesktop

Built Web application running on macOS:
ScreenShot: CRC16CalculatorWeb

Xojo

Requirements

Xojo is a rapid application development for Desktop, Web, Mobile & Raspberry Pi.

The Desktop application Xojo example project CRCCalculatorDesktop.xojo_project is using:

  • Xojo 2018r4
  • API 1

The Web application Xojo example project CRCCalculatorWeb.xojo_project is using:

  • Xojo 2023r3
  • API 2

How to use in your own Xojo project?

  1. Copy/paste the required CRC Calculator Classes into your project
  2. Create an instance of the Class
    • by using a predefined Algorithm: CRC16Calculator.CreateByType(CRC16Type.MODBUS)
    • or create a custom Calculator: New CRC16Calculator("CRC-16/GENIBUS", &h1021, &hffff, false, false, &hffff)
  3. Get the result: myCRCCalculatorInstance.Result("1234567890")

Xojo Web App 2 Docker

This repository contains Documentation about how to package a Xojo built Web Application in a Docker Image. The Web application Xojo example project CRCCalculatorWeb.xojo_project includes a Post Build Script which automates the task of building the Docker Image of the web application.

About

Juerg Otter is a long term user of Xojo and working for CM Informatik AG. Their Application CMI LehrerOffice is a Xojo Design Award Winner 2018. In his leisure time Juerg provides some bits and pieces for Xojo Developers.

Contact

E-Mail    Follow on Facebook    Follow on Twitter

Donation

Do you like this project? Does it help you? Has it saved you time and money?
You're welcome - it's free... If you want to say thanks I'd appreciate a message or a small donation via PayPal.

PayPal Dontation to jotools