EasyManua.ls Logo

Keysight 81160A - Page 591

Keysight 81160A
672 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...
Remote Programming Reference
81150A and 81160A User’s Guide 591
sprintf(cmd_str, "%s %%%dhb\n",
"DATA:DAC VOLATILE,", (long)(data_size));
// A comma separated list of values use this format
// Setup cmd_str for the viPrintf function to send integer
// list data
// sprintf(cmd_str, "%s %%,%dhd\n",
// "DATA:DAC VOLATILE,", (long)(data_size));
//Set timeout to infinite
errorStatus = viSetAttribute(vi, VI_ATTR_TMO_VALUE,
VI_TMO_INFINITE);
// Write the data to the instrument
errorStatus = viPrintf(vi, cmd_str, waveform);
//restore standard timeout
errorStatus = viSetAttribute(vi, VI_ATTR_TMO_VALUE,2000);
/* Close session */
viClose (vi);
viClose (viRm);
return 0;
}

Table of Contents

Related product manuals