05-27-2022 12:18 PM
I have been trying to understand how to software trigger a USB-5133 using Ni Scope in LabVIEW
I have tried all the Software trigger settings and can not figure out how to trigger the scope.
So far every attempt results in this error:
I have tried troubleshooting using the Acquisition Status VI in a loop and it always returns Acquisition in progress, meaning the 5133 is not being triggered.
What am I doing wrong here?
Solved! Go to Solution.
05-27-2022 12:26 PM
Please share the VI in a older version.
05-27-2022 12:47 PM
@santo_13 wrote:
Please share the VI in a older version.
I would love to but...
Here's a picture of what I am trying, all the VI's are part of the NI-Scope toolkit.
05-27-2022 12:56 PM
05-27-2022 01:05 PM
05-27-2022 01:06 PM
@Gregory wrote:
I would try a delay between "initiate acquisition" and "send SW trigger". Or, you can set the Pre-Trigger time to 0%. Can you try these?
%0 pre-trigger had no effect
I also tried inserting a delay but gave up at 5 seconds between starting acquisition and sending the software trigger.
No cigar...
05-27-2022 01:10 PM
@Gregory wrote:
Actually, on the "Send Software Trigger" VI, use the input to make it a "Reference Trigger" rather than the default of "Start Trigger".
That was it, I swear I tried that yesterday.
05-27-2022 04:07 PM
@RTSLVU wrote:
@Gregory wrote:
Actually, on the "Send Software Trigger" VI, use the input to make it a "Reference Trigger" rather than the default of "Start Trigger".That was it, I swear I tried that yesterday.
It doesn't work anymore?
I don't understand how something so simple can be so unreliable.
05-31-2022 11:34 AM - edited 05-31-2022 11:37 AM
Okay with a clear head this morning I figured this out, it was a combination of initially using the wrong trigger and then not waiting for the scope to be ready to trigger.
I added a VI that takes my selected Time/Div and Pre-Trigger, then calculates the time to wait for Pre-Trigger data to be acquired before advancing the software trigger.
But this brings up a question that I remember having when I first started with Ni-Scope
Why is there no way to determine Trigger Status?
No, Acquisition Status? is NOT the same thing.
As Acquisition Status only tells you if acquisition is complete. I suppose you could say if it's not complete then it is still "waiting for trigger", but you could be wrong.
Specially in the case of a slow acquisition (seconds/div).
Any modern DSO I have used had a VI to determine Trigger Status and would return several states.
Such as:
Stopped (Acquisition complete)
Ready, Armed, or Waiting (pre-trigger acquisition complete, waiting for trigger)
Pre-trigger (pre-trigger acquisition in process)
Triggered (Post trigger acquisition in progress)