We have an application on Win2K where an apache web server controls instruments via the NI488.2 library (cgi scipt with a c-wrapper around the dll), which is working fine.
After porting the whole application to Win7 and calling the same script from the command line, it is still working fine.
But if the same script is called by the apache server, the connect to the instrument fails, status is 0x8000 .
Here is the NI Spy log:
> 1. ibdev(0, 5, 0 (0x0), T1s (11), 1, 0x0000)
> Prozess-ID: 0x0000056C Thread-ID: 0x00001DD0
> Startzeitpunkt: 15:02:51.506 Aufrufdauer 00:00:00.000
> ibsta: 0x8000 iberr: 0 ibcntl: -535560155(0xe0140025)
> 2. ibclr(?board?)
> Prozess-ID: 0x0000056C Thread-ID: 0x00001DD0
> Startzeitpunkt: 15:02:51.506 Aufrufdauer 00:00:00.000
> ibsta: 0x8000 iberr: 23 ibcntl: 0(0x0)
For reference, this is the the NI spy log if called via the command line:
. ibdev(0, 5, 0 (0x0), T1s (11), 1, 0x0000)
Prozess-ID: 0x00001AB4 Thread-ID: 0x00001DF8
Startzeitpunkt: 15:03:42.634 Aufrufdauer 00:00:00.027
ibsta: 0x100 iberr: 0 ibcntl: 0(0x0)
7. ibclr(UD0)
Prozess-ID: 0x00001AB4 Thread-ID: 0x00001DF8
Startzeitpunkt: 15:03:42.661 Aufrufdauer 00:00:00.072
ibsta: 0x100 iberr: 0 ibcntl: 4(0x4)
We are using the GPIB-USB-HS and NI-488.2.2.72
What is giong wrong here?