Synchroniz​ation of M-Series cards via RTSI and ANSI C?


This is my first post and I'm happy to be here. I tried to search as thoroughly as possible, but if this has been answered elsewhere, I'd be grateful for a hint/link nevertheless.
Win 2000 Pro with NI-DAQmx (part of NI-DAQ 7)
2x PCI-6220M, 1x PCI-6221M
RTSI Cable
all components are registered in MAX
I want to synchronize the cards over the RTSI bus. I am using the ANSI C library. There's an example SharedClk10-FiniteAcq_main.c, but it is designed for PXI and uses the undocumented (at least in the C reference?) DAQmxSetTimingAttribute function. I tried to pass '/Dev1/RTSI7' as the clock source, but it did not work.
Then, after reading the C reference a bit more, it seemed as if I needed to use DAQmxExportSignal. But it gives me an error DAQmxErrorInvalidRoutingSourceTerminalName_Routing = -89120 when I try to route DAQmx_Val_20MHzTimebaseClock to '/Dev1/RTSI7'
I'd like to know what C functions I have to call in which order to enable synchronized sampling with the three M-Series cards.
So far I do:
DAQmxCreateTask (primary & driven)
DAQmxCreateAIVoltageChan (p & d)
DAQmxExportSignal (p)
DAQmxCfgDigEdgeStartTrig (d - trying to import the failed export of /Dev1/RTSI7)
DAQmxStartTask (d & p)
DAQmxReadAnalogF64 (p & d)
DAQmxStopTask(p & d)
This is my first time using M-Cards or the ANSI C functions, so I might have missed something essential.
Can anyone give a hint as to what I need to do?


First, if you haven't, you should explicitly create a RTSI cable in MAX. This can be done by right-clicking on Devices and Interfaces -> NI-DAQmx Devices and choosing Create New NI-DAQmx Device -> RTSI Cable. Then, for each device that is connected to the RTSI cable, use MAX to edit its properties and in the "RTSI Configuration" tab, specify the RTSI cable. This will allow NI-DAQmx to automatically route signals of the RTSI cable.
Now that a RTSI cable is configured, you don't need to explicitly export signals from the task. You can use the DAQmxGetMasterTimebaseSrc function to retrieve the master timebase terminal name from the primary task and the DAQmxSetMasterTimebaseSrc function to set the master timebase terminal name for the driven task. The DAQmxGetMasterTimebaseRate and DAQmxSetMasterTimebaseRate functions can be used in a similar manner. Configuring these properties will result in NI-DAQmx automatically routing the master timebase signal from the primary task to the driven task using the RTSI cable. To ensure the driven device starts at the same time, invoke the DAQmsxCfgDigEdgeStartTrip function passing a triggerSource parameter of "/ai/StartTrigger" which will result in NI-DAQmx automatically exporting the start trigger signal for the primary task over the RTSI bus and using it as a digital start trigger for the driven task.
I assume that you will also want to invoke the DAQmxCfgSampClkTiming function for each task to specify the acquisition rate and number of samples to acquire. Note that since the master timebase signal and the start trigger signal are already routed using the RTSI cable, the sample clock itself does not need to be shared between the two tasks.
Geoffrey Schmit
Fermi National Accelerator Laborary

November 30, -0001

Synchroniz​ation of M-Series cards via RTSI and ANSI C?

Hi! This is my first post and I'm happy to be here. I tried to search as thoroughly as possible, but if this has been answered elsewhere, I'd be grateful for a hint/link nevertheless. System: Win 2000 Pro with NI-DAQmx (part of NI-DAQ 7) 2x PCI-6220M

Undelivered eGift Card from Chat and Vision...yet ...

Sadly, I ignored the advice from a number of disgruntled Chat and Vision customers on this forum and ordered a gift card via Chat and Vision, Skype's exclusive online provider.  4 days later and it still has not been delivered.  I raised a support ti

Synchroniz​ation of PCI devieces via the RTSI bus using the measuremen​t studio for Viusual Basic 6

Hi everyone, I would like to synchronize a NI 4474 A/D card with a NI 6733 D/A card via the RTSI bus. Is there any way of sharing the timebase using the measurement studio for VB 6.0? It seems like it could be possible using the traditional NI-DAQ .D

Multi Device Synch AO Series via RTSI

I have two analog output AO Series devices connected via RTSI. I have defined the RTSI Cable in MAX and added the two boards. I am having trouble getting the slave to use the master Sample Clock. According to 'Timing and Synchronization Features of N

