Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog output task using DAQmx

Solved!
Go to solution

I need to output an analog waveform signal using 6259, I followed the instructions in 'Building an Analog Output VI in NI-DAQmx' in the NI Developer Zone, when I run the code I get thefollowing error message

 

'Error -50103 occurred at DAQmx Write (Analog 1D Wfm NChan NSamp).vi:3

 

Possible reason(s):

The specified resource is reserved. The operation could not be completed as specified.

Task Name: _unnamedTask<1A> '

 

and when I press 'continue' it goes ahead and plots the waveform on the front panel but does not display it on the test panel in MAX. Could anybody suggest how I could solve the problem?

0 Kudos
Message 1 of 8
(4,832 Views)

Hello,

 

Could you run through this list of 7 possible causes and see if any of those are causing it? 🙂

0 Kudos
Message 2 of 8
(4,830 Views)

hi macabo,

 

thanks for your reply, i went through the list followed the instructions for cases 1 and 7, the others did not pertain to the cause of the problem, however the problem persists. 

 

The waveform I have generated is a train of sine waves multiplied to a ramp function, and have not used a standard signal generator to produce the waveform, could this in some way cause it? 

0 Kudos
Message 3 of 8
(4,825 Views)

Hello,

 

Please post your VI 🙂

0 Kudos
Message 4 of 8
(4,820 Views)
iv attached the vi
0 Kudos
Message 5 of 8
(4,817 Views)
Solution
Accepted by topic author cquark

Hello,

 

Could you try the attached VI and let me know if it works?

 

I noticed you were getting sample clock information from the waveform but the dynamic data type you were using has no time data in it!

Message Edited by macaba on 08-04-2009 09:50 AM
0 Kudos
Message 6 of 8
(4,809 Views)

I changed the input waveform to a simple sine wave and donot get the error any more, i have two questions:

 

1) how do u think the waveform i generate could be causing the error, are there any pointers to bear in mind

2) I still donot get any waveform in the test panel of  the  6259 scan output card under analog input.

 

 I am new to the labview enviroment, hence would appreciate your suggestions greatly.

 

 

0 Kudos
Message 7 of 8
(4,808 Views)

Thanks a ton mark!! i realise my mistake, the program runs fine now! however it still doesnt display the wave form in max, but the oscilloscope connected at the output of the 6259 of the PXI chassis shows the wave form.

 

Additionally I need to generate a cosine wave such that together they trace a spiral(which as uv seen in the VI has already been done), and be able to output it to another channel in 6259, could you suggest how I could go about it.

 

thanks again

 

 

0 Kudos
Message 8 of 8
(4,799 Views)