I got a Camac crate hooked up to a pc(windows 98)
with Gpib-card and Lecroy 8091A gpib interface.
Using Labwindows CVI 5.5 patch 1.
Making calls after init the gpib pc card this code
generates two calls, first the requested, and secondly some erroneous call.
-------------8<------------Code
lc8901a_init ("GPIB::2", 0, 1, &lcGPIB);
lcGPIB is declared as static.
----------------------------------
SPy log:
------------------8<--------------
8. ibdev(0, 2, 0 (0x0), T3s (12), 1, 0x100A)
Process ID: 0xFFFC8113 Thread ID: 0xFFFB6193
Start Time: 13:56:31.730 Call Duration: 00:00:00.060
ibsta: 0x100 iberr: 0 ibcntl: 0(0x0)
9. ThreadIbsta()
Process ID: 0xFFFC8113 Thread ID: 0xFFFB6193
Start Time: 13:56:31.790 Call Duration: 00:00:00.000
ibsta: 0x100 iberr: 0 ibcntl: 0(0x0)
10. ibconfig(UD0, IbcREADDR (0x0006), 1 (0x1))
Process ID: 0xFFFC8113 Thread ID: 0xFFFB6193
Start Time: 13:56:31.840 Call Duration: 00:00:00.000
ibsta: 0x100 iberr: 0 ibcntl: 0(0x0)
11. ThreadIberr()
Process ID: 0xFFFC8113 Thread ID: 0xFFFB6193
Start Time: 13:56:31.840 Call Duration: 00:00:00.000
ibsta: 0x100 iberr: 0 ibcntl: 0(0x0)
12. ibconfig(0, IbcEndBitIsNormal (0x001A), 0 (0x0))
Process ID: 0xFFFC8113 Thread ID: 0xFFFB6193
Start Time: 13:56:31.840 Call Duration: 00:00:00.060
ibsta: 0x130 iberr: 1 ibcntl: 0(0x0)
13. ibln(0, 2, NO_SAD (0), TRUE (1))
Process ID: 0xFFFC8113 Thread ID: 0xFFFB6193
Start Time: 13:56:31.900 Call Duration: 00:00:00.000
ibsta: 0x130 iberr: 0 ibcntl: 1(0x1)
14. ibtmo(UD0, T10s (13))
Process ID: 0xFFFC8113 Thread ID: 0xFFFB6193
Start Time: 13:56:31.900 Call Duration: 00:00:00.050
ibsta: 0x100 iberr: 12 ibcntl: 0(0x0)
> 15. ibdev(0, 4095, 0 (0x0), T10s (13), 1, 0x0000)
> Process ID: 0xFFFC8113 Thread ID: 0xFFFB6193
> Start Time: 13:56:31.950 Call Duration: 00:00:00.000
> ibsta: 0x8100 iberr: 4 ibcntl: 0(0x0)
> 16. ThreadIbsta()
> Process ID: 0xFFFC8113 Thread ID: 0xFFFB6193
> Start Time: 13:56:32.010 Call Duration: 00:00:00.000
> ibsta: 0x8100 iberr: 4 ibcntl: 0(0x0)
> 17. ThreadIberr()
> Process ID: 0xFFFC8113 Thread ID: 0xFFFB6193
> Start Time: 13:56:32.010 Call Duration: 00:00:00.000
> ibsta: 0x8100 iberr: 4 ibcntl: 0(0x0)
----------------------------------------------
I have no clue why the second call happends with
a value thats out of range.
Hope someone knows.
/Anders