Sequencer - IF block
I am trying to use the IF block in the sequencer to make some decisions based on channel data, but I keep getting a "Warning (If): No samples acquired" error. I have modified an old file that you used to demonstrate a stop trigger using the 'Wait' block. The 'wait' block works fine, but I can't get the If block to work, not sure what I am missing.
the if block is not working because you have stopped the measurement, therefore no samples are coming through for the sequencer to check. There are two things that you can do about it. You can remove the stop block and paste it after the if, to both branches, so the if will get the data to be able to make a decision, but the measurement will be stopped right after that. The other way would be to assign the value of the data that you use to a sequencer variable, and then stopping the measurement. Since the sequencer already has that value stored, you can than use it in the if sentence even after the measurement has stopped. I've attached both examples.