From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-02-2009 06:25 AM
I have posted before regarding my difficulties computing a CRC. At this point I have made a test program based on a VI downloaded from another thread on this forum. I've made some modifications to it, in order to be able to set poly, reflections etc. from outside the VI.
I have come to use an parametrized model for defining CRC algorithms, as described in this document: http://www.ross.net/crc/download/crc_v3.txt . According to this model my algorithm should be described
Name : "X-25"
Width : 16
Poly : 1021
Init : FFFF
RefIn : True
RefOut : True
XorOut : FFFF
Check : 906E
This description was given to me by someone at another forum, focused on computer interfacing. He came up with the name X-25, as far as I know it doesn't have anything specifically to do with that protocol (It should be used with a Philips patient monitor, which has it's own protocol, but appearently it has simillairities with X-25). The 'Check' is
The value you are suppoused to get when you run the ASCII-string '123456789' through the algorithm.
My questions: As far as I can see, this doesn't work. I've been trying it on some examples of sniffed communication and on the test string, and none of it gets a correct value. The test program allows you to set the parameters of the algorithms differently, but I haven't found another combination that works either. So at this point I want to rule out that there is a built in error in the CRC-computing VI itself. Any ideas?
02-02-2009 06:31 AM
02-02-2009 06:35 AM
"Abs_CRC_Test" is the main test program, it lets you set the parameters ("absolute CRC" is another word for "parametrized model CRC").
"Absolute_CRC" is the CRC-algorithm itself.
"Escape" removes escape characters from a frame
"ReflectByte" reflects a byte... : )
02-02-2009 11:12 AM - edited 02-02-2009 11:13 AM
From the attached archive extract the CRC16_Calculator.vi. The pic shows you how to setup the parameters.
02-02-2009 01:18 PM - edited 02-02-2009 01:19 PM
I have recently seen the other thread about CRC and made some checks.
The archive contains some of the VIs you have found and were provided in the other thread. Unfortunatly the VI you need is not part of the archive. So I attach the VI here.
02-03-2009 03:10 AM
I can't read the files in the archive, they are for an old version (I use LabVIEW 8.5). The CRC16_Calculator.vi is working excellently, though.
Thank you very much.
03-02-2011 10:50 AM
Hi Tzench. I am also writing code to communicate with the Philips Intellivue Patient Monitor. Might be interesting to chat. Let me know if you're interested.
03-15-2011 07:32 AM
Hi,
In the next few days I'll receive an Intellivue Monitor and I'll write some code to communicate with the equipment.
PM me you are you interested in some sort of cooperation that could ease both our tasks.
Let me know.
03-15-2011 09:01 AM
You do realize that you are asking for help in a 2 year old thread from someone who hasn't been back on the forums in the last 2 years. You might be better off starting a new thread.
03-15-2011 09:42 AM
Mark,
josborne posted a few days back, so in my humble opinion this is a live thread and it could be a way to get in touch as he doesn't have private messaging enable. Thanks