02-13-2012 02:03 PM
I tried to use the program you modified but I kept getting errors. The only reason I use local variables is because I don't know how else to reference the indicators on the screen. I will try again to use your model and make my changes there. I want the value that I read from the channel to update constantly. So when the program starts I want to value I read from the card to show up in the RawRMSVolts indicator. When I press the 1000V button I want to capture that value and then start displaying the voltage read from the card on RawRMSVolts 2 and so on. I am also doing a limit check on the values that are typed in. From what I have seen in my program it acts like the while loop is not looping. Like I said earlier when I set the task up for contunious it only reads the value when the program starts and that it. I will keep plugging away and when I get something closer I will post it and if you don't mind could you look at it and tell me what I have done wrong. I am going through some tutorials to figure out how the flow of Labview works. Thanks again for all of your help.
02-13-2012 02:13 PM
Something else you may want to read about is the state machine. Do a search here for it and you'll get loads of
threads on the subject.
02-14-2012 07:42 AM
I have made some changes to the program you modified. I am still having a problem. It will lock up sometimes. I got it reading the analog signal and displaying the data. I don't know any way around using local variables. This program will not run because I don't have anything wired to the case selector for displaying the data. I tried to use the loop iteration but it doesn't increment when you hit a button. I am at a loss of what to do.
02-14-2012 10:52 AM
You are still creating deadlock by placing interactive while loops in parallel to event structures. You don't need that inner while loop. All you need to do is read the DAQ and replace it into the measurement array. Don't overcomplicate things!
Here's a quick draft that might give you some ideas.
I would also highly recommend to limit the number of objects and make the code scalable. For example you should use arrays for the controls and indicators and use controls labels instead of free labels.