Synchronization 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
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)
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.
November 30, -0001
View Thread Other 10 Replies on forums.ni.com
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.
Fermi National Accelerator Laborary
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
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
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
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
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
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
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 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
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
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
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-
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
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
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
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
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
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 http://support.apple.com/kb/HT5552Read other 2 answers
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
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
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