09-20-2009 10:23 PM
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.
09-20-2009 11:24 PM - edited 09-20-2009 11:27 PM
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.
09-20-2009 11:52 PM
I think there is some problem with my VI.
Please check.
09-21-2009 12:07 AM
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).
09-21-2009 12:19 AM
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
09-21-2009 10:53 AM