06-07-2013 06:32 AM
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,
06-07-2013
08:32 AM
- last edited on
05-12-2025
04:39 PM
by
Content Cleaner
06-07-2013 11:08 AM
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.