First of all, I know that the ni488.2 gpib library does not officially
have support for debian. However, I tried my luck to see if it would
actually work under Debian 3.1 (sarge) and it generally does -
except for one problem which can be illustrated with this short example:
#include <stdio.h>
#include <stdlib.h>
#include <ni488.h>
int main(void){
SendIFC(0);
system("ls");
return 0;
}
I am using a pci gpib card.
Compiled with: gcc-3.4 test.c -lgpibapi -o test.o
Executing ./test.o multiple times will result in either a successful
system call to ls and the content of the working directory displayed or
a segmentation fault - it seems to fail more times than it succeeds.
Then my question is whether you have seen this problem before?
And if there exist a general solution to the problem. I have found an
ugly work-around to put the gpib card offline before the system call
(ibonl(0,0)) and then online again afterwards. In that case the
problem does not occur.
I hope you have some suggestions for a solution.
Best regards
M.Sc.EE. Michael Skipper Andersen
Department of Antennas and Propogation
Institute of Electronic Systems
Aalborg University
Denmark