08-28-2007 09:17 AM
08-28-2007
09:43 AM
- last edited on
04-09-2025
05:14 PM
by
Content Cleaner
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-
09-03-2007 08:07 AM
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)
09-04-2007 12:07 PM
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-