From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

synchronization problem between program and user data

Hello,

I would like to move two Thorlabs NRT100 motors in the same time (via a Thorlabs BSC203 controller). The user needs to enter the settings (speed, acceleration, distance) and click on the settings switch to begin the experiment. The program works very well if the user doesn’t change the parameters. But when the user enters his parameters, the program uses the previous settings (not these that the user enters but these from the previous experiment). If somebody knows why, it could really help me.

Please find attached my two VI.

Thank you for your help.

Download All
0 Kudos
Message 1 of 3
(2,319 Views)

Get rid of the locals.  the values are being read at the begining of the loop iteration BEFORE the user settings are written to the terminals


"Should be" isn't "Is" -Jay
Message 2 of 3
(2,315 Views)

Thank you very much.

Everything is working well.

0 Kudos
Message 3 of 3
(2,294 Views)