Temperature controller

I am new to labview and I am trying to create a temperature controller. I looked over the PID temperature controller example and have most of my VI working. What I would like to do ideally is have a user input a set of arbitrary times and temperatures via a two column table. This set of data would them be interpolated and a graph created just like the simulate arbitrary signal VI does. After this data is loaded by a push button on my VI by some push button on my VI, the VI would compare the measured signal to the desired signal input by the user. If the measured temperature was less than the desired signal a boolean 1 would be output, which would turn on a heater. My two main problems are setting up a table on the front panel of my VI to accept and create the desired "temperature curve", and graphing the actual temperature on the same graph as the desired temperature(s). Currently I have the desired temperature being input in the Simulate Arbitrary Signal VI's properties, and it compares and outputs properly to the heaters. Everything works fine, but I would like to graph both data sets on the same graph. My actual measurements are single 32-bits, while my desired signal is a dynamic data set. Any help would be appreciated
Thanks-
Bill

JRA i am posting my VI as you suggested me on 4/7/2003
Attachments:
HITACHI_F-2000_TEMPERATURE_CONTROLLER.vi ‏110 KB

Similar Messages

  • Chromalox 6040 and 6050 temperature controller with RS485

    Hi,
     I have a Chromalox heater and the Tempererature controllers (6040 and 6050).  Both controllers has the RS485 hook-up.  I would like to know how to communicate with these devices.  The devices themselves can function as an stand alone units with PID controller installed. These devices can be used with automatic or manual control.  I would like to set it on automatic and control it from Labview.  I am currenlty using the Fieldpoints modules with Labview 2009. I have several questions: 1. can I wire the RS485 2-wire connector directly to the field point module?  2.  if I need an RS 485 converter, I will use the RS485 to USB.  Would I then just use the RS232 visa? 3.  there are two connection on the controller for the RS485, I am not sure how to wire that together as twisted wire.  I have looked at the forum on the subjects and find bits and pieces of info..  I would like more directions.
    Thank you,

    Sorry, I believe I convoluted the issue here at hand.  Let me retract my earlier statement and say this.  Your FieldPoint module has the RS232 port on it, where you can write serial commands out to the device (I mentioned using Optomux earlier, while this is possible, upon second thought it is unnecessary).  You can then have the RS485 port write out to your temperature controllers.  Is this what you are trying to accomplish?  You should be able to wire the connections directly to the FieldPoint module.  Sorry for convoluting the issue earlier.  Does this answer your question more closely?  You mentioned using an RS485 to USB converter, where does that come into play?  I understood that you wanted to go from the FieldPoint RS485 port to an RS485 port onthe temperature controller?
    Regards,
    Shane C
    Applications Engineer
    National Instruments

  • I need an instrument driver for Neocera LTC-21 Temperature Controller and am having problems sending the IDN? string to the same instrument.

    Hi,
    When I use the instrument wizard in LabVIEW 5.0, to indentify a device (Neocera LTC-21 Temperature Controller), I receieve the following error:
    Error.
    There was an error sending this string.
    VISA error code returned was:
    -1073807339
    Error -1073807339 occured at VISA Read.
    Possible reasons:
    VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.
    Although, the manual for this instrument states that the response should be a string of characters in the form of "Neocera Model LTC-21 version".
    Also, I do not have a driver for this instrument, inspite of checking on the NI Instrument
    Divers Network and the company website(www.Neocera.com).
    I would truely appreciate if someone can help me.
    Thanks,
    Kunal.

    I could not find any drivers for that instrument. You may just have to make your own. As for getting the device to respond, there are a couple of things you can do. If you are using GPIB: First, you might want to just reset the device by turning it on and off. If there are other instruments on the same bus, make sure 2/3 of them have their power on. Try communicating with it through IBIC. Here is a page that will help.
    http://www.ni.com/support/gpib/max/ibic.htm
    IBIC communicates with the GPIB on a very base driver level and you set everything manually step by step, so you can see where the break down is. Also make sure you are entering the "*IDN?" and all other commands correctly. Check the device manual to see what commands it should respond to and if there ar
    e any special settings you might need. If you are doing serial communication, you may want to check to see if you need a null modem cable for it to function. There also may be a dip switch on the device that switches between serial and GPIB communication.

  • Program Structure for PID temperature Controller

    Hi everybody,
    I built a PID temperature controller VI for a third party DAQ board, based on a very basic knowledge in programming.
    Now the VI works fine in both ends "i/ps & o/ps", the problem is that i cant get the response that I'm looking for from the PID controller. Since the system is time critical, I wounder if the structure of the VI is cosing this problem. please if you have any idea, hint or suggestion.
    Marwan
    http://www.geocities.com/marwan_m13/weemee8080.jpg
    Attachments:
    PIC Temperature Control(PID).vi ‏364 KB

    Marwan,
    You say that time is critical. The timeout is set to 1 second in the main loop. You will only get one update per second with this setting.
    Several comments:
    1. I have never seen the event structure used soley to control loop timing like this. No reason it should not work, but that is not its primary purpose. If you were to use the event structure to also handle user events (as it is designed to do), then things could get complicated. The Wait (ms) functions and Elapsed Time Express VIs can perform the timing for you without the risk of unintended consequences.
    2. Generally it is recommended to use only one event structure in a program, unless you have very specific reasons for using more than one. Since you are using them only as timers, the interaction potential is minimal.
    3. Right to left wiring and avoidance of wires hidden behind other objects make code much easier to read and to debug.
    4. Putting the user controls and displays and the write to file functions in independent loops allows the PID function to run at different rates from the user interface and file save functions. Look at examples of Producer/consumer architecture.
    5. Precalculating things which do not change from iteration to iteration can save time. For example multiply by 2.55 rather than multiply by 255 and divide by 100. Also make the datatypes consistent to avoid type coercion (indicated by little dots at the input connections such as the 255 input to the mutliply. Changing the datatype of the 255 constant to Double eliminates the coercion.
    Lynn

  • NI Serial Port / Eurotherm Temperature Controller

    NI Serial Port / Eurotherm Temperature Controller
    I am using a N.I. AT 232/4 board with four additional N.I. serial ports. First of all, after installing Windows NT (before I was using Windows 98) the NI Serial Port Diagnostics Program was not able to detect any of the ports even though the ports are correctly installed within Windows. When I was still using Windows 98 the NI Serial Port Diagnostics Program was able to detect all the four ports. Is it necessary that the diagnostics program detects the ports in order to use them with Lab View? I have also two regular Serial ports, which have never been detected by the diagnostics program, but I should still be able to use them with Lab view as well? D
    oes the NI Serial Port Diagnostics Program not function with Windows NT? Do you have an update version for Windows NT?
    I�m trying to control a Eurotherm 2416 and 903 Temperature Controller with two serial ports. Unfortunately, Eurotherm does not give support anymore about Lab View drivers for their Controllers, since they have developed their own Automation Program (iTools) now. I still want to control the Eurotherm Controller with Lab View via the serial port. Do you still have the driver VI�s for the 2416 and 903? It would be nice if you could send me the Eurotherm divers also along with some documentation.
    There is already a question posted about Eurotherm Controller (Eurotherm Temperature Controller not Functioning with NI Serial Board). It is probably a similar problem unfortunately the solution did not bring the right success. Therefore, I would like to ask you to specify the so-called 4-Wire mode.
    Thank You very much for Your help!
    Sincerely,
    Benjamin Thoma

    NI-Serial 1.45 does not install correctly on Windows NT Server 4.0 Terminal Server Edition. The driver (serial.sys), configuration utility (niports.cpl), and inf file (niserial.inf) are installed incorrectly to the user profiles directory.
    A workaround is to copy the files to the right folders which is detailed shortly.
    Definition: "%windows%" refers to the operating system folder. Note: The default operating system folder for this version of Windows is "Wtsrv".
    serial.sys - %windows%\system32\drivers
    niports.cpl - %windows%\system32
    niserial.inf - %windows%\inf
    Note: "niserial.inf" does not need to be copied unless an AT card is being used.
    The above files can either be obtained from the installation CD in the WinNT folder or from the hard-disk locations that they were
    incorrectly installed to which are detailed shortly. Note: Leaving the incorrectly installed files where they are will not harm the system. Definition: "%userid%" refers to the ID that was used when logging in to Windows.
    serial.sys - %windows%\Profiles\%userid%\Windows\system32\drivers
    niports.cpl - %windows%\Profiles\%userid%\Windows\system32
    niserial.inf - %windows%\Profiles\%userid%\Windows\inf
    For the newly copied driver to take effect the system must be rebooted.
    As for the instrument drivers, you can search our instrument driver site to try to find them. Go to "other driver resources" at the link below.
    http://zone.ni.com/idnet/
    For more information on the 4-wire mode, see chapter 6 of the "Serial Hardware and Software for Windows User Manual". I have included a link to the manual.
    http://digital.ni.com/manuals.nsf/caba5d53e9b015a186256793004eebb7/d1260d4fb98e3f228625699f005968d1?OpenDocument
    Kim L.
    Applications Engineer
    National Instruments

  • Performing temperature sweep with lakeshore 340 temperature controller

    I am working on a design project to run a temperature sweep using a lakeshore 340 temperature controller. I need it to increase in steps, wait for the temperature to stabilize and then ramp up to the next setpoint. I need to be able to repeat this process a finite amount of times. I believe I could check if it is stabilized using Booleans and a sequence structure, but I don't know anything about changing the setpoint automatically if anyone could help at all that would be really great. Thanks. 

    The instructions for how to set the temperature should be available at their website. I do not know what commands it uses since it is not an NI product.
    Kyle K.
    Product Manager for Product Data
    National Instruments

  • DLTS System (Trio-tech TC 1000 Temperature controller)

    Hi I was trying to make DLTS(Deep Level Transient Spectroscopy) system using Agilent 4284A LCR Meter and Trio-tech TC1000 Temperature controller.
    I'm done with LCR Meter but I don't know how to start Temperature controller.
    There was labview driver for LCR Meter so I just modified exiting VI.
    However there is no example for controlling Temperature controller by Labview.
    Please help me if you can.
    Thanks for reading this
    Message Edited by daniel2852 on 02-13-2006 07:44 PM

    Hi Daniel,
    If you know the command set of your instrument, you can try communication using the VISA API.  You probably have NI-VISA installed already since it is required for most of the instrument drivers on our web page.  If you do not have it, you will need to download it from here.  Is your temperature controller a GPIB Instrument?  If so, try using the example I have attached below that uses the basic VISA functionality to write a command to the instrument and read back the response.  You will need LabVIEW 7.0 or higher to run it.  Just put in your gpib device resource name and a known command into the VISA Write and set it to read an expected number of bytes.  You should be able to read command responses directly from the instrument.  If this works, you can try to build your own driver around this example.  You can also try using the Instrument I/O Assistant Express VI which often allows for instrument communication without instrument drivers.  This can be found on the Express palette on the block diagram in LabVIEW.  I also suggest going to www.ni.com/idnet and selecting "Request Instrument Drivers" to put in a request to our driver development team.  These are considered when developing new drivers for future releases. 
    I hope this works for you, but if you have any questions, please let me know!
    Chris R.
    Applications Engineer
    National Instruments
    Chris R.
    Applications Engineer
    National Instruments
    Attachments:
    Basic GPIB Write and Read LV70.vi ‏26 KB

  • Lakeshore mode 331 temperature controller

    Hi, sirs,
    Can anyone give me a labview example for displaying and controlling the Lakeshore mode 331 temperature controller?
    Thanks a lot.

    You can download the instrument driver here. There are Getting Started examples that will be included with the driver.
    Message Edited by Laura F. on 11-16-2006 11:21 AM

  • PID Temperature Controller with myRIO

    I am interested in implementing the LabVIEW PID VI to create a temperature controller using the myRIO for a sous vide cooking apparatus similiar to this: https://learn.adafruit.com/sous-vide-powered-by-arduino-the-sous-viduino/sous-vide. I will be using a slow-cooker as the heating element; for the temperature measurements, I am using the DS18B20 one-wire temperature sensor; and to alter the temperature I am using a relay connected to the slow cooker.
    I have had success getting temperature measurements from the DS18B20 with the myRIO following the guidance of this thread: https://decibel.ni.com/content/docs/DOC-41626#comment-44403, however, I am having difficulty finding a starting place to learn how to use the PID VIs for the rest of the project. In a new VI file, I used the program I had used for the temperature readings as a subVI, and tried to connect its output containing the live numerical temperature measurements into the PID VI, but the live temperature measurements as well as the PID VI output are not being transmitted after running the program.
    Here are a few more specific questions:
    Are there any preliminary steps for creating a PID program to accept live measurements from a myRIO target (should the program be enclosed in a loop for continuous updating of myRIO measurements)?
    What information is transmitted at the "output" terminal of the PID VI?
    Is autotuning recommended for this type of application?
    How does the "PID Autotuning" VI differ from the "PID Autotuning (Temperature)" VI?
    I have attached the files I am currently working with: ("1-wire interface.lvproj" is the project file, "RT Main.vi" is the temperature reading program, "PID_Test" is the new PID VI file I am experimenting with).
    If the content in this post is not appropriate to what is expected to be asked in the forums (not specific enough, etc.), please let me know and I apologize in advance. Thank you for your time and assistance!

    Hello dpull,
    There shouldn’t be any particular configuration that needs to be done, for the PID vi to start using the PID VIs, and if you desire to continously acquire the data from the myRIO, then this within a loop might be appropriate.
    The output terminal transmits the control signal of the PID controller, so basically the action that would have to take place to take the desired value to the setpoint.
    As far as recommending autotuning, it mostly  depends on your application and the precision you need, it would always be better to determine the parameters yourself, but if you don’t require super high accuracy, then autotunning should be sufficient.
    The PID autotunning (Temperature) VI is used for processes that include a dead time, since it’s incorporated into that model, the other one is better suited for processes that don’t have dead time.
    As far as resources go for learning to use this toolkit, I’d recommend sticking to the examples you can find in LabVIEW and maybe the following manual.
    http://www.ni.com/pdf/manuals/372192d.pdf

  • How to make Instron Bluehill (strain controller) communicate with labview (temperature controller)

    Hallo 
    we are now using instron to do some mechanical test, with instron bluehill to control the strain rate. 
    At the same time, Labview is used to control the temperature since samples are heated during load.
    we hope that Labview can communicate with Instron so that when the instron test is end, the RSD (Remote software Deployment) of Labview can be off automatically.
    Can someone give me some advice??
    Thanks.

    Hi Snail,
    Bluehill looks to be the software which ships with the strain controller hardware.  The question is really does that software provide any interface that an IDE can tap into?  ActiveX, .NET are a couple of examples - I would give Instron a call.  There is reference to an ActiveX API here - but no specifics.
    Regards,
    Peter D

  • What do i need to communicate with E5EK Temperature controller via RS232C

    Im new to Lookout, Is there existing object class for Omron E5EK,

    Lookout does not have an existing driver for this particular controller. There is however an Omron driver object that can communicate to models C20, C200, C500, C1000, C2000, CQM, CPM1.
    Joe D.
    National Instruments

  • Temperatur​e controller gives wrong powerup configurat​ion after communicat​ing with RS-232

    Hello,
    I was working with a Lakeshore 330 Programmable temperature controller using the LabVIEW drivers downloaded from NI driver site. My aim was to implement a continous RS232 data acquisition. I initially thought of using the similar code to the one used in another transducer (a pressure transducer which acquires data from RS232 continously). Unfortunately, I kept this vi in the same vi as the I am developing. While executing the vi, I got error from the pressure transducer, possible because both transducers are trying to communicate using same serial port. After that, my Lakeshore 330 temperature controller always power up in wrong configuration. I cannot switch input channels. Also, in the temperature it measures, the two digits after the decimal is missing. For instance, instead of 21.43 it is just showing 21.
    Anyone know what went wrong here? I restarted the Lakeshore several times, still no change. Is it possible the wrong write command to the lakeshore somehow messed the setting? Is it possible to get back to the original factory setting. I am getting desperate.
    I deeply appreciate any help and suggestions.
    Thank you in advance
    Zch
    Solved!
    Go to Solution.

    It really doesn't sound like a LabVIEW problem but a user error.
    All I can suggest is that you read the manual for the Lakeshore controller.  They are either going to have some steps that you can use to reconfigure it using front panel controls, or perhaps their own software to help configure it.  Also look at whatever protocol they are using for serial communication.  Comparing that to whatever you were trying to do with the pressure device might tell you how you might have accidentally changed the Lakeshore controllers configuration when you got their code and serial ports all mixed up.

  • Temperatur​e controller

    Hi gents,
    I'm trying to make a temperature controller, but no succes till now.. When you run the vi you will see a blue line and a red line in het Waveform graph, the red line is now showing a random temperature. I want to try to make a controller, so the red line will come close to the blue line. The data for the blue line is loaded from an other document, also attached. Can somebody help me? Thanks in advance!
    Regards Matt V
    ps excuse for my English 
    Attachments:
    Temperatuur regelaar.vi ‏25 KB
    temp verloop.txt ‏1 KB

    You would have to write your own PID algorithms. I really recommend getting the module.
    My search came up with several posts on temperature control:
    http://forums.ni.com/t5/forums/searchpage/tab/mess​age?location=forum-board%3A170&q=temperature+contr​...
    Here is a thread about making your own PID:  http://forums.ni.com/t5/LabVIEW/How-to-build-a-PID​-controller/td-p/608537
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal

  • Does anybosy have an example to work on with OMEGA CN612 temperatur​e controller

    Hi ,
    I am wondering if somebody can help me in finding an example to work on with Omega CN612 temperature controller.
    - Ankit G
    Solved!
    Go to Solution.

    On the surface it seems like there is not VISA communication, thus the time out.
    How close in the driver of this similar model to the actual model?  Have you looked at the two instruction sets?  Knowing this will divide the issue into compatible drivers Vs.. Hardware/example code issues.  If the command sets are the same, then you can look to see why the com seems to be lost, if that is the case.
    Can you watch he code execute to see if the init VI is giving an error prior to the read?
    Mark Ramsdale

  • Running two Eurotherm 3216 temperature controllers using the driver available from Labview

    Hi All,
    I am trying to control two Eurotherm 3216 temperature controllers using the driver provided by NI at http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=7F14CDCB24923797E04400144F1EF8.... Specifically, I am using the "Temperature Control Monitoring" example.
    I have been able to operate a single temperature controller using this code. However, I need to operate two controllers, and I havent been able to modify the code appropriately to do it.
    I initially tried just repoducing the entire code and running it but that provides me with an error. However, if I run the code while using "highlight execution" it works just as I need it to...except to slowly for my purpose.
    If anyone has any insight as to how I may run both controllers, I would really appreciate it.
    Thanks

    Here something’s to try.
    1)      Make sure both controllers have RS485 comms modules installed
    2)      Connect both controllers in Daisy Chain configuration using the EIA485 instructions from Page 16 of the Manual you mentioned.
    3)      Ensure both the KD458 and the 3216 controllers have identical  Comms configurations. ie Baud Rate, Parity etc
    4)      Verify your setup:  In the "Temperature Control Monitoring" example” change the Unit Address, Baud Rate, Parity and Break Length  to match the 1st controllers values. Verify that you can communicate with the 1st controller.
    5)      Using the Same "Temperature Control Monitoring" example”, NOT a second copy, change the Unit Address, Baud Rate, Parity and Break Length to match the 2nd controllers values. Verify that you can communicate with the 2nd controller.
    Comms problems are difficult to fault find so be methodical and you will succeed.

Maybe you are looking for