I have a homework problem where a analog voltage measurement isn't supposed to start until a digital line becomes true.
I have it working, but just checking if there is a preferable way.
As a test, I used a T/F toggle switch inside a continuous while loop to simulate the digital line state. When I toggle the switch to True, I pass a True value out of the While loop. I pass this True value to a Case structure that accepts 2 values, True and False. On True, it starts the analog data aquisition, which works all OK.
Is there a preferable way to "wait" on a trigger, and then execute a block of code?
thx
Jeff