Recent

Author Topic: How to convert visa.h to pas to control a GPIB-measureing device  (Read 4831 times)

Linkat

  • New Member
  • *
  • Posts: 22
Hi all,
I try to control a GPIB bus measureing device. For Visual Basic and HP (Agilent)-Vee a driver (Visa32.dll) is available. I'd try to convert the visa header files to pas by using the h2pas-Wizard.
An error message (error1.gif) shows the problem should be at line 34 (error2.gif).

I have now idea what does it mean.

In the attachment I have the folders with the files before and after h2pas.

Has someone an idea how to convert the header to pas, that I can use the driver?

Or is there another possibility to control a GPIB-device by Lazarus?

Thank you for any help.

Best regards, Linkat

Lazarus 1.0.14 FPC 2.6.2 win XP/ win7



Linkat

  • New Member
  • *
  • Posts: 22
Re: How to convert visa.h to pas to control a GPIB-measureing device
« Reply #1 on: July 04, 2014, 01:50:36 pm »
The attachment above is not complete, sorry.

avra

  • Hero Member
  • *****
  • Posts: 2586
    • Additional info
Re: How to convert visa.h to pas to control a GPIB-measureing device
« Reply #2 on: July 05, 2014, 09:54:11 pm »
If you have VB headers then you can almost automatically convert them to Pascal. C needs much more work and knowledge. It's all explained here:
http://forum.lazarus.freepascal.org/index.php/topic,12763.msg66330.html#msg66330
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018