09-15-2008 01:59 AM
Hi,
I have put an example together of a simple user input sequence, but I want the user input to have the text message based on what input parameters are required, and also to have the popup window title displayed for that particular VI. Is there a more advanced user input function available?
TIA
Martin
09-17-2008 01:44 AM
Hi Martin,
It all depends on want you want to do or want to show. You can make (almost) everything. The popup is just a simple example and is nothing more then just another VI.
Tell us want you want to do.
09-17-2008 01:58 AM
KC,
Is it possible to look at the code of the user input express VI?
I am writing a control sequencer. What I do is read a VIs input parameters and the VI description to show the user what stimulus to enter. This then runs another VI called enter parameters, which shows this information. I want to be able have the user input message to display each individual parameter, and be able to error check whether that parameter is valid, i.e. number between 0 and 3 or true/false. It would be nice to create either a numeric control with these parameters and show it programmatically.
I thought about using a table, and show the parameter names as headers, and let the user input the stimulus on the row below, but all the data is set as strings, so I think it would take a lot longer to write.
Cheers
Martin
09-17-2008 02:11 AM - edited 09-17-2008 02:11 AM
Hi Martin,
With the right mouse click and 'Open front panel' you can enter the express VI.
Look at the VI. Is this what you want ?
How many parameters do you need to be filled in ?
09-17-2008 02:36 AM
Thanks for that!
09-17-2008 02:39 AM
09-17-2008 03:54 AM
Hi,
Looking at the front panel of the user input express VI, I have gathered that the express VI part is using some extra C code or maybe another VI to gather the user requirements, i.e Message, Window title, etc.
How do you create the control inputs programmatically? If you view the front panel without any properties entered, you get the basic VI. If you create some inputs, the express VI adds the numeric controls in the while loop. How can this be done using a LabVIEW invoke node?
TIA
Martin
09-17-2008 04:32 AM - edited 09-17-2008 04:32 AM
The VI does not use any C code. There is no need you can do everything in LV
The displayed Title of the VI can be changed with property node. The controls are made visible depending on the input also with a property node.
See the VI watch the title.
09-17-2008 04:40 AM
Hi,
I've been using property nodes quite a lot, and what you have shown has given me some ideas, but I still don't know how to create numeric or string controls when required, as the user input express VI does.
Cheers
Martin
09-17-2008 04:54 AM
The controls are not created but the are made visible or invisible.
The only way I know to create controls is with Xcontrol but I do not know enough about it.