09-23-2009 08:01 AM
Hi
I'm trying to generate an analog output Voltage for a Servo Fan and I keep getting an error message from the DAQmx Write VI each time I run my VI. The maximum ouput of my usb-6009 DAQ device is 5V and I specified 5V in the data terminal of the DAQmx write VI so I don't quite understand why I get an error message indicating that I requested 10V.
I'll appreciate any help. I've also attached the VI.
Error -200077 occurred at DAQmx Write (Analog DBL 1Chan 1Samp).vi:1
Possible reason(s):
Requested value is not a supported value for this property.
Property: AO.Max
You Have Requested: 10.000000
Valid Values Begin with: 0.000000
Valid Values End with: 5.000000
Channel Name: Motor
Task Name: _unnamedTask<7>
09-23-2009 11:25 AM
Hi Mbdeck,
So you want to send a 5v signal to your servo fan.
I have had a look at your code and I can't see any immediate problems with it. I used the same basic code but added an analogue input channel to measure what was being put out. I then put this in a loop:
When the input was set to 5, I recieved a 5 on the output.
Can you get it to run with any output lower than 5v? What version of LabVIEW are you using? Is your hardware plugged in correctly and set up in MAX (measurement and automation explorer)?
I hope we can get your problem sorted out soon.
09-23-2009 12:58 PM
Hi Owen,
I'm using labview 8.2 and my DAQ device usb-6009. I created a Servo Fan voltage output task in MAX. Connected ao0 channel to ai0 of my device just to repeat what you did and I wasn't getting any voltage output data. Using the execution highligting, I was able to see that the error was still occuring at the DAQmx Write VI. I even used a Range corece function putting 5 as the upper bound and zero as the lower bound but it made no difference. I also entered voltages below 5V and nothing changed.
09-23-2009 01:12 PM
Owen,
One observation I made was that when I removed the DAQmx create channel VI and used a start and stop vi along with the write vi, the vi worked. I don't know if this has something to do with my labview version or DAQ device.
09-23-2009 01:20 PM
Sorry that I cannot see the VI, but is this DC signal or AC? If it is AC, maybe the voltage was input as peak voltage and not peak to peak?
Bill
09-24-2009 03:05 AM
Hi Mbdeck,
Ah yes it may have been because you did not start the DAQmx task. Does your code look similar to this now?
Is your code working okay now?
If you have any more questions I would be happy to answer them.
Thanks,