08-10-2019 02:15 PM
Hi everyone
Recently I am using a NI-PCI-5122 as an acquisition card.
I want to use digital trigger to synchronize the acquisition.
So I connect a 5V-0V TTL square wave signal to PFI0 channel, considering this as a trigger.
However, a time exceeded error occurs.
Thus, I am completely compused.
This TTL signal is not a digital signal?
So what kind of signal shall I use as digital triggers? How can I get one? By using Function generators??
Please help me.
08-11-2019 12:41 AM
08-29-2019 11:18 PM
Thanks
The diagram of the code I use is in the attachment
Please check it
This is an example program downloaded from NI
08-29-2019 11:39 PM
Where does the error occur? (You can use trace execution or just add more probes/indicators to check this - probes are a good choice that won't mess up the front panel)
What is the exact message?
Is the "timeout" setting definitely longer than the expected duration of your acquisition (as set in block #5)?
08-30-2019 02:02 AM
Hi
The error is all the same with the errors that no trigger signal is input
08-30-2019 02:21 AM
Thank you for your reply cbutcher
The program I use is in the attachment, you can try it if you are availiable.
I set the trigger type to analog trigger because analog signal is usually employed for us.
And even if I connect a digital signal (0-5V square wave signal) to digital trigger input, "timeout" error still exists.
08-30-2019 02:26 AM
The screenshot of the error code is like this
08-30-2019 02:53 AM
I would recommend reading the description of the triggering state machine model here: SMC-Based Digitizers Acquisition Engine State Diagram.
This is a fairly detailed description of the order in which various triggers are waited on/for, and how to progress to making a measurement.
Your front panel screenshot suggests that you have the Start Trigger set to PFI0 and the Reference Trigger set to External Trigger - you might instead want to consider (if I understood your problem correctly) setting the Start Trigger to immediate (this is the default, according to the linked description above) and the Reference Trigger to your PFI0. This should then respond to your selection of edge types and slope so on.
08-30-2019 06:09 AM
I have tried digital trigger as reference trigger signal
But it did not work
My trigger signal for both digital and analog is 0-5 V TTL square wave signal
Is this signal not right?
08-30-2019 07:41 AM
@过客wasd wrote:
I have tried digital trigger as reference trigger signal
But it did not work
My trigger signal for both digital and analog is 0-5 V TTL square wave signal
Is this signal not right?
Did you set the Start Trigger to Immediate?
A square wave should be fine, and I believe that for the 5122 there should be no problem with a 5V high value.
The specifications can be found here: PCI 5122 Datasheet.
Carefully reading those specifications (at least around the Triggering options section) might give some hints.
Sorry that it's difficult to give better suggestions without more information about exactly what you're trying.