07-06-2011 04:36 AM
Good day to all,
I have this problem with my LabView program. It is being used to interface with a Energy Meter to retrieve the data. I am able to execute "Open" and "Write" VISA, but am unable to execute "Read" VISA. Attached below is the screenshot of the error.
EKI1521 is being used to interface serial connection from the meter to ethernet, connecting to the computer with
labview program. Attached are the settings for the EKI1521.
This is extracted from the main program after narrowing the problem down to the VISA Read function. The subVIs in this program are proprietary protocols of the meter and does not contribute to this Reading error.
It might be interesting to note that I am able to run another program to interface with another meter using Modbus protocol. It also used the same EKI1521 with the correct VCOM settings. (This should free the EKI1521 from any faults).
Thanks & Regards,
Andrew
07-06-2011 07:00 AM
Hi,
Stop me if I make a mistake, but you don't set Visa properties in your Labview code (type, baudrate... etc).
Best regards,
07-06-2011 07:08 AM
I noticed you have the number of bytes set for 51. Are you sure the device will send that many bytes? It might time out while waiting for more bytes.