LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I make and wire reffercence signals(ramp,sine,square) to excite and evaluate the behaviour of the system wih PID control?

Dear all,
 
I am Tri, I am a beginer with LV program. Actually I used LV for my reasearch, I had tried wiht very simple thing but the problem arise because I am not familiar with LA. Why I know that problem is simple because I compare with MatLab that I had somtime used before.
 
I make a loop of PID control, It worked properly but I don't know how to make a refference signal to wire to the loop for excitating to evaluate the behaviour of the system. Please give me your help.
 
Thanks
0 Kudos
Message 1 of 5
(2,765 Views)

Hi Tri,

      Open a VI, use \HELP\Find Examples and SEARCH for "PID".

To help you understand the LabVIEW Diagram, "Highlight Execution" (click on the Light-Bulb), then Run the VI and watch the Diagram!

The PID function operates on discrete values (your "reference signal") on a user-defined time-interval.  The "PID loop" is (usually) inside a "While Loop" and a new "reference signal" value is needed on each iteration.

There are may ways to simulate individual values, but if you know what your exitation looks like, you could make an array representing the Exitation-value (in the time-domain), and, on each iteration, wire successive array-elements to the "Set Point".

cheers.

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 2 of 5
(2,761 Views)

Dear Dynamik,

Thanks for your soon reply, may I send you attachments then you can look and give me a clue.

That is the .vi that works ok with manually changing desired signal

I am going to post the next .vi that i try with dynaically changing desired signal but it was wrong somewhere

Cuold you please revise for me

Best regards,

0 Kudos
Message 3 of 5
(2,752 Views)
Here is the .vi that need your help
 
Instead of using DBL for exciting the desired signal, the Basic Function Generator has been employ, YX pairs extracted form wavefrom generator go to PID setpoint profile, then go to the reference of PID algorithm.
 
It do not work properly!
 
Once again many thanks for your consideration,   
0 Kudos
Message 4 of 5
(2,755 Views)

Hi Tri,

      I've employed the "simple PID.vi" without a problem, but your example is more complex.  I think you use a Function generator to modulate DAQ inputs?

Perhaps someone else will be able to infer your intention and identify a flaw in the logic.

In case someone else wants to run your VI, it may help to build/attach an .llb (some sub-VIs are needed by the VI you atached.)

To build the .llb, save your VI with Development Distribution options (Alt-F,Alt-W) and attach the .LLB

1) \File\Save with Options

2) select Development Distribution

3) Save

4) choose "New VI Library"

But first, It would be helpful to us if you clean-up the code - straighten wire-paths, minimize bends in wires, and try to avoid "tall" diagrams.  Scrolling diagrams up and down is "bad form".  If scrolling is necessary, left&right is preferrable!

Cheers.

(and, for the record: in my previous post, Exitation would be wired to "Process Variable", Not "Set Point" (ouch!))

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 5 of 5
(2,741 Views)