High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger Edge Configuration for PXI 5124. Visual C++ Design.

PXI 5124 Configure Edge Trigger

 

Dear all;

 

 

I have  two  PXI 5124 for take an acquisition at 40 Msamples/s and I need some help. I'm not sure if it's possible to do a MultiRecord Acquisition with a triggering. I want to configure a Trigger Edge for the star trigger, and with the same signal use a reference trigger to acquire a several samples. We are going to acquire data during the trigger pulse. The period of the pulse (EXTERNAL TRIGGER) is around 70 us and always change,a little bit. I would acquire 4 total channels, 2 per PXI 5124.

 

 

 

Trigger/Synchronous signal (EXTERNAL)                   ________________________`````````_______________`````````_______________`````````________  _

Start the acquisition (Start Trigger)                             ________________________`````````````````````````````````````````````````````````````````````````````````````````````  ``

Acquisition   (only in hi-level EXTERNAL)                    ________________________`````````_______________`````````_______________`````````________  _

 

I have a Visual C++ code to acquire with an immediate trigger configuration and I'm working with Visual C++. I need to configure and program this sinchronism acquisition as soon as possible.

 

Is it possible to configure this synchronous acquisition?

Anyone can give me example code or related literature to begin this project?

 

I have read a lot of documents of NISCOPE functions and I understand the configuration parameters of the trigger but I need to know how to build this complex configuration and programming this acquisition ( wich configuration functions have to define, witch mechanism to make a test,etc..)

 

Thanks so much.

 

Best regards

0 Kudos
Message 1 of 5
(6,403 Views)

Can you help me? please?

0 Kudos
Message 2 of 5
(6,371 Views)

Hi Piju, 

 

It is definitely possible to do multi-record acquisition using triggering.  Per the knowledge base linked below, we need to configure two unique triggers, the start and advance triggers. The below article links to a LabVIEW program but I'll see if I can get a hold of a VS example.  

 

HSDIO Retriggerable Multi-Record Acquisition

http://digital.ni.com/public.nsf/allkb/FF921AD791E6037E86257142007F06BA?OpenDocument

 

Regards, 

 

Kyle S

 

Regional Account Manager
NI
0 Kudos
Message 3 of 5
(6,352 Views)

Hi Piju, 
I wanted to apologize, it seems I misread your post. From what I'm seeing in your trigger representation, there is really no need to setup two triggers. This is only true if the start trigger goes high at the same time as the acquisition trigger and never goes back to a low state. If this is true, then you only need to set up the reference trigger.

 
Setting up a reference trigger with zero pretrigger samples will allow you to use this as the start trigger and also continue to trigger each consecutive record. . For scopes, records are taken and stored in the on board memory and then fetched and placed into your computer’s RAM.

 

There are a few ways to implement sampling on your reference trigger signal, which may take some time and may be complex to implement. I will describe a few ways we can attempt to do this below: 


1. One method you could use, and the easiest, is to set a constant record length based on a predetermined maximum high time of your trigger. If you can determine the maximum high time, this would allow you to set what your minimum record length should be on the longest high time expected and take that number of samples as soon as the pulse goes high. For example, if your maximum expected high time of your varying trigger signal is 100us, and you are sampling at 40MS/s, then you would take 100u x 40M = 4000 samples per record. Of course, in the case when your period is 70us you would have some overflow of samples which can be decimated off the end of the record.  I am unsure if this will be acceptable in your application, but if you can determine valid samples within your record, this implementation would be the best and would require no additional hardware.


2. Another method would be to create a new sample clock using your onboard clock from one device and external hardware, such as a DAQ card. The method I am thinking of makes use of a counter. Using a counter, you can export your sample clock from one of the 5124’s and input that into the source of the counter on your DAQ/external counter hardware. Then, take your varying trigger signal and place that on the gate of your counter. This would gate your sample clock at your specified trigger frequency so that only when your trigger signal is high will you see pulses come out of the counter. You could then take this signal out of the counter and split the signal with a splitter, then route the clock to both of the clock inputs on each 5124. In this configuration, you would not setup any triggers in your program and would only sample based off your new sample clock.  Please refer to the figure below.

 

issuecounter.png

Let me know if you have any more questions or if there is anything I posted that was unclear.  

 

Regards,

 

Kyle S

 
Regional Account Manager
NI
0 Kudos
Message 4 of 5
(6,327 Views)