LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Popup window

Hello all a quick question again,
 
I am developing a software that whne run uses several sub vi, all of which  have user interchangable values so my main programme will run, it will thne go to a sub vi where  message will appear to change the values or keep old one.. ...user selects one or the other and then the sub vi finishes its task.. and closes.... However i wnat to know tow things, first of all is there any way to clal this vi again? without running the setup procedures again??
 
Any examples will be GREATELY appreciated
 
Mansoor
0 Kudos
Message 1 of 6
(3,469 Views)

Can you attach a simple example to show us what you mean?  I am not sure I understand the issue, so it is hard to suggest answers.

As far as calling a subVI multiple times, of course you can within a loop.  If you want to have it start with specific values I would suggest having constants on the diagram you use to initialize the controls.  Another option is for the main VI to pass the values to the subVI.

0 Kudos
Message 2 of 6
(3,446 Views)

Hello,

Mirroring what Evan said can you attach your code so I can see what you are trying to do.

Cheers,

Tom
NIUK

Message 3 of 6
(3,420 Views)

You might want a state machine, which is a programming device which allows you to go to different points in your code. You could have a "configure" state which will pop-up the VIs for the user. Then, you can just call that state when you want. You can find an example by clicking File>>New and looking in the design templates section for a state machine template.

Also, if the user has to configure all of these, you might wish to create a simpler interface by putting all these screens in a single VI. You can create a wizard interface by putting the controls inside a tab control, hiding the tabs and controlling the displayed page of tab yourself.

In general, to find examples, you should use the example finder (Help>>Find Examples).

 


To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
Message 4 of 6
(3,411 Views)

Following is an example of what i mean.. (need to run Program called Main, and Loadngconstants). Essentially i am trying to run Main, and in doing so I need to call Loadngconstants, and that i can do, but during my run i need a user to just be able to call forexample Loadngconstants without rentring all the value again, make sence?

 

Hope you all can be of help

 

Mansoor

0 Kudos
Message 5 of 6
(3,369 Views)
Hello Mansoor,
 
From what I can gather you have an acquisition running and while that is going you wish to have a popup window in which you can change the parameters of that acquisition as it is reading. Doing that is relatively simple if you can have the acquisition being held up while you enter the new constants but having the acquisition running with the old constants while you enter the new ones will require a different programming approach that is more involved.
 
For simply being able to run a certain piece of code upon user interaction with your front panel the best way to do that is using an Event Structure. Use the LabVIEW help files to learn more on Event Structures as they have alot of useful information regarding this. Make sure you enable a timeout on an event structure as your program will wait until an event has fired on a certain control before letting the rest of the code run without one.
 
Hope this helps!
 
Tom
NIUK
0 Kudos
Message 6 of 6
(3,338 Views)