LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Initiate some VI at the same time

Hi,

I'm working whin some VIs. Each one of them represents an agent. I'd like to know to me if there is some way to be able to execute them all simultaneously and, if it is possible, in a certain order, instead of executing each one of them individually.


Thank you.
0 Kudos
Message 1 of 10
(4,874 Views)
Use the VI-server functionality to call the VI's dynamically.This will give you freedom in start sequence and they will run in parallel.

Look at the LV examples for VI-server examples.

André
Regards,
André (CLA, CLED)
Message 2 of 10
(4,869 Views)
"simultaneously and, if it is possible, in a certain order"
 
I guess I am confused about what you want. Do you want them all to open together and run all at the same time independent of each other? or do you want them all to open and then run one by one in a specific order?
Message 3 of 10
(4,856 Views)
Thanks André & MattH,

Possibly I did not explain myself with clarity. I have created several VI relatively complex. The problem is that whenever I want to make a test I have to execute them one by one. It asked to me if there is some way to execute them all without press the run button in each one of them. I believe that it would be necessary to create a main program that it called to the VIs and run them.

Also it raised the possibility to me of making this run in a certain order. Once press the button run of VI main, the  VIs will be executed, but I want that first one runs and soon another one.


Sorry by my english... Smiley Sad

Vicen
 
0 Kudos
Message 4 of 10
(4,838 Views)
You can do either way as you wish.
 
Try out with what Andre has mentioned earlier.
 
Open the NI Example Finder thro' the Help menu & search for VI Server examples.
- Partha ( CLD until Oct 2027 🙂 )
Message 5 of 10
(4,826 Views)
Look at the example that comes with LabVIEW called Dynamic Load Example.vi
Message 6 of 10
(4,820 Views)
Thanks to all,

with this examples and the found documentation surely that I solve my problem.



Thanks
0 Kudos
Message 7 of 10
(4,813 Views)
I don't found the problem in my VIs (very simplies). The main2.vi have a menu in which it calls Led 1.vi or/and Led 2.vi, but it doesn't run. The main2.vi is based in the example "Dynamic Load Example.vi".

I don't known what I have done wrong.


Thanks

Vicen
Win XP / LV7.1
Download All
0 Kudos
Message 8 of 10
(4,739 Views)
Go to the VI Properties of the subvis, Window Appearance>Customize, y habilita las opciones de Show Front Panel when called and Close Afterwards if originally closed.
0 Kudos
Message 9 of 10
(4,736 Views)
Gracias, ya lo he solucionado.
0 Kudos
Message 10 of 10
(4,730 Views)