Hello,
I have to rewrite an old DOS-program which controls a HP3852A data
acquisition unit to windows.
The DOS program used api calls like IOOUTPUTS or IOENTER to access the
hardware. I'm using a GPIB api now that implements the commands
described here:
http://linux-gpib.sourceforge.net/do...ce.html#AEN627
My problem is, that I don't know what exactly IOENTER does and how to
achieve the same by only using the calls described in the link given above.
This is a sample call:
err := IOENTER(709,impulse);
709 is a device number/handle and the result of a previously submitted
command is supposed to be written into the variable "impulse" which is
passed by reference here.
It's difficult to find something about it on the internet. I only found
out that IOENTER reads a single real number from the specified device
but I don't know in which format and the problem is, that I don't have
access to the hardware at the moment.
So there are different possibilities:
- The return value is returned as a string. In this case I could parse
it and write the value into a 'real' floating point variable.
- The return value is returned in binary form compatible, or ...
- ... incomlatible with common floating point number implementations.
In the latter two cases it is non-trivial to convert the returned bits
to a value I can use in my calculations.
So I hope the value is returned as string and i could use 'ibrd' to read
it and convert it to a number. Can you confirm that?
Thanks!
--
Regards,
Christof Krueger