LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running two VI's simultaneously

I have two VI"s- one for a motion controller and one for a amplifier. I need to see the changes in measurement due to movement of motor. I have stacked both the VI's in one panel. Will I be able to run both the VI's simultaneously ? If not please suggest me solutions if you have any.

Any suggestion will be much appreciated.

Thanks

 

0 Kudos
Message 1 of 7
(1,228 Views)

Unfortunately, insufficient information, maybe you can, maybe not, it depends.

 

Please provide all information

  • Motion controller - make, model, manual
  • Amplifier - make, model, manual
  • Please attach the VIs
  • Any NI hardware involved?
  • How are things wired up? - exact connection
Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 7
(1,218 Views)

I am using a newport 8742 motion controller to move mirrors sideways. The movement of the mirror causes change in the signal that the amplifier-Zurich labone lock in amplifier recieves. I need to start and stop both the instruments simultaneously and track changes in the signal.

I have attached the VI's.

Thank you for your suggestion.

 

Download All
0 Kudos
Message 3 of 7
(1,207 Views)

Yes, no... maybe?

 

Honestly you should be able to run any number of VI's at the same time. The hard part is it they have to communicate with each other or have some sort of data dependency between them, and stopping them both at the same time.

 

There are several ways to handle these common issues. 

 

You should try it and then come back with any problems you ran into.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 7
(1,161 Views)

Yes? Multithreading and the ease of it is one of LVs strength. If they don't have any dependencies or HW conflicts it's as easy as having a Main vi and placing them both in it.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 7
(1,156 Views)

Thank you all for your suggestions.

I was able to run both VI's in conjunction just by stacking them in a single block panel as I had said in my first question.

Any suggestions on how to stop both the VI's at once?

Thanks

 

0 Kudos
Message 6 of 7
(1,131 Views)

Here's some ideas...

 

Stopping Parallel While Loops in LabVIEW with One Stop Button

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 7
(1,123 Views)