LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error code: -200077

Solved!
Go to solution

The DAQ Assistant always uses dynamic data. With the lower level DAQmx functions, the data type is a function of the polymorphic type of DAQmx Read, number of channels, etc.

0 Kudos
Message 11 of 27
(1,692 Views)

Dear dennis,

 

Thanks for your feedback.

 

ok. help to check.

 

what i intend to do as follows. i want to drive the motor follow the setpoint profile using a pid( at time 0s, setpoint is 0; at time 5s, setpoint is 5; at time 5s, setpoint is 5). The ouput from pid will ask the DAQ assitant to generate the voltage which will drive the motor. 

 

The total distant travel can be calculated using the encoder.

 

if the (setpoint - total distant travel) < 0    (This means, overshoot is happen)  , motor has to be in the reverse direction (this can be done by ON the two Digital Output line)...

 

help to critics the vi if you found something wrong there.

 

if possible, help to correct the vi if you found something wrong there.

 

 

0 Kudos
Message 12 of 27
(1,685 Views)

help to spell out what's wrong in the code if can.

0 Kudos
Message 13 of 27
(1,664 Views)

the said vi give error -200561

 

-200561.png

 

what does it means by DAQmx write <analog 1D DBL N Chan 1 samp) ?? help to share

0 Kudos
Message 14 of 27
(1,657 Views)
Solution
Accepted by topic author JohnS11

John,

 

That error tells me that you attempted to write a value of 199.84 to your analog output channel.  The range of the channel is +/- 10 V.  Since the data exceeds that range, you get the error you see.

 

Dan

0 Kudos
Message 15 of 27
(1,651 Views)

Additionally, to answer your question:

what does it means by DAQmx write <analog 1D DBL N Chan 1 samp) ??

 

DAQmx Write (Analog 1D DBL N Chan 1 Samp) is the version of DAQmx write that was called (this is somewhat hidden from you by the DAQ assistant).  If you use the lower level DAQmx API directly, there are many different version of DAQmx write to choose from, and you'd pick based on how many channels are in your task, the format of your data, etc.

 

Hope that helps,

Dan

0 Kudos
Message 16 of 27
(1,650 Views)

thanks for the explanation....how to improve the vi?

0 Kudos
Message 17 of 27
(1,646 Views)

Dan,

 

I failed to find out the following:

What's the right way to define the sinusoid movement (forward for a meters distance and reverse for a meter distance) in the setpoint pid?? help to share..thanks.

0 Kudos
Message 18 of 27
(1,634 Views)

John,

 

I'm the first to admit that I haven't done much with PID control before, so maybe someone with more experience can speak up.  Is it valid to turn on relays to reverse the motor direction via relay when you see overshoot?  I would think that the PID algorithm itself should account for overshoot.  By turning on relays and reversing the motor, are you not going to get a non-proportional response?

 

What is the relationship between your analog output (voltage) and the response of your motor?

 

Dan

0 Kudos
Message 19 of 27
(1,623 Views)

 

analog output will generate the pwm to feed in motor

0 Kudos
Message 20 of 27
(1,619 Views)