Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

fortran language interface to gpib

Hi

I am trying to get the fortran interface to gpib working using the compaq visual fortran compiler. I cant seem to get the linking to mfib.obj to work as the compiler spits out

fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

also the [far] data type is nolonger supported under the new compiler.

Can anybody please help with these two probs

Cheers

Dean Adams
0 Kudos
Message 1 of 5
(3,835 Views)
Hi,

The following file shows the supported compilers:

http://zone.ni.com/devzone/conceptd.nsf/webmain/53208B9B098F17CA86256802007B925A?OpenDocument

COFF stands for Common Object File Format. This type of linker error occurs if you're not using the appropriate language interface files. If your not using any of the supported compilers, you need to interface directly with the dll.

The fortran language interface is no longer supported by the newer versions of the GPIN driver. What driver version are you using?, What OS?.

DiegoF.
National Instruments.
0 Kudos
Message 2 of 5
(3,835 Views)
Hi Diegof

Thanks for the reply. Im using visual fortran version 6.6 under windows nt so was trying to use the microsoft language interface. Looks like Ill have to interface directly with the dll. Are their any examples on how to do this with visual fortran?

Thanks

Dean
0 Kudos
Message 3 of 5
(3,835 Views)
Hi,

There isn't many examples on this. The best I could find is the 488.2 User manual:

-1996
http://digital.ni.com/manuals.nsf/webAdvsearch/48C92EBAC4A641C58625665F00672A7A?OpenDocument

-2000
http://digital.ni.com/manuals.nsf/webAdvsearch/2E52C6C7B8872A5B86256B600076601E?OpenDocument&vid=niwc&node=132100_US

Both this manuals have a section on direct access to the dll. The code presented is in C, but should serve as a guide for fortran.

DiegoF
0 Kudos
Message 4 of 5
(3,835 Views)
Thanks for the reply. I kind of thought that this would be the case. I just really wanted it confirming so I could compare alternative options.
0 Kudos
Message 5 of 5
(3,835 Views)