Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run two PCI-6143 devices

Hi,
 
I want a description how to setup DAQmx to run with two PCI-6143 devices synchronously.
 
Please give a description using DAQmx C++ API. e.g. DAQmxCreateTask.
 
I guss that it will begin with:
 
1. Attach a RTSI cable between the two devices.
:
:
 
 
 
P.S. Specifying this cable can be made in MAX, is it possible from the API to see if such a connection is/was defined in MAX?
 
-cpede
 
 
0 Kudos
Message 1 of 5
(3,613 Views)
Hi,
I found some links for you:
 
Regards
-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 2 of 5
(3,599 Views)

Hi cpede-

Dennis' suggestions all center around the Traditional (Legacy) NI-DAQ driver.  The 6143 is only supported by NI-DAQmx and all new development should be done in NI-DAQmx, so please disregard those suggestions.  I noticed that you're using NI-DAQmx 8.3, so I thought I would point out that it is MUCH easier to synchronize two S Series boards using NI-DAQmx.

The steps are as follow:

  1. Physically connect a RTSI cable between the devices.
  2. In MAX, right-click on My System>>Devices and Interfaces and create a new NI-DAQmx RTSI cable device.
  3. Right-click on the RTSI cable and associate both devices with the RTSI cable.

After this, you're basically done with configuration.  The driver now knows that a RTSI cable is present, and you can take advantage of the multi-device task feature added for S Series in NI-DAQmx 8.3.  Open any buffered analog input shipping example ( for example, \Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage\Cont Acq-Int Clk ).  You only need to specify the physical channels to use in the DAQmxCreateAIVoltageChan()as "DevX/ai0:n, DevY/ai0:m" where X and Y are your device numbers. 

Hopefully this helps-

Tom W
National Instruments
0 Kudos
Message 3 of 5
(3,585 Views)
That sounds great Smiley Very Happy
 
Does this apply to only devices of the same type/series, or can I mix devices e.g. PCI-6143 and PCI-6040E? - Or is it just much easier with the same board types?
 
Can I detect using DAQmx that the RTSI cable is configured in MAX, that would be very convenient?
 
-cpede
0 Kudos
Message 4 of 5
(3,574 Views)

HI cpede-

No- multi-device tasks ONLY work for S Series and DSA devices.  In order to synchronize E Series, M Series, or other MIO boards you will still need to connect and configure your RTSI cable and then follow the programming example shown in \Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Synchronization\Multi-Device\Continuous AI

There is currently no way to query NI-DAQmx to determine if a RTSI cable is configured in MAX, but this definitely sounds like a useful feature.  Please file a product suggestion if you would like this functionality considered for future versions of the driver.

Thanks-

Tom W
National Instruments
0 Kudos
Message 5 of 5
(3,559 Views)