LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to run lab view multi-fuction synchronization with multiple devices and change the recording time?

Solved!
Go to solution

Hi, I am new in Labview. I need help to:

 

1. modify a multi-function program in order to record data from three daq cards (devices 1-3) and output signal through one of the card (device 1). The current program was set up to record and output signal from one of the card (device 1). I try to choose multiple devices when I run the program, but there is an error 200558 shows "One task cannot contain multiple independent devices. Create one task for each independent device."

 

2. change the recording time to a longer period, e.g. 0.1s. Currently, the recording time is 0.009971s.

 

I attached the multi-funtion.lld. In this library, "des_v2_Multi-Funtion_Synch AI-AO.vi" is the program I need to modify. I also attached an input signal file for runing the program.

 

Thanks a lot!

 

Sincerely,

Jie

Download All
0 Kudos
Message 1 of 4
(2,692 Views)

Hello Jshen6,

 

Have you tried looking at the examples in LabVIEW under Hardware Input and Output>>Synchronization? The Analog Input-Synchronization.vi example shows you how to synchronize AI across multiple devices in various configurations and for various types of hardware. Would you mind listing what hardware you are using? Are all three devices taking the same data (voltage, strain, acceleration, etc)?

Jonathan L.
Technical Support Section Manager
National Instruments
0 Kudos
Message 2 of 4
(2,649 Views)
Hi, Jonathan,

I am using three PCI 6251 cards and all the input signals are voltage. The current program can work for the first card. I don't know how to choose the the other two devices in the current program. Also, I don't know how to parallel the other two devices with the first one. Is the example program you mentioned come with the installation CD? Under synchronization examples, there are multi-function.lld (the one I am currently using) and multi-device.lld. Is the example in multi-device?

Thanks a lot!
Sincerely,
Jie
0 Kudos
Message 3 of 4
(2,642 Views)
Solution
Accepted by Jshen6

Hello Jshen6,

 

You may have different examples VI's if you're not using the same version of LabVIEW. I'm currently operating on LabVIEW 2013 SP1. Either way, this paper should be helpful to you as it details how to synchronize multiple M Series Tasks. 

Jonathan L.
Technical Support Section Manager
National Instruments
0 Kudos
Message 4 of 4
(2,623 Views)