LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

prompt user for an input

Hi

 

I want to ask user for some action based on some results in LabVIEW. I can use the "prompt for an input "VI , but the problem with that is i need to set the INPUT NAMES first in that.

Is it possible to automatically set the input names based upon the results of previous calculations.

Somil Gautam
Think Weird
0 Kudos
Message 1 of 6
(3,759 Views)

What you can do is convert the Express VI to a regular subVI by right clicking on it and selecting "Open Front Panel".  Now you can see what it is doing inside.

 

Next hide the labels for the controls on the front panel and make the captions visible.

 

Now create an array of strings on the front panel.  Make it a control and connect it to the connector pane.

 

In the block diagram, index out the strings from that control and use it to set the caption property of the controls.

 

Now you can pass the names of those input controls into the subVI.

Message Edited by Ravens Fan on 09-21-2009 12:27 AM
Message 2 of 6
(3,738 Views)

I think there is some problem with my VI.

Please check.

Somil Gautam
Think Weird
0 Kudos
Message 3 of 6
(3,725 Views)

Somil wrote:

I think there is some problem with my VI.

Please check.


 

Such as ........?????

 

If you say you have a problem, you should give a few more details as to why you think you have a problem. 

 

 

 

But I am going to guess at what your problem is.

I bet that you aren't seeing any changes in the names of the controls.

 

Why?

Because you didn't follow my instructions about hiding the label of the front panel control and making the caption visible.

 

Another issue, your indicators are connected to the connector panel any more.  Also, you must have made a ring control yourself, since the ring control doesn't seem to be a datatype you can create from the Express VI's dialog box, (only numerics, boolean checkboxes, and strings).

Message 4 of 6
(3,719 Views)

Actually, i want To display the results of previous calculation and then prompt user to select some result in the "PROMPT USER FOR ACTION" VI.

In other words, it can be said, that i want the same VI to behave as an indicator first and then as a control

Somil Gautam
Think Weird
0 Kudos
Message 5 of 6
(3,711 Views)
You can connect the control to the connector panel and wire in whatever you want into it.
0 Kudos
Message 6 of 6
(3,659 Views)