LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does program work only when highlight execution is on?

I created the attached program to set a setpoint temperature and read actual temperatures. But why is it that it works perfectly fine only if the highlight execution lightbulb is on and does not work properly when the highlight execution is off (i.e. the VISA read does not read properly) ?
Thanks
0 Kudos
Message 1 of 4
(3,952 Views)
When I've seen this happen, it usually turns out to be a timing issue.

With Hilight Execution turned on, the program executes much slower than it does when running normally.


Try putting some time delay between your steps, or Read/Write functions one at a time to see if that fixes your problem. If you find a problem spot, you can modify your code to compensate for the timing issue.

Good Luck
Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 2 of 4
(3,952 Views)
When I've seen this happen, it usually turns out to be a timing issue.

With Hilight Execution turned on, the program executes much slower than it does when running normally.


Try putting some time delay between your steps, or Read/Write functions one at a time to see if that fixes your problem. If you find a problem spot, you can modify your code to compensate for the timing issue.

Good Luck
Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 3 of 4
(3,952 Views)
I second Ed's suggestions!

You are not giving your device time to reply after your query.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(3,952 Views)