Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Oct 2, 2006

Acquiring Data Using Two E Series Devices Connected by RTSI and an External Trigger

6 ratings | 3.83 out of 5
Print

Downloads

Filename: 1256.zip
Requirements: View

This VI acquires data into separate single buffers from two E Series devices (or devices with similar timing/triggering signals) simultaneously by sharing the AI start trigger over the RTSI bus. Device A sends the trigger signal it receives from the I/O connector to the RTSI bus, and device B uses it to start its acquisition.
To expand this example to use more than two devices, replicate the sequence of VIs called for device B. Note that a single error cluster is chained.

INSTRUCTIONS:
1. Enter the device numbers for device A and device B. Make sure they are different device numbers, and that they are valid DAQ devices.
2. Enter the channels on which you want to acquire data from both devices.
3. Modify the number of scans to acquire and master scan clock rate, if desired.
4. Connect your analog input signals to the two devices, as described below in the I/O CONNECTIONS section.
5. Run the VI, and provide the trigger signal.

KEY PARAMETERS:
Route Signal.vi (device A):
signal name=RTSI2(14); signal source=AI start trigger(2)

AI Start.vi (slave devices):
trigger type = digital A

AI Start.vi (device B):
trigger source="RTSI2";0.0

Route Signal.vi (master device - to disconnect):
signal name = RTSI2(14), signal source = none(1)

I/O CONNECTIONS:
Connect your analog input signals to the channels on the I/O connector for your device to match the channels you have chosen on the front panel of this VI.
Also, connect a trigger signal to the PFI0/TRIG1 pin of device A.
For actual pin names, refer to your hardware user manual.
NOTE: If you are not using a PXI chassis, make sure the RTSI connectors on your two devices are connected with a cable.

DAQ VIs USED:
AI Config.vi
Route Signal.vi
AI Start.vi
AI Read.vi
AI Clear.vi

Requirements


Filename: 1256.zip

Software Requirements


Application Software: LabVIEW Full Development System 5.0.1
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Multifunction DAQ (MIO)
Driver: Traditional NI-DAQ (Legacy)

 
6 ratings | 3.83 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).