LabVIEWForum.de
GPIB wieder synchronisieren - Druckversion

+- LabVIEWForum.de (https://www.labviewforum.de)
+-- Forum: LabVIEW (/Forum-LabVIEW)
+--- Forum: LabVIEW Allgemein (/Forum-LabVIEW-Allgemein)
+--- Thema: GPIB wieder synchronisieren (/Thread-GPIB-wieder-synchronisieren)



GPIB wieder synchronisieren - blitzgeist - 09.06.2006 09:46

Hallo Leute,

folgendes Problem: Ich habe eine Mesung mit 200 Messwerten am laufen. Wärend der Messung tritt jedoch über serialPoll (Auswerung des Statusbytes des Messgerätes) ab und zu für kurze Zeit ein asynchroner Zustand auf.

kann es evtl daran liegen?

10 EOIP Es wird ein asynchrone Operation ausgeführt. Dieser Fehler tritt auf, wenn ein Thread eine asynchrone Ein-/Ausgabe beginnt und dann versucht, auf die Schnittstelle zuzugreifen, bevor diese synchronisiert ist.

wenn ja, wie sieht die Verdrahtung aus um dieses Bit 10 abzufgaren.

ODER

Problem:
When I use IBIC and do an ibwrt and ibrd everything works fine. However, when I do an ibwrta and then I try to do an ibrda I get an EOIP error. What am I doing wrong?

Solution:
The EOIP error according to the NI-488.2 Help will happen when an asynchronous I/O operation has not finished before some other call is made. During asynchronous I/O, you can only use ibstop, ibnotify, ibwait, and ibonl, or perform other non-GPIB operations. If any other call is attempted, EOIP is returned.

Said so, what is happening is that the controller doesn't know that the I/O operation has finished. We need to get the CMPL bit from the ibsta to know that it has finished, before we can continue with the GPIB commands.
Therefore what we need to do is send an ibwait that will get back when the CMPL is sent. That will notify the controller that the I/O has finished and will Resynchronize the driver and the application.
Once done the ibwait, then you can do the ibrda and then a last ibwait .


Wie gelange ich an das CMPL?

Vielan dank für Tips

Gruß Timo