09-27-2005 11:13 AM
09-28-2005 07:10 PM
09-28-2005 07:49 PM
09-29-2005 05:17 AM
09-29-2005 08:21 AM
Hi,
Actually, I use the NI Modbus library. I agree that it is possible to avoid the use of Bytes at serial port since the messages length can be determined, but the Modbus Read function from the library does use the Bytes at serial port property.
In the worst case, I'll modify it, but I was curious to know why that property could generate a wrong value. More so that I know that it works under Windows and it doesn't work under Linux.
Thanks,
Alex
09-29-2005 08:48 AM
I also have some code available where I calculate the CRC checksum in plc logic for a block of registers. Then I read the data in labview and calculate a new checksum for the data registers. I put this inside a loop and make labview read the data until the Labview calculated checksum matches the plc generated checksum. Kind of a way to guarantee the labview tag values are accurate.
Does the modbus read return any error values when you get more bytes than expected?? You could intercept this error and read the data again??
09-29-2005 08:59 AM
09-30-2005 05:59 PM
09-30-2005 06:10 PM
Effectively, I don't get any error with the Windows version, using the same VI. I use the original MB serial receive.
My linux distribution is Red hat 9.0
Thanks,
Alex
10-04-2005 07:18 PM