05-23-2011 09:59 AM
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
Solved! Go to Solution.
05-23-2011 04:51 PM
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.
05-25-2011 01:22 AM
Thank you!
So if it's the same line, i think i have an other problem because it's not working ![]()
I tried this:
And for the FPGA side, I simulate my trigger:
I always have a timeout.
Maybe I forgot something?
05-25-2011 11:43 AM
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.
05-26-2011 02:20 AM
No, it's just when i create the snippet. In my project the VI compile and run without problem. I tried an other exemple:
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?
05-26-2011 03:53 PM
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!
05-27-2011 02:00 AM
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
05-27-2011 10:19 AM
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?
05-30-2011 07:56 AM
no
the other cards are 5600 and 5610 whitout trigger fonctionnality.
05-31-2011 06:01 AM
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. ![]()
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