RF Measurement Devices

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger IF-RIO 5641R and Digitizer 5142

Solved!
Go to solution

Hi,

I'm trying to generate a trigger from the FPGA of my IF-RIO to start the acquisition on a digitizer 5142. I want to do this with the PXI line, but I don't have the same line in the FPGA I/O (PXIe_Trig0...PXIe_Trig6) and in the Scope driver (RTSI0..RTSI6, PFI0..PFI2).

So is it possible to do this? If yes which line I have to use?

 

Thank you

Cordialement,

Simon D.
CLA | Certified LabVIEW Architect
CTA | Certified TestStand Architect
0 Kudos
Message 1 of 12
(7,400 Views)

Simon,

 

With the NI drivers there are different naming conventions depending on what driver you are using. Some call the PXI Triggers "PXI_Trig" or PXIe_Trig and others call them RTSI lines. With the Scope driver it will sometimes call them RTSI lines, however these are the same as the PXI_Trig lines. If you set the scope to RTSIx where x is the line you want and you set your FPGA to PXIe_Trigx you should be able to send a trigger from the IF RIO to the scope.

 

Aaron W.
National Instruments
CLA, CTA and CPI
Message 2 of 12
(7,394 Views)

Thank you!

So if it's the same line, i think i have an other problem because it's not working Smiley Sad

 

I tried this:

scope.png

 

And for the FPGA side, I simulate my trigger:

fpga.png

 

I always have a timeout.

Maybe I forgot something?

Cordialement,

Simon D.
CLA | Certified LabVIEW Architect
CTA | Certified TestStand Architect
0 Kudos
Message 3 of 12
(7,387 Views)

Simon,

 

It appears that your FPGA VI isn't even runable at this point. What is not working, is your FPGA code running, will it not compile? It looks like your PXIe_Trig Node is not properly initialized.

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 4 of 12
(7,378 Views)

No, it's just when i create the snippet. In my project the VI compile and run without problem. I tried an other exemple:

trig.png

 

The line change their state at each loop iteration, so the scope should detect a edge. But i always have a timeout.

When I use an analog trig on my input it's working fine, and not with the digital?

Cordialement,

Simon D.
CLA | Certified LabVIEW Architect
CTA | Certified TestStand Architect
0 Kudos
Message 5 of 12
(7,374 Views)

Simon,

 

A couple of things:

 

1) What slots is your 5641R in and what slot is the 5142 scope in? They might be in different segments of your chassis. Also, which chassis are you using?

 

2) What is the toggle rate of the 5641R? You might be sending a trigger that's pulse width doesn't allow the scope to detect the trigger.

 

Thanks!

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 6 of 12
(7,367 Views)

hi Aaron,

 

I use a PXIe 1062Q with a controller 8108.

My IF-RIO is in the slot 5, and the scope in the slot 8.

I will try to change the width of the pulse. The rate is about 5kHz, it's not too high?

 

Thank you for your time

Cordialement,

Simon D.
CLA | Certified LabVIEW Architect
CTA | Certified TestStand Architect
0 Kudos
Message 7 of 12
(7,364 Views)

Simon,

 

5 kHz should be fine. It's strange that you are not getting the scope to trigger at all. Do you have any other cards that you can use to generate a trigger on the PXI Trig lines so we can verify if the problem is with the Scope or the IF RIO?

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 8 of 12
(7,356 Views)

no Smiley Sad the other cards are 5600 and 5610 whitout trigger fonctionnality. 

Cordialement,

Simon D.
CLA | Certified LabVIEW Architect
CTA | Certified TestStand Architect
0 Kudos
Message 9 of 12
(7,349 Views)
Solution
Accepted by topic author SimonD

I found a PXI 7852R to make test. The problem was in the IF-RIO.

I found a vi in the 5641 driver to set the direction of the RTSI lines (input or output). And the default value is input, now I change it to output and it's working fine. Smiley Happy

I was not a huge problem. I just don't understand why we need to do this 'manually' on this card, and why when we just change Read/Write on the FPGA node it's not changing the direction automatically.

 

Thank you for your help

Cordialement,

Simon D.
CLA | Certified LabVIEW Architect
CTA | Certified TestStand Architect
0 Kudos
Message 10 of 12
(7,343 Views)