LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

window appearance problem

Hi everybody,

I'm facing the following problem:

I have a VI that calls a subVI. When I call this subVI everything in this subVI works nicely, but I cannot press any button or give any commands in `the main VI.

So I've tried to change in the window appearance differents behavior and nothing.

is there anybody that can help me on that.

Regards

0 Kudos
Message 1 of 7
(3,253 Views)

You need to call the subVI by reference and specify in the invoke node that you do not want to wait for the subVI to exit. This also means that you need to have some sort of messaging between the main and subVI so that if the main VI exits, the subVI will also exit. I assume that you simply want to start a sub task and allow both it and the main vi to run at the same time.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 2 of 7
(3,252 Views)

HI Mark, could you give me a simple example?

 

Regards

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

HI Mark, could you give me a simple example about how to use the function call by reference together with the invoke you mentioned...

 

Regards

0 Kudos
Message 4 of 7
(3,209 Views)

I will try to post an example. I was busy on some actual work tasks. In case you didn't know many of the users here are not NI employees and we are here on a volunteer basis. So, we do have balance our time here with our real jobs.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 5 of 7
(3,205 Views)

Take a look at the example "Programmatically Controling VIs->Dynamically Loading and Calling VIs->Client - VIServer Example.vi". You can find teh examples under the Help menus. Specifically look at the section of code which says "Launch the Server vi on each Machine" and the subVI "Launch Server". You can ignore the part about getting a server reference to the specific machine. You will not need that. If you leave the reference for the "App.Dir" and the Open VI Rerence unwired it will use the current application reference.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 6 of 7
(3,198 Views)

Thanks Mark. It was exactly what I was trying to do.

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