Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Backplane Triggering of DAQ from FPGA using Python

Hi all,

 

I'm attempting to create a PXI-E Chassis backplane link between an FPGA and DAQ so that i can create a digital trigger to start a sequence in the DAQ. Currently I have the following in the FPGA that will generate a 1us pulse as needed and send it down PXI0;

PaulTheTenth_0-1585044978180.png

I am then trying to retrieve the trigger from a task written in python that controls the DAQ, I believe I have most of the commands needed for this but I am struggling to retrieve the actual signal from the backplane. When creating a task you can add digital, analogue or counter channels as inputs or outputs, e.g. task.ai_channels.add_ai_voltage_chan('device/ai0').

I presume that to add a digital trigger signal you will require task.di_channels.add.di_chan('address'), this is fine however I am struggling to find a way to actually link the trigger.

With any connector attached to the front of the DAQ it has a corresponding label matching the pinout of the device however i have not been able to find any such reference for the backplane.

- Can anybody tell me what the naming scheme for the backplane connectors are to make a direct connection? Failing this;

- Can anybody tell me how to create connections between pins as shown in NI-Max, i.e. when looking at the DAQ it shows that a connection can freely be made between the backplane and PFI channels (see below):

PaulTheTenth_1-1585046674532.png

How do I actually make the connection between the two of them in Python? I am aware that in Labview the connection can be made, and that you can connect straight to the backplane also through labview by declaring the I/O.

The DAQ is a 6289 mounted in a PXI-e 1078 chassis,

Thanks in advance,

Paul

0 Kudos
Message 1 of 2
(2,349 Views)

You should able to use the start trigger module for the DAQmx task  (https://github.com/ni/nidaqmx-python/blob/master/nidaqmx/_task_modules/triggering/start_trigger.py) to set the start trigger for your task to PXI_Trig0.

 

Though I have never use DAQmx's Python API; I have only done this in C API. I imagine it should be the same entry point both API call in the end.

0 Kudos
Message 2 of 2
(2,316 Views)