Hi NI Community,
I created an example code to trigger on rise and fall edge on the PFI0 channel and calculate the pulse width of IO0 bit flips. However, I'm having a hard time trying to put this in to a while loop.
Here is what I'm trying to do. I'm measuring bit flip of a device and the device output is constant low (0V). Randomly, there will be a bit flip. That means that it could happen at any time during the test.
The test is set up so that channel IO0 is tied with PFI0 and that can work as a hardware trigger and capturing data.
The problems I'm having:
1. The way I set this up, it looks like the Acquire VI times out when it nothing is triggered. This could be fixed by increasing the timeout of the acquire VI. However, I'm not sure how this will work in a while loop.
2. I want to put this in to a while loop so that this can run more than once. But I have not figured out how to do that. Please help!
3. How do I append the 2 waveforms into 1 plot so it shows the rising edge and falling edge of the waveform?
Thank you for your help!