I am very new to LabVIEW, and I am trying to read data from the Modbus of a device and write it to a file (I tried excel, txt and tdms). I successfully built a connection and got the data, but my data polling resolution was too slow, about 20 readings/minute, even when I did not set wait times. I know that this is because I placed the Modbus Master Open and Close within the while loop (see attached picture 1), but if I don't do that, the problem is that every time I try to extract data, and add a timing block to get time too, I get the error.
I don't understand why even displaying the timestamp via an indicator is conflicting with the Modbus read. Can anyone help me with this? Is there any other way I can get timestamps along with my data?
1 Answer 1
There are modbus example VIs and projects. You could try starting with one of those and seeing if you get the same error.
The specific error text may help point you in the right direction. You can right click the error indicator and select "Explain Error" for more detail.
Is "Highlight Execution" on every time it runs? That would slow things down.