04-20-2011 05:15 AM
I'm currently writing a .NET 3.5 Talker/Listener Application, which shall also support serial polling with a customized serial poll byte. I want to use the serial poll byte to synchronize the communication (in other words some kine of software based flow control). In the Talker/LIstener application I implemented a state machine listening on the GPIB status flags. My problem now is every time I get a serial poll from the system controller (also a .NET application) my application enters the Talker Adressed state and starts an attempt to write. The TalkerAdressedFlag signalizes three states TADS,TACS and SPAS and only in TACS the application shall write - is there any chance to detect whether the current state is TACS (Talker Active State) or SPAS (SerialPollActive State)?
At low level I may query the STBO bit but, at .NET level I have no idea.
Any help or general hints on implementing a stable and synchronized communication between two PC-based devices.
Thanx in advance.
Kronos1
04-26-2011 04:52 AM
Hi Kronos,
Serial poll is a special bus operation where the instrument controller obtains the status byte register value.
A serial poll returns only the contents of the status byte register. However, because the status byte register is a summary of other registers, you can use enable registers to monitor other desired instrument events.
To avoid any problem you will need to control the service request and serial poll manually
How Can I Handle Service Request and Serial Polling When Using Multiple Logical Devices?
Understanding the Status Registers
Using Instrument Status Registers and Service Requests in LabVIEW
I hope that this information will help you achieve your goal