I am really new to Lab Windows CVI platform so I hope some one can help
I am working with the Test Equity oven - to read the oven temp I have to send an command speciifed by the manufacturer as follow:
Command: "R? 100, 1"
Response fTemp //fTemp resprensets ASCII numberic characters converted to float type
With the stand ard GPIB/GPIB 488.2 Library I am able to read the Hart sensor temp successfully using the following code
{
char sensor_temp[501] = {0};
double actual_temperature;
write_IO ("FI=0", hart_temp_sensor); //set filter to 0
write_IO ("U=C", hart_temp_sensor);
write_IO ("ST=OF", hart_temp_sensor);
write_IO ("T", hart_temp_sensor);
Delay (0.1);
query_IO ("FETCH?", hart_temp_sensor, sensor_temp);
actual_temperature = atof (sensor_temp); // convert char to float
return actual_temperature;
}
How do I read the oven temperature?
↧