LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Integrate two TDC001 Thorlab controller (X-Y stage) in one code

Hi,

 I'm new to labVIEW, I prepared two LabVIEW code to control X and Y with different serial numbers. However, I'm not sure how to integrate/wire both code in single VI. Here I'm attaching VI file and the screenshot for kind consideration.

 

Thanks

Download All
0 Kudos
Message 1 of 3
(700 Views)

Start by removing the outer While loops.  You don't need them... all they will do is constantly restart your code over and over after you try to quit.

 

For how to make the inner loops work, I suggest you look into what an "event structure" is and start using that so that you only run the "Move" code when a button has been pressed, instead of running it over and over again forever.  It will also allow you to only use one loop to control both.

0 Kudos
Message 2 of 3
(670 Views)

Thanks for your prompt response and kind suggestion. I'll have a look on the event structure for more details about function.

0 Kudos
Message 3 of 3
(658 Views)