08-22-2022 04:44 PM
Hello all,
I am trying to make a program that acquires data when it is triggered using digital signal shows high and stop acquiring data when digital signal shows low.
Any guess how to make it.
I programmed the first part but unable to make it for second part.
My program should read data when it triggered using digital high and stop acqusition when it is digital low.
08-22-2022 05:15 PM
Gee, I wonder what you put in the "False" case of the Case Statement, which (of course) will be False when the digital signal is False. And how will that play with the Waveform Chart?
One reason some of us complain about looking at "pictures" instead of LabVIEW Code (which can be found in files with the extension ".vi") is that we only see some of the code, and sometimes, not the "important bits".
You seem to be taking data in 1 second "chunks" of 1000 samples. You are sending some of the Waveforms you generate (those in the "True" case that we can see) to a Waveform Chart -- what is wired to the Chart in the False case? Nothing?
[I'll admit, I don't know (but I can devise a test VI to find out!) what happens if you have a Waveform Chart and give it the first one-second Waveform, skip giving it the second, and then give it the third -- I expect it might have a big "hole" in the plot ...].
What have you tried, and what happened? [We could try, ourselves, but don't yet know what you did because you hid important details from us ...]
Bob Schor
08-23-2022 12:09 AM
Hello Bob_Schor,
Thank you for reply.
This is the only thing I could guess for my program. In a false case, when the digital signal is low, I don't want to read any signal. But unfortunately, I am getting those data in a waveform chart.
08-23-2022 12:13 AM
You need to reconsider your architecture to leverage the hardware triggering capabilities than implementing your trigger handling in the software - the issue is that you could not respond to changes in digital line state as fast as it would at the hardware level.