Silverfrost Forums

Welcome to our forums

IN and OUT Commands in FTN77

8 Sep 2005 2:16 #328

Please could you advise me on the following problem:

I am using FTN77 (Version 3.55 - very old I know) under Windows 98 and wish to control a PCI card using the IN and OUT commands in FTN77.

The card is a PCIDCC5 counter card from KONTRON and some sample code for controlling and reading the card is provided e.g

to set various registers on the card

OUT Baseadd+1, hexadecimal number

and to read

Counter2 = INP(Baseadd)

The software I have written will not compile with the IN OUT commands – everything else is valid and compiles and runs properly. Please could you advise if the IN OUT format is correct and if their use in this context is valid. The baseaddress of the card seems to be OK

Many thanks

Geoff Ludbrook

geoff@ludbrook400.fsnet.co.uk

G Ludbrook

9 Sep 2005 1:19 #331

As far as I can recall there were routines called IN@ and OUT@ under DBOS but these were not ported to Win32. If your FTN77 is the Win32 version then IN@ and OUT@ will not be available.

The alternative Win32 Salford routines are called READCOMMDEVICE@ etc. These are documented in the FTN95 documentation. I cannot recall if they are in the FTN77 documentation but they are located in salflibc.dll so they should also work with FTN77 (Win32).

Failing this, you can communicate using the Windows API if you have the time and patience.

Please login to reply.