07-17-2012 01:59 PM
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
Solved! Go to Solution.
07-18-2012 05:17 PM
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,
07-18-2012 05:21 PM
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!