1

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.

enter image description here

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?

enter image description here

enter image description here

Homer512
15.1k2 gold badges16 silver badges36 bronze badges
asked May 19, 2025 at 13:38

1 Answer 1

1

There are modbus example VIs and projects. You could try starting with one of those and seeing if you get the same error.

Examples Menu

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.

answered Jun 3, 2025 at 2:33
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.