LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parent VI won't let me run two VIs at the same time.

Solved!
Go to solution

So I have one PC connected to a CompactRio 9030 and a cDAQ 9174. The Compactrio is running a NI 9503 to power a stepper motor and the cDAQ 9174 is running a NI 9237 to read a load cell.

 

I can get readings from the load cell, and can get the motor to run. However I use two different VIs that belong to their own LabVIEW projects to run each. The motor and load cell have their own VIs. I can only run one at a time, when I run one VI the other front panel is "frozen" and I can't interact with it. I wrote a program to attempt to run both VIs at the same time.  

 

I tried to follow this format

http://digital.ni.com/public.nsf/allkb/498AFF045628DFA9862571D10079672F

 

However the program doesn't work and throws an error. I'm pretty new to LabView and any help would be great. Thank you!

Untitled.png

0 Kudos
Message 1 of 7
(3,923 Views)
Solution
Accepted by KevinPn

What are the window appearance settings. For example is one set to "modal"?

Message 2 of 7
(3,900 Views)

Yes I think one of the window setting is set to modal. Heres a screenshot of the settings. Untitled1.png

0 Kudos
Message 3 of 7
(3,893 Views)
0 Kudos
Message 4 of 7
(3,861 Views)

More questions: 

What type of projects are these two vi in? 

Are one of them a Real-time vi, that is part of a RT project and located under the RT target in the project?

Show us your projects, and files. 

 

Are your question releated? 

https://forums.ni.com/t5/LabVIEW/Can-I-use-a-CompactRio-9030-with-a-NI-9503-while-using-a-cDAQ/m-p/3...

0 Kudos
Message 5 of 7
(3,853 Views)

For some reason one of the VIs was set to modal. I changed it to default and it works now. Thank you!

0 Kudos
Message 6 of 7
(3,811 Views)

@KevinPn wrote:

For some reason one of the VIs was set to modal. I changed it to default and it works now. Thank you!


Makes sense. A modal window will plant itself frontmost and will not allow interactions with other windows until it's closed.

0 Kudos
Message 7 of 7
(3,807 Views)