DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the checksum of a received rs232 string

Hello you
,
again a question.
A wind sensors answer (via RS232) is $WI,WVP=000.0,317,0*75\r\n where 000.0 is the wind direction, 317 the windspeed and 75 is a hex value checksum.
This checksum is created by XOR' ing all the hex values from the previous ASCII signs (left from the 75 checksum value) except the $ and * sign.
Is there a quick way to create this checksum in DASYlab?
The idea is to compare the checksum in DASYlab with the received checksum and, if not match, i.e. turn on a status light "corrupted data".
 
I think this question will often come up when devices with checksums are used. Therefore the question could be interesting to other forum users.
 
Thanks for you answer.
 
 
0 Kudos
Message 1 of 4
(8,226 Views)
Hello malteh,

I couldn't find a quick way to create checksums in DASYlab, but this forum entry might be of interest to you as the problem described is similar's to yours.



0 Kudos
Message 2 of 4
(8,203 Views)

Quite new to LabView....I am developing a project using the Serial VISA for my communication.

Is it possible for the VISA to be set-up to send/receive data with checksum that it can recognize and check automatically?

What kind of checksum can it generate? Or do I have to generate the checksum through the code

0 Kudos
Message 3 of 4
(6,444 Views)

This is the DASYLab Forum. You will want to repost your request in the appropriate VISA or LabVIEW forum.

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 4 of 4
(6,441 Views)