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,608 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,604 Views)

Thank you very much.

Everything is working well.

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