Keysight E4428C ESG RF Programming Manual page 143

Signal generators
Table of Contents

Advertisement

* Don't bother decoding.
******************************************************************/
if (strncmp(result_str, "+0,", 3) == 0) {
/* Matched +0,"No error" */
break;
}
puts(result_str);
} while (1);
}
/***************************************************************************
*
> $Function: isQuery$
*
* $Description: Test current SCPI command to see if it a query. $
*
* $Return:
(unsigned char) . . . non-zero if command is a query.
*
***************************************************************************/
unsigned char isQuery( char* cmd )
{
unsigned char q = 0 ;
char *query ;
/*********************************************************/
/* if the command has a '?' in it, use queryInstrument.
/* otherwise, simply send the command.
/* Actually, we must be a more specific so that
/* marker value querys are treated as commands.
/* Example:
SENS:FREQ:CENT (CALC1:MARK1:X?)
/*********************************************************/
if ( (query = strchr(cmd,'?')) != NULL)
{
/* Make sure we don't have a marker value query, or
* any command with a '?' followed by a ')' character.
* This kind of command is not a query from our point of view.
* The signal generator does the query internally, and uses the result.
*/
query++ ;
while (*query)
Keysight Signal Generators Programming Guide
/* bump past '?' */
LAN Programming Interface Examples
0 if not.
*/
*/
*/
*/
*/
Programming Examples
135

Advertisement

Table of Contents
loading

Table of Contents