"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;
}