LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PID control without NI-DAQ device

Using a proper programing architecture would help and a simple state machine lends itself perfectly to this

 

First initialize your instruments BTW: I am using an Agilent 34970A)

pi1Capture.PNG

Then go to your Control state

pi2Capture.PNG

Don't forget to shut everything down when you exit.

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 11 of 17
(1,256 Views)

Hi  ,

 

Thanks for your reply.

 

The vi doesn't stop now, but it gives me a timeout error. I have attached a cop[y of the modified vi. Please do let me know what corrections I must make again.

 

thanks for your time

0 Kudos
Message 12 of 17
(1,252 Views)

@RTSLVU wrote:

 

Nobody cares about seeing the voltage the heaters are being run at. That does not tell you at a glance how hard the heating/cooling system is working.

 


You could always do something like this

AeroSoul_0-1620388223473.png

Then you have throttle that goes from 0 to 100% and the voltage is still regulated in it's full range 0-120VAC.

 

0 Kudos
Message 13 of 17
(1,231 Views)

@AeroSoul wrote:

@RTSLVU wrote:

 

Nobody cares about seeing the voltage the heaters are being run at. That does not tell you at a glance how hard the heating/cooling system is working.

 


You could always do something like this

AeroSoul_0-1620388223473.png

Then you have throttle that goes from 0 to 100% and the voltage is still regulated in it's full range 0-120VAC.

 


That's just dumb and takes twice as much code.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 14 of 17
(1,222 Views)

AeroSoul_0-1620636045191.png

 

0 Kudos
Message 15 of 17
(1,193 Views)

@AeroSoul wrote:

AeroSoul_0-1620636045191.png

 


Nice and compact, but I believe that is still more code than this: paCapture.PNG due to the two math functions and the formula node structure.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 16 of 17
(1,185 Views)

Actually if you made PID range 0 - 120 and then multiplied output by 0.833 it'd be the same amount of code 😄

0 Kudos
Message 17 of 17
(1,169 Views)