Serial, GPIB, Ethernet, and VXI systems all have a definition of message-based communication. In GPIB, serial, and Ethernet, the messages are inherent in the design of the bus itself. For VXI, the messages actually are sent via a protocol known as word serial, which is based on register communication. In either case, the end result is sending or receiving strings.
The following example shows the basic steps in any VISA program.
#include "visa.h" #define MAX_CNT 200 int main(void) {
/* Error Initializing VISA...exiting */ } |