I have a very old copy of HP-VEE and I am trying to run a USB-TC08 with it. I understand I have to run the ptogram in USB legavy mode.
This is how far I got today:
I have downloaded an evaluation copy of Agilent VEE, which can read the USB sample files supplied by Picotech. I am now trying to recreate the program in my old HP VEE version.
I have found that the ond HP VEE creates an error message whenever it comes accross the word 'float' in the .vh file. This means that I can't use the 'proper' USB mode. (I just deleted the lines containing 'float' making the routines usb_tc08_get_temp, usb_tc08_get_single and usb_tc08_get_temp_deskew unusable; see attached .vh file).
I am now trying to write a program in the USB legacy mode (I am using the sample program for serial mode as basis for that).
I can open the TC-08 successfully and also set the channels successfully. I also call the usb_legacy_run routine successfully. However, I have difficulties reading the temperature with usb_tc08_legacy_get_temp. This routine asks for an argument 'temp'. The USB TC-08 User's Guide (p.33) says about it:
'Pointer to a location where readings are to be placed. Each reading should be compared with 2147483647L or LONG_MAX (include limits.h) to check for overflows. An overflow occurs when the input signal is higher than the measuring range of the USB YC-08.'
However, I have no idea that this means. Could you please explain to me what I have to put in for this argument?
I am attaching the programs:
Tc08.vee is the program for serial TC-08 supplied from picotech
usbtc08.vee is the program for usb TC-08 supplied from picotech
Tc08 usb_fg2.vee is the program I modified for the USB legacy mode.
- (3.52 KiB) Downloaded 177 times