LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generatiing Analog output Voltage for a Servo Fan

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>

0 Kudos
Message 1 of 6
(4,690 Views)

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:

 

forum help2.JPG

 

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.

Owen.S
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(4,673 Views)

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.

0 Kudos
Message 3 of 6
(4,664 Views)

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.

0 Kudos
Message 4 of 6
(4,659 Views)

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

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 6
(4,658 Views)

Hi Mbdeck,

 

Ah yes it may have been because you did not start the DAQmx task. Does your code look similar to this now?

 

forum help3.JPG

 Is your code working okay now?

 

If you have any more questions I would be happy to answer them.

 

Thanks,

 

Owen.S
Applications Engineer
National Instruments
0 Kudos
Message 6 of 6
(4,639 Views)