Motherboard Forums


Reply
Thread Tools Display Modes

HPIB 'IOENTER' command (Data Acquisition with HP3852A)

 
 





















Christof Krueger
Guest
Posts: n/a

 
      01-08-2004, 10:33 AM


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

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT. The time now is 08:19 AM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43