From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-19-2009 02:02 PM
Hey
I have a loop which contains some arguments as well as a case structure that has various arguments for true and no arguments for false, my issue is that i still want the loop to continue executing when the case is false (because outside the case there are still controls that need to be functioning) , but that seems to terminate the entire loop, I have tried a series of loops inside the primary loop with no luck.
Any help would be greatly appreciated,
thanks
05-19-2009 02:12 PM
You are probably getting an error in your application; you should handle errors correctly by wiring the error clusters from all nodes.
Also, you should open and close references when you do the reads and writes.
05-19-2009 02:30 PM
05-19-2009 02:44 PM
I can't run your VI since I do not have the hardware and you did not provide the external files. However, the only way for the while loop to terminate is for the front panel 'stop' button to be true.
p.s. You've got some terminals hidden underneath the while loop. Did you post the actual code that has the problem or is this a modified version?
05-19-2009 02:46 PM
05-19-2009 02:47 PM
05-19-2009 02:52 PM - edited 05-19-2009 02:53 PM
Now, I don't understand what you are saying. What 'True' are you talking about now and exactly what runs on it's own? You've posted one vI and if the stop button is true, the while loop will stop and it does not matter what the case statement is or is not.
Are you calling this code as a subVI?
05-19-2009 02:59 PM
05-19-2009 03:09 PM
Are you sure you are getting a signal in that analog read DAQmx function or your analog reference trigger?
Why do you have a timeout value of 259,200 seconds? That is about 72 hours. If your code is waiting on that timeout, then it will take 3 days (probably 6 days since the stop button would have already been read on that iteration) for the program to come to a stop if you are failing to read your analog input.
05-19-2009 03:11 PM