EasyManua.ls Logo

Keysight Technologies N5173B EXG - Using External Leveling (N5173 B;83 B Only)

Keysight Technologies N5173B EXG
398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
114 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
GPIB Programming Interface Examples
// events and close down the session
viStatus = viDisableEvent(vi,
VI_ALL_ENABLED_EVENTS,VI_ALL_MECH);
viStatus = viUninstallHandler(vi, VI_EVENT_SERVICE_REQ,
interupt, rdBuffer);
viStatus = viClose(vi);
viStatus = viClose(defaultRM);
return 0;
}
// The following function is called when an SRQ event occurs. Code
specific to your
// requirements would be entered in the body of the function.
ViStatus _VI_FUNCH interupt(ViSession vi, ViEventType eventType,
ViEvent event, ViAddr addr)
{
ViStatus status;
ViUInt16 stb;
status = viReadSTB(vi, &stb);// Reads the Status Byte
sweep=0;// Sets the flag to stop the ’*’ printing
printf("\n");// Print user information
printf("An SRQ, indicating end of sweep has occurred\n");
viClose(event);// Closes the event
return VI_SUCCESS;
}

Table of Contents

Other manuals for Keysight Technologies N5173B EXG

Related product manuals