07-29-2015 12:12 PM
07-29-2015 11:46 PM
I guess something like query_IO("R? 100, 1", &temperature) could work. But without the source code for the query_IO() function, we don't know what this function really does and there might be an error in this function.
You allready tried to communicate with the oven manually using the "communicate with instrument" utility in Measurement and Automation Explorer. ?
07-30-2015 09:19 AM
Thank you for your suggestion. I found the answer after a while. Basically I can use the library I/O write function ibwrt to write the read command as follow
ibwrt (oven_id, buffer, (long) length); with the buffer is the command "R? 100,1<lf>"
then I will have to read the return value by using the provide command as follow
ibrd (oven_id, read_data, 100); read_data is the char array that will contain the result from address 100 of the oven
Thank again for your time.