06-09-2021 05:57 AM
Hi all,
We have a 9054 that we need a single TTL signal from to control a switch and I was planning to use the PFI0 line for it. However I can't find an example of how to set it up except as a digital input (here).
It suggests it is possible in the manual but I can't find the right combination of things to allow it in LV. It doesn't appear at the FPGA level or at the DAQ/Scan engine level.
Can anyone point me in the right direction?
Many thanks
Pete
Solved! Go to Solution.
06-09-2021 03:52 PM
Hi,
perhaps this KB makes things a little clearer:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000004AfvSAE
Although have a look at this:
https://zone.ni.com/reference/en-XX/help/370466AF-01/mxdevconsid/crio_considersations/
Section "Shared trigger bus"
And finally the block diagram of such a cRIO:
cRIO-9054 Block Diagram - CompactRIO Controller Manual - National Instruments (ni.com)
You have to install DAQmx-support on your cRIO in order to access the PFI0. After that this line should be directly available from the RT-part.
If you need access to this PFI0 from the FPGA you have to set a route between the one of lines between the DAQmx ASIC and the FPGA (the cRIO_Trigx lines). That is done by DAQmx Connect Terminals.vi ; you can now use these lines from the FPGA code to either set or read the PFI0.
Regards, Jens
06-11-2021 07:47 AM
The bit I was missing was to use Trig0 and to reverse the source and destination on the signal routing.