LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vi locking up will not respond or stop running.

Solved!
Go to solution

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. 

0 Kudos
Message 11 of 14
(531 Views)

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.

0 Kudos
Message 12 of 14
(530 Views)

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. 

0 Kudos
Message 13 of 14
(520 Views)

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.

0 Kudos
Message 14 of 14
(511 Views)