From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Output Using USB 6009 to control Solenoid Valves

I'm trying to write a vi that would use USB 6009 that is connected a solenoid valve. I tried to use analog output that outputs as a voltage.

 

I'm trying to get a 33% duty cycle with a frequency of 1Hz and with an amplitude of 5V (sq wave).

It keeps telling me Error -200077 occurred at DAQ Assistant.

 

I'm really very new at this and I'm not sure what to do next. Is there a way to detect a waveform when its high and low? Or can I simulate that a different way without using a waveform generator?

 

Thanks

0 Kudos
Message 1 of 7
(3,866 Views)

Hi,

 

I have faced the same issue. The error code means 'Requested value is not a supported value for this property.'

 

Following update of range it started working. The "range" stands for one of the following: min/max values and value itself  you try to write. The range defined  at "DAQmxcreateAOVolatageCHAN" step.

 

Goodluck. 

0 Kudos
Message 2 of 7
(3,852 Views)

Since the 6009 analog output is software timed, you certainly cannot specify a waveform as an output. You can only write a single point at a time.

0 Kudos
Message 3 of 7
(3,844 Views)

Hello I have the same problem however with my NI USB 6008 however. The change of the output range didn't solve the problem. I have attached a picture of the error message. Have you solved your problem?

0 Kudos
Message 4 of 7
(3,842 Views)

The error message tells you what you have done wrong and it is exactly what I have just said. The 6008 is simply not capable of outputting a waveform like you have specified.

0 Kudos
Message 5 of 7
(3,834 Views)

Thanks. I thought so after reading something like that last night. 

 

Can you kindly recommend how would implment a PWM signal that has a variable duty cycle and at 1Hz? 

0 Kudos
Message 6 of 7
(3,826 Views)

See this.

0 Kudos
Message 7 of 7
(3,821 Views)