08-16-2010 06:15 PM
Hello,
In the attached VI, I would like to promt the user to enter an array of numerical data to the "INPUT ARRAY" whenever "USER INPUT" is selected.
After you select "USER INPUT", another prompt user for input widow should pop up and ask for an array of numerical values that is then passed onto the "Input Array" array.
Any help will be greatly appreciated.
I am working in Labview 8.2
Thanks,
hiNi
08-16-2010 08:15 PM
Is there any particular reason you're using a case structure to write a True/False to a local variable instead of just using the wire directly? Think about it.
Your sequence frame is completely unnecessary. Remove it, and the code will still work.
I don't understand how this VI is supposed to be used. Why are all those "Input"s controls? Is there supposed to be more to the VI? I would assume you'd want indicators so you could pass the result to the calling VI. If you want all those to be output you should use a cluster or an array rather than wiring each one to a separate terminal on the connector pane.
If you want to provide a control for entering an array then you should get rid of the Prompt Dialogs and simply make this VI into a dialog. You can use an event structure to respond to the user changing the value of the User Input? control to hide/show or enable/disable the array control . You can find examples on making a VI into a dialog using the VI's Window Appearance properties. Open the Example Finder (Help -> Find Examples) and search for dialog. Also search for examples on using the event structure.