LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

More advanced user input required

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

0 Kudos
Message 1 of 12
(3,377 Views)

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.

Message 2 of 12
(3,323 Views)

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

0 Kudos
Message 3 of 12
(3,320 Views)

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 ?

Message Edited by K C on 09-17-2008 09:11 AM
Message 4 of 12
(3,315 Views)

Thanks for that!

0 Kudos
Message 5 of 12
(3,309 Views)
If you want you can always show use what you made so we can give you more hints.
Message 6 of 12
(3,307 Views)

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

0 Kudos
Message 7 of 12
(3,288 Views)

The VI does not use any C code. There is no need you can do everything in LV  Smiley Wink

 

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.

Message Edited by K C on 09-17-2008 11:32 AM
Message 8 of 12
(3,283 Views)

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

0 Kudos
Message 9 of 12
(3,278 Views)

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.

Message 10 of 12
(3,276 Views)