LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save to file the current temperature data obtained from Temperature controller in labview

Hi everyone,

 

Hoping someone can help with this since I am very new to labview:

 

I am using a Vi for controlling temperature using "TEMPTRONIC" instrument. This Vi was created by a former research-mate. However, right now I need to be able to save the current temperature readings to a file (.txt, etc).

 

I have attached the Vi for reference. The program works perfectly for ramping up the temperature on the device, but i see that there is "current temp" indicator , but it's not recording or showing any values.

 

Thanks in advance for your help!

0 Kudos
Message 1 of 7
(195 Views)

What controller are you using?  Generally, a "Set" command will not initiate a response from an instrument.  You would have to request the read value.  We need more information (ie the instrument you are communicating with) before we can help any more.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(103 Views)

Hello, thanks for your response. the controller is Temptronic 

0 Kudos
Message 3 of 7
(91 Views)

Hi mavs,

 


@mavs123 wrote:

the controller is Temptronic 


So you read its manual to learn about the commands and responses of that device?

 


@mavs123 wrote:

However, right now I need to be able to save the current temperature readings to a file (.txt, etc).


Then you need to implement some file handling in this VI to save your data to a file!

What have you tried? Where are you stuck?

 


@mavs123 wrote:

This Vi was created by a former research-mate.


You should improve this VI!

- Use a FOR loop instead of a WHILE loop when you know the number of steps/iterations before entering the loop.

- I recommend to use FormatIntoString instead of FloatToString combined with several string constants and ConcatString.

- No need to wire default values to SerialPortInit.

- Don't use BytesAtPort, it's wrong most of the times!

- You should use VISAClose after the loop…

- …

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 4 of 7
(83 Views)

@mavs123 wrote:

Hello, thanks for your response. the controller is Temptronic 


That's just the name of the company.  What is the model of the controller you are using?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 7
(72 Views)

The model is a CMI-X Series Controller ThermoChuck Systems.

0 Kudos
Message 6 of 7
(54 Views)

Crossrulz, if i understand correctly then what this VI is doing is writing a temperature setpoint and reading a temperature value from controller. The "setp" command has nothing to do with reading.

 

Regarding data logging, it doesn't seem like you've actually tried anything, but the simplest way is probably Open/create/replace file function (from File I/O tab) at the start of your VI, with Write Text file inside the loop and Close file at the end, outside the loop.

 

 

0 Kudos
Message 7 of 7
(42 Views)