10-20-2006 11:59 AM
10-20-2006 12:05 PM
It was a little hard to follow but what next?
What are you looking for on the forum???
Regards
10-20-2006 12:09 PM
Sorry got destracted when I was trying to finish the message.
What I need is how to pass the boolean expression out of the while loop while it contiues to run.
10-20-2006 12:16 PM
Hi,
There are many threads on this forum discussing your problem.
I have attached one relevant to your problem. Hope it helps.
"http://forums.ni.com/ni/board/message?board.id=170&message.id=97217&requireLogin=False"
Post back if you face difficulties.
Regards
10-20-2006 02:18 PM
Not what I was looking for so I will post my VI below. It was written in 7.0 I put lables on the VI to help communicate my problem.
The MAJOR thing is the top loop must always be running while the power supply ramps up. So every 250ms I will get a T/F statement from the interlock loop (Top Loop) making sure my conditions are safe.
Thanks.
10-20-2006 02:39 PM
I am a bit confused by your implementation. I was able to open your VI but there are a lot of subVI missing. Anyway, it looks like you have a while loop in parallel with a case statement. Any it seems like you are asking to have the while loop generate a condition that will select either the true or false for that case statement. The way you currently have it the case statement will try to execute once at the same time as the while loop. If you wire (for example) a local variable that is generated in the while loop it will read a value that was default and not from the while loop.
In your bottom structure (case with a while) I think you need to rearange the order of the structures and have the case inside the while loop. If not, then I will need some more info on what you are trying to do. Basicly what I am suggesting is for each iteration of the bottom loop, use the case statement to check you interlock.
If you make that change, to get the data from the top loop to the bottom loop you can use the queue or notifier functions, local variables, or functional variables.
10-20-2006 02:53 PM - edited 10-20-2006 02:53 PM
Hi,
I have made a sample example for you to try.
Try it and you can modify your program accordingly.
Hope it helps.
Post again should you have any doubts.
Regards
Message Edited by labviewmission on 10-20-2006 02:54 PM
10-20-2006 02:55 PM
10-20-2006 02:57 PM
10-20-2006 03:03 PM