Forum: PC Hard- und Software Linux + VISA: Rigol DS2072 trotz pingen nicht erreichbar


von default user (Gast)


Lesenswert?

Moin,
vorneweg:
Ich bin im Umgang mit Linux ziemlich unerfahren. Ich habe dieses Projekt 
hier 
http://www.clifford.at/blog/index.php?/archives/128-Controlling-a-Rigol-DS2000-Scope-using-Linux.html 
kompiliert.

user_1@Ubuntu-Box:~/librevisa/rigol$ ls -l
total 4360
-rw-r--r-- 1 user_1 user_1 1908266 Nov 24 11:44 libvisa.a
-rwxr-xr-x 1 user_1 user_1     934 Nov 24 11:44 libvisa.la
-rwxr-xr-x 1 user_1 user_1  774068 Nov 24 11:44 libvisa.so
-rwxr-xr-x 1 user_1 user_1  774068 Nov 24 11:44 libvisa.so.0
-rwxr-xr-x 1 user_1 user_1  774068 Nov 24 11:44 libvisa.so.0.0.0
-rw-rw-r-- 1 user_1 user_1    2363 Nov 22 20:41 Makefile
-rw-rw-r-- 1 user_1 user_1    9855 Nov 20 12:14 rigol-4in1-keygen.c
-rwxrwxr-x 1 user_1 user_1   78138 Nov 22 20:41 rigol-ds2000-shell
-rw-rw-r-- 1 user_1 user_1   46071 Dec  2 13:07 rigol-ds2000-shell.cc
-rw-rw-r-- 1 user_1 user_1   81296 Nov 22 19:09 rigol-ds2000-shell.o
user_1@Ubuntu-Box:~/librevisa/rigol$

Das Oszi lässt sich Pingen (und auch auch per http erreichen):
user_1@Ubuntu-Box:~/librevisa/rigol$ ping 192.168.2.114
PING 192.168.2.114 (192.168.2.114) 56(84) bytes of data.
64 bytes from 192.168.2.114: icmp_req=1 ttl=255 time=2.98 ms
64 bytes from 192.168.2.114: icmp_req=2 ttl=255 time=1.48 ms
64 bytes from 192.168.2.114: icmp_req=3 ttl=255 time=1.49 ms
^C
--- 192.168.2.114 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 1.482/1.986/2.981/0.704 ms


Wenn ich aber das Programm starten möchte ist das Oszi nicht erreichbar:
user_1@Ubuntu-Box:~/librevisa/rigol$ ./rigol-ds2000-shell 
TCPIP::192.168.2.114::INSTR
Cannot open resource TCPIP::192.168.2.114::INSTR!


Vielleicht hilft der Source weiter, das hier ist der Übeltäter:
1
   if (viOpen(rmgr, argv[1], VI_NO_LOCK, 0, &vi) != VI_SUCCESS) {
2
        fprintf(stderr, "Cannot open resource %s!\n", argv[1]);
3
        exit(1);
4
    }
rmgr wird ein paar Zeilen vorher abgefragt: ok
argv[1] gebe ich per Kommandozeile ein: ok?
VI_NO_LOCK, 0 sind Konstanten: ok
Über &vi kann ich nichts sagen.





Im Moment geht mir die Idee aus in welche Richtung ich mich noch bewegen 
könnte. Jemand ne grundsäzliche Idee?

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.