LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing a transfer function without the Control and Simulation Toolkit

Solved!
Go to solution

Hello folks,

 

I am working on implementing a control system for a thermocycler. And for this purpose, I need a feedback PID control loop and a feedforward controller that reduces the load on the feedback control loop. We were able to implement the PID loop without the toolkit (using shift registers and such) but I'm not sure how to implement a feedback controller whose transfer function I have [(35s+1)/(0.0001s+1)]. 

Can I use a formula node and implement it with a C-code? I'm not sure how to do this in C either.

 

Any help is appreciated!

Thanks!

 

sirius18

0 Kudos
Message 1 of 3
(3,667 Views)
Solution
Accepted by topic author sirius18

Hi sirius18,

 

You may use the Formula Node to perform the math you mentioned, but it will not execute C code.  The syntax is similar though.  Here is some information on putting a formula into a Formula Node:

 

  Formula Node (help documentation) - http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/formula_nodes/

  Example - http://zone.ni.com/devzone/cda/epd/p/id/3058

 

For those who prefer C, one may write their code there, create a DLL, and then call their C function using a Call Library Function Node:

 

  Call Library Function Node (help documentation) - http://zone.ni.com/reference/en-XX/help/371361H-01/glang/call_library_function/

  Tutorial (overview) - http://www.ni.com/white-paper/3009/en

  Example - http://zone.ni.com/devzone/cda/epd/p/id/1513

 

Hope this helps!

 

Regards,

Regards,
Chris Elliott
x36772
Message 2 of 3
(3,645 Views)

On a side note - when looking into this, I came across what looks to be a very useful tool for performing math in LabVIEW:

 

  Math Node - https://decibel.ni.com/content/docs/DOC-13859

 

I've not used it myself, but some others here may have some input on this!

Regards,
Chris Elliott
x36772
0 Kudos
Message 3 of 3
(3,644 Views)