Q: Acquiring data using two E series devices connected by RTSI and streaming data to disk

I use two E series PCI Cards, connected by RTSI. I'd like to stream the data from both cards to a binary file and to add a header to it. I also need to somehow read (plot) the stored data, this with another VI. The whole should be then integrated int

How can I connect the output of a force transducer unit(BNC cable) to the PCI-6036E DAQ card via the SCB-68 block connector?

I m using the 404A force transducer unit by Aurora Scientific and i want to connect the (converted to Volt) output, which is a BNC cable, to the PCI-6036E DAQ card via the SCB-68 connector block, facing difficulties in choosing the correct input mode

Does VI Logger software support M series cards?

Software spec says the software supports E series cards etc. - but does it support newer M series also?The current version of VI Logger (1.1.1) does not support M-Series boards, it only works with E-Series, 435x and FieldPoint. Since M-Series is obvi

Is there a way to redeem an iTunes gift card via the serial number

Is there a way to redeem an iTunes gift card via the serial numberyes there is I used this when accidentally scratching off some of my code Open iTunes and go to Redeem Enter any code and click Redeem, it will prompt you for a correct code do the sam

How to generate 8.192MHz clock on labview FPGA 7854R series card?

Hi,    I am using NI PXI-7854R series card which has Xilinx Vertex 5 FPGA on it. I am trying to derive a clock of 8.192 MHz from the 40MHz on board clock of FPGA. But it ends up giving me only 8MHz clock. Is there any way of accessing the PLL which i

Blackberry Tour Synchroniz​ation problem

I am new to this forum and have checked past posts but do not see this problem.  I have a Tour 9630 and a couple weeks ago I lost all my info on the BB when I tried a few times to enter my password and it failed.  I was able to restore everything and

Cannot see "Add-ins" in Synchroniz​ation Tab

I am trying to set-up a synchronization with my 9700 using the Desktop Manager and CompanionLink.  When I go to the Synchronization tab and click on "Add-ins" the screen changes, but CompanionLink is not listed, which makes it impossible to set-

I cannot find the 'WPA passphrase' to connect my printer via wireless and cannot find it in Airport utility (MAC says it cannot find any open airports)

MAC OS X 10.6.3 - desktop Mac I browsed similar questions and saw that someone recommended going to the Airport Utility and then selecting manual set up or something- anyways, it could not find any airports. I have brought my printer from my house as

HT3702 Why was my card charged today and nothing was ordered today

Why was my card charged today and nothing was ordered todayWe are fellow users here on these forums, we won't know why. If you log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase Hi

Can an airport receive via wifi and share via lan port  to a tv ?

Is it possible for an airport express receive net via wifi and share it via lan port to a tv with lan card ? Thanks JorgeYes, if the AirPort Express is an 802.11n model. This version of the Express support the configuration as a wireless Ethernet bri

Cisco 1262 AP cannot access via cosole and GUI

Hi, I have a Cisco AIR-LAP1262N-E-9 but I cannot access via console and GUI. Also, I noticed that after getting IP address from DHCP server, its IP address will be released after 2minutes. Then after a while, the access point will get another new IP

Swapping sim cards between iPhone and a Sony

I have an iPhone 5c and my son has a Xperia M4 Aqua, they both have nano sim cards and are on thr same contract (monthly). Unfortunately, he doesnt like his Sony so I have offered us to swap phones. Can I just swap the cards over myself and he can st

HT1918 at first my credit card was valid and then when i purchase something my credit card was decline. how can i solve this?

at first my credit card was valid and then when i purchase something my credit card was decline. how can i solve this? anyone?Accepted form of payment other 2 answers

HT4098 my credit card was stolen and icloud charge was denied, because the card was invalid.  i am receiving a message that my apple id has been disables on my iphone.

my apply id was disabled and i am not able to update, it gives me this message when i try. may have been caused because my credit card was stolen and not validDid you update your account with the new CC info? Apple ID: "This Apple ID has been disable

No sim card, no signal and showing 3g and going again to no service

bought my iPhone 5 the day it came out, from saudi arabia and every since then i have issues witht the connection, it keeps switching to no sim card or no service, and half the time showing no network from two operators( MOBILY network & JAIN network

BT Infinity & Steaming via WMC and Xbox

Hi, This seems to be a fairly well known issue but since upgrading to BT Infinity and getting the new Home Hub I am having problems streaming content to my pc via Xbox and Windows Media Centre. I basically have to reset the modem and HH everytime I t