LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simultaneous sampling DAQmx error Error -50103

Hi, I have been reading all the posts regarding this error and the knowledge database but I am unable to fix this problem.
I have two sub-vi's I created running simultaneously in the main program. I understand what the error means and why I am getting it...but I do not know how to fix it.
I have been banging my head against the wall for a day here...any help is GREATLY appreciated.

Attached is the main program and the two sub-vis.

Thanks,
Ryan
Ryan

LV 7.1
0 Kudos
Message 1 of 8
(3,799 Views)
sub-vi 1
Ryan

LV 7.1
0 Kudos
Message 2 of 8
(3,790 Views)
sub-vi 2
Ryan

LV 7.1
0 Kudos
Message 3 of 8
(3,789 Views)
If you are reading two different channels from the same DAQ board, you should be using a single DAQmx read for both channels. There are a lot of subVIs missing in your attachments (save as an llb to avoid this) so I don't know what's going on in the entire program.
0 Kudos
Message 4 of 8
(3,785 Views)
Dennis, yeah that is kind of what I got from the knowledge database; however I am not sure how to accomplish this. Sorry about the files, attached is the full program.

Thanks for your help.
Ryan

LV 7.1
0 Kudos
Message 5 of 8
(3,783 Views)
One way is to use The DAQmx function DAQmx Create Channel function for each channel you need.
0 Kudos
Message 6 of 8
(3,781 Views)
Dennis...I am still really struggling with this. I guess I should explain my overall goal.
I want to sample 2 channels using a PCI-6110.

Here is a sequence of operation.

program runs
channel 2 begins sampling at 500000 hz >> takes 2000000 points (4 seconds) >> done sampling this channel
channel 1 waits for X seconds then begins sampling at 1000000 hz >> takes 1500000 points (1.5 seconds) >> done sampling this channel

I then need to create two arrays; one containing each set of data.

If you need to know anything else let me know.

Thanks,
Ryan
Ryan

LV 7.1
0 Kudos
Message 7 of 8
(3,768 Views)
Instead of trying to do a parallel acquisition like you're doing now, you'll have to do it sequentially similar to the attached example. I modified the shipping example called Acq&Graph Voltage-Int Clk. There is one task that you set up for the first channel with the sample rate and number of samples you want. Then there is a delay and then a new task with a different channel and acquisition parameters.
0 Kudos
Message 8 of 8
(3,765 Views)