Keysight E8491B IEEE 1394 PC Link to VXI User Guide 59Using this Chapter VXI Programming Using the IEEE 1394 Serial Bus// turn off autorange, set a 30V DCV rangeerrStatus = hpe1410_voltDcRang(vi, 0, 30);check(vi, errStatus);// set a 10 us aperture timeerrStatus = hpe1410_voltDcAper(vi, 10.0e-6);check(vi, errStatus);// set 8000 readingserrStatus = hpe1410_sampCoun(vi, 8000);check(vi, errStatus);// store the readings in E8491B shared memory// specify the E8491B shared memory base addresserrStatus = hpe1410_memVmeAddr(vi, start_addr);check(vi, errStatus);// specify the amount of memory required// (8000 readings * 8 bytes/reading)errStatus = hpe1410_memVmeSize(vi, 64000);check(vi, errStatus);// enable the readings to be storederrStatus = hpe1410_memVmeStat(vi, 1);// disable multimeter error detectionhpe1410_errorQueryDetect(vi, 0);// initiate the multimeter to take the readingserrStatus = hpe1410_initImm(vi);// pause 30s to allow readings to completeSleep (30000);// transfer the 8,000 readings (64,000 bytes) from the multimeterusing// the VISA function viMoveIn8err = viMoveIn8(fw, VI_A24_SPACE, 0, 64000, (ViPUInt8)rdgs);if(err < VI_SUCCESS) err_handler(fw, err);// swap the bytes once they are transferred from shared memoryfor (i=0;i<7999;i++){SWAP_FLOAT64(&rdgs[i]);}// print some readings to verify the transfer was successfulfor (i=0; i<10; i++){printf("%lf\n", rdgs[i]);}// close the device sessionshpe1410_close(vi); // close E1410 sessionviClose(fw); // close E8491 session}