Forum > Windows

Migrate turbo pascal 7.0 with ISA bus GPIB card to a laptop or recompilation?

(1/3) > >>

Argus:
Dear all,
I am in charge of an instrument (magnetic susceptometer) where the software was developed in tp7 around 1995. It needs communication over GPIB.
Over the years it has changed very little, and the last modification (ca 8 ys ago) was about how to fix the run time 200 error (the clock became too fast leading to division by zero).

Issue 1. Now the GPIB hard ware is dead, but I have found an alive one (with the old ISA bus, brand CEC). So, how can I make the 1995 program to understand that the GPIB card is new?
Does it involve a new compilation of the source code?

Issue 2. I would prefer to run this program from a *modern* laptop with - possibly - w10. Can I do that with Lazarus?

Grateful for input  :)

winni:
Hi!

GPIB still alive. I wont believe it.

For 150.- € .. 200,- € there are adapters from GPIB to USB to buy.
With drivers for the most OS.

Example: https://www.antratek.de/prologix-gpib-usb-controller

This is the connector from 1970 to now ...

This way you get rid of all that GPIB stuff in the code and only have to read the USB connection. The are units in fpc for this case.

fpc has a "Turbo Mode" so you don't have to care about the "new" features.

Anyway: Moving from Turbo to fpc there are restrictions and caveats - read the docs first.  First steps:

https://www.freepascal.org/port.html

Winni

Argus:
Thank you Winni,

we have more things you wouldn't understand...  :D

Eg a thermo balance from Perkin Elmer. It is run by the worlds 1st pc (?). On 5' floppy disks and with a proprietary DOS.

Anyway, my hope for a relatively quick fix, is to use the driver package I found (CEC) which seems to recognize the ISA GPIB card I found. Hopefully there is a tp driver file, and then I expect to recompile the program. A complication is that this particular software from CEC does not work on my laptop, so everything needs to be done on the (already) obsolete ISA pc under w98.

Yes, I know of these USB-GPIB modules, but in that case we are talking about a total migration to a w10 environment. Certainly that project will be a greater feat - at least for me. %)

Eventually, I would like to rewrite everything as a LabView application.

Is this a well posed question: If I make a new .exe file where all references to the old GPIB is replaced with the new card, should it work?

All the Best and Stay Safe

MarkMLl:

--- Quote from: Argus on December 09, 2020, 02:51:20 pm ---we have more things you wouldn't understand...  :D

--- End quote ---

Try us.


--- Quote ---Eg a thermo balance from Perkin Elmer. It is run by the worlds 1st pc (?). On 5' floppy disks and with a proprietary DOS.

--- End quote ---

I can assure you that the only thing there that causes me to raise an eyebrow is the idea of a five foot floppy. I've worked with discs three feet or so in diameter, but they were the sort of thing that went through walls if not accorded appropriate respect.

Now as for IEEE-488 etc., a few months ago I got a "Prologix-compatible" (https://github.com/fenrir-naru/gpib-usbcdc http://prologix.biz/downloads/PrologixGpibUsbManual-6.0.pdf) USB -> GPIB interface from some anonymous Chinese supplier, and am using it to good effect to capture printer output from a couple of HP instruments via a Pascal program: as far as the host computer is concerned it's a serial device and I'm driving it from FPC's standard serial.pp unit on Linux.

This one I think https://www.aliexpress.com/item/1005001424834228.html or perhaps https://www.aliexpress.com/item/4000672343858.html Bit of a delay while he made one up in (I suspect) his university room. And I'm not sure how much is being shipped by anybody in China at the moment...

I'm not saying that that adapter has a complete controller implementation, but it's certainly a very good starting point even if you have to pay for it yourself. Otherwise you'll find this sort of thing fairly regularly discussed on https://www.eevblog.com/forum/index.php

Hope that helps.

MarkMLl


avra:

--- Quote from: Argus on December 09, 2020, 02:51:20 pm ---Eventually, I would like to rewrite everything as a LabView application.
--- End quote ---
Eventually, you could rewrite everything as a PascalSCADA application.  ;)
http://pascalscada.com

Navigation

[0] Message Index

[#] Next page

Go to full version