04-24-2009 02:13 AM
Hi all,
I have one NI USB 6251, Labview8.5.
My system includes: + One output channel for stimulating square waveform (I use Dev1/AO1 or Dev1/ AO0)
+ Two input channels for acquisition signal (I use Dev1/ai0 and Dev1/ai1).
I modified example "Multi-Function-Synch AI-AO" in Find example\Hardware Input and Output\DAQmx\Synchronization\Multi-fuction.
I added one channel to this example and I want 3 channels work simultaneously, but during process occurs "Error -50103 occurred at DAQmx Start Task.vi:1" Possible reason(s):The specified resource is reserved. The operation could not be completed as specified".
I've taken along time but can not solve this problem.
Can you give me advices.
Thank you in advance for any help!
MC
Solved! Go to Solution.
04-24-2009 08:05 AM
04-24-2009 11:19 AM
Hi Adnan Zafar!
Thank for your advice. I have questions:
1) I worry if two input channels work simultaneously (start at the same time)? This is important for my task. If answer is Not, how to solve this problem? (using counter, external trigger...). In my project, I have to configure six channels (of USB 6251), which acquire signals simultaneously . It seems difficult for me because I have no experience with synchronization.
2) What difference between two following configuration:
a) Configuration like the way you show in the picture.
b) Configuration by writing directly on Physical Channel Control: Dev1/aiX:Y.
Thank so much.
MC
04-24-2009 11:41 AM
11-17-2009 04:34 PM
I am working on a project same az this one and I need to have a multi channel inout for a 6251 device.
The problem that I have is how to make a VI to sample different inputs simultansly. Although there is a delay, it will be acceptable for my project.
11-17-2009 04:55 PM
11-18-2009 12:07 AM
I am going to use the device as a meter for a Biomedical system, so I need 4 channels. I went throught the hints and designed that by using DAQ assistant. Then I took 4 channels from the out put. The problem that I have is that when I connect only one channel on 60 Hz, I can see the signal on other channels too ! I have 4 signals on all channels instead of only one of those.
11-18-2009 09:42 AM
That is normal when you have unconnected channels. Search for the topic 'ghosting'. Connect unused channels to gnd.
09-24-2010 04:00 AM
Dear all,
I want to used 2 analog outputs with different signals (e.g. one channel sinewave with 50 Hz and the 2nd AO with frequency e.g.15 Hz). I want then sample these signals on two A/D inputs (AO0 on AI0 and AO1 on AI1, respectively). I use USB M 6215 device and modified until now sample from LABVIEW as mentioned earlier.
Thank you for any help.
Tomaz.
09-24-2010 10:59 AM
Hi Tomaz,
I usually start with this example when using multiple channels of AO at different frequencies. This way you don't need to worry about writing an integer number of periods to your buffer.
If you don't want to have to write data continuously in your loop, you can regenerate the same data that is pre-written to the DAQmx buffer before the task is started (like in this example). In your case, with one channel at 50 Hz and one channel at 15 Hz, the resulting signal will be periodic every 0.2 seconds (3 periods of the 15 Hz waveform, 10 periods of the 50 Hz waveform). If you were updating at 250 kHz, you would need to write 50000 points to ensure that both channels are periodic.
Best Regards,