Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple S series DAQ card

Hi,
i will use multiple S series card (PCI 6143). I want to thread them as one card (by connecting them with RTS cables).
How can i program them?  I can't find any example about this
Thanx
0 Kudos
Message 1 of 4
(7,761 Views)
 

Hi eesen-

I'm assuming that you'll most likely want to share a sample clock and/or AI start trigger between the two devices over RTSI.  In order to do this you will need to first export the appropriate signal from the 'master' device, like this:

theSTC->RTSI_Trig_A_Output.writeRTSI_Trig_2_Output_Select(trigSelect);
// Set output select first, then route to RTSI to avoid glitching
theSTC->RTSI_Trig_Direction.writeRTSI_Trig_2_Pin_Dir(1); // 0=input, 1=output

where RTSI_Trig_n refers to any of the RTSI trigger lines <0..6>.  Valid values for trigSelect are outlined on page 388 of the DAQ-STC Technical Reference manual.

On the 'slave' device you will then want to import the signals from RTSI.  For the ai/SampleClock, you'll need to make this change to the aiSampleStart() function (or just call this method with the appropriate setting):

theSTC->AI_START_STOP_Select.setAI_START_Select(trigSelect);
theSTC->AI_START_STOP_Select.setAI_START_Polarity(tSTC::tAI_START_STOP_Select::kAI_START_PolarityRising_Edge);

where AI_START refers to the ai/SampleClock signal that clocks each sample from the input ADC's.  Valid values for trigSelect are shown in the tSTC.h ChipObject file in the tAI_START_STOP_Select::tAI_START_Select enum.

For the ai/StartTrigger on the 'slave' device, you need to change this setting similarly as before (as shown from aiTrigger() in the DDK examples):

theSTC->AI_Trigger_Select.setAI_START1_Select(trigSelect);
theSTC->AI_Trigger_Select.setAI_START1_Polarity(tSTC::tAI_Trigger_Select::kAI_START1_PolarityRising_Edge);

Hopefully this helps-

Tom W
National Instruments
0 Kudos
Message 2 of 4
(7,757 Views)

thanks for help, i will try this when new card reach me.

One more question, can i use this method (you suggested) to cards belongs same family  but are different model  (For example PCI 6143 and PCI 6133)

0 Kudos
Message 3 of 4
(7,743 Views)

Hi eesen-

Yes, this method should work well for all S Series devices with the exception of the PCI-6154.  FYI- the same method should also work for most E Series devices.

Thanks-

Tom W
National Instruments
0 Kudos
Message 4 of 4
(7,726 Views)