Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

error 200561 for Temperature Feedback Control

Hello,

   I am trying to control a heater temperature around a set point. My feedback sensor is a thermocouple connected to SCXI conditioning hardware. I read my thermocouple value using a global virtual channel. My analog output of a USB 6211 connects to an HBridge controller, and I have successfully used it as an analog output before.

   Using PID Control-Single Channel.vi and virtual_channels_example.vi, I have constructed a program that is set up to take my input thermocouple global virtual channel and then have an analog output. However, I get error 200561 "Attempted writing analog data that is too large or small. Data: -24 Range min: -10 Range max:10." I know that the value of 24 is actually my thermocouple reading, and not an output voltage. I have attached a screenshot of my code; what do I need to change in my program?

 

Thanks,

Melanie

0 Kudos
Message 1 of 2
(2,950 Views)

Melanie,

 

You'll need to make quite a few changes.  In it's current form, this VI (using the Proportional Gain VI) subtracts the current reading from the set point, then multiplies the difference by your chosen gain.  That setup only works if you are trying to adjust an output voltage based on an input voltage in the same range.  Because we are essentially trying to control a voltage output in one range with a voltage input in another range.

 

You will need to determine a series of things:

  • What voltage does your temperature rating correspond to? 
  • What does changing your output voltage do to the temperature? (i.e. How does a 1V increase of your analog output voltage change the temperature?)
  • How much do you need to change your output voltage to correct your temperature reading?

 

Once you have all of these values, you can modify the Proportional Gain sub VI to correct for all these factors.

Seth B.
Principal Test Engineer | National Instruments
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 2 of 2
(2,930 Views)