05-13-2017 02:11 PM
Dear All,
I have written a lab view program, which is using AO0 channel of NI DAQ USB - 6221 to generate square wave and AO1 channel of NI DAQ USB - 6221 to generate sine wave.
When I run these program one by one they are working fine. While when I run both together, it gives error as ( NI DAQ mx - 50103 , ' the specified resource is reserved' )
Do anyone tell me how can I use both the channels simultaneously to simulate different tasks for my experiment.
Thanks and Regards
Ashish Garg
05-14-2017 02:59 PM
Attach your VI (so we can see what you did) and we may be able to suggest how to make the code do what you want.
Bob Schor
05-14-2017 10:21 PM
Do a search for Error -50103, and you'll find it is a common issue. Make sure both channels are a part of the same analog output task. If you created two tasks, one for each channel, one task or the other will give this error. The "specified resource" is the single timing counter that exists within the DAQ device.
05-15-2017 04:30 AM
Hi Bob Schor,
I am attaching the .vi, which I am using with DAQ 6221 to generate sine and square wave simultaneously with channel 0 and 1. I tried the same .vi by putting two DAQ in different parallel while loop as well, which also did not work.
Please find attached the .vi .
Thanks and Regards
Ashish
05-15-2017 04:30 AM
Hi Bob Schor,
I am attaching the .vi, which I am using with DAQ 6221 to generate sine and square wave simultaneously with channel 0 and 1. I tried the same .vi by putting two DAQ in different parallel while loop as well, which also did not work.
Please find attached the .vi .
Thanks and Regards
Ashish
05-15-2017
07:34 AM
- last edited on
12-13-2024
06:34 PM
by
Content Cleaner
I should have guessed -- the Dreaded DAQ Assistant has "messed" with another poor student trying to learn LabVIEW. Here are some recommendations:
I hope the above makes sense to you. Your VI should reduce to a single Start Task with an appropriate Task Constant wired to it (again, if you do this in a LabVIEW Project, the Task "stays with" the Project, so you can move the code to another PC and it will run), a While Loop with the DAQmx Write (whose input is a 2D array of Channel 0 and Channel 1 samples), and a DAQmx Stop or Clear Task after the loop.
Bob Schor
06-07-2017 08:19 AM
Hi Bob,
I made the program as you said, it is working as well, I am able to use both output channel of DAQ 6221 and able to give TTL signal to camera and voltage to shaker. But while doing so, there is a time lapse of 100 millisecond, is there any way I can start both TTL signal and shaker simultaneously.
Thanks and Regards
Ashish Garg