07-14-2010 07:17 AM
@GerdW wrote:
Hi bala,
what about using an AND gate of 0x1FF to catch the 9 LSBs? Instead of the current 0x1F, which only gets 5 LSBs...
Don't know where my other "F" went. Thank GerdW.
07-14-2010 08:12 AM
07-14-2010 09:11 AM
Thank you very much for the answers now i am able to get the 1's complement correctly by adding 1FF to the AND gate.
I am attaching the manual with this post please have a look.
regards,
Bala
07-14-2010 11:22 AM
bala1234,
The attached vi is based on information from the instrument manual. I noticed that the message format calls out for the 'Cks' to be transmitted as two ASCII characters.
07-14-2010 11:53 AM
@Wayne.C wrote:
bala1234,
The attached vi is based on information from the instrument manual. I noticed that the message format calls out for the 'Cks' to be transmitted as two ASCII characters.
That is very similar to my version posted above. I was going to point out that your array sum will not handle roll over situations but then I realized that it doesn't need to. Only the last byte is used anyway so my extra numeric conversions to U32 and back to U8 in my code is unnecessary...
07-14-2010 02:13 PM
paulmw,
Sorry I'm running LV8.6.1 and couldn't view your vi. Sounds like our friend has a couple of vi's to try now.