LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

user input controls

Hello,

 

I have a little labview programming problem. In attachment you can find my VI allready build.

I want to do the following:

- In the tab "start" the user gives in a "m" and "n" value

- In the next tab I calculate the "Total # K"

- Depending on the value of "Total # K" I want to create controls (Or something better? Array?) where the user can give soms values (E I and L). three values for every K. And then I want to calculate every K value. And store everything in for instance an array.

 

Can somebody give me some hints to do it? Like you can see, I'm started with controls, but it's a total mess.

 

Kind regards,

0 Kudos
Message 1 of 3
(2,926 Views)
  • this is truly not a state machine with your overuse of event structures not in an efficient applicable way... 
  • understanding data flow is your problem
  • learn LabVIEW
0 Kudos
Message 2 of 3
(2,908 Views)

I would recommend using the one state for all UI events.  This includes when the user changes m or n.  There's no need to just have those in a single while loop that will hammer the CPU until you finally hit the next button.  That's all that is happening in that state.  So just have the UI state handle it and react accordingly in the event structure.

 

In fact, the more I look at your code, the more I'm convinced you don't even need a state machine.  You are just making life too difficult.  All you need is a while loop with an event structure.  You can handle all of your UI through the event structure.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(2,880 Views)