I posted this question before, but later realized that it was hard to explain the problem without sample code.
I have attached a VI with this post that explains the problem. This is what the code should do:
1. There is a WHILE loop monitoring a certain Analog Input Channel on a DAQ board.
2. There is Microsoft Media Player included in the VI as an ActiveX Control.
3. When the voltage on the analog channel being monitored exceeds a certain limit, I want Media Player to automatically start playing.
The problem is this: the voltage on the analog channel constantly fluctuates above and below the threshold. It starts off as being below threshold, therefore Media Player is initially in the STOP condi
tion. When it reaches threshold, Media Player should switch to the PLAY condition. BUT, when it drops back below threshold, I don't want Media Player to return to the STOP condition, I want it to continue to PLAY until the VI terminates.
The condition is, I cannot terminate the WHILE loop once voltage on the channel reaches threshold. In the program, the WHILE loop does much other stuff besides monitoring voltage on the channel.
I am trying to find a solution in which the WHILE loop can continue to play for the duration of the VI, but the signal to the Media Player should be ignored after the FIRST time that the voltage reaches threshold.
Any help is appreciated.