VI_ERROR_BERR Bus error occurred during transfer. VI_ERROR_INV_SETUP Unable to start write operation because setup is invalid (due to attributes being set to an inconsistent state). VI_ERROR_NCIC The interface associated with the given is not vi currently the controller in charge. (continues) Description Error Codes VI_ERROR_NLISTENERS No Listeners condition is detected (both and NRFD are deasserted). NDAC VI_ERROR_IO An unknown I/O error occurred during transfer. VI_ERROR_CONN_LOST The I/O connection for the given session has been lost. Description The write operation synchronously transfers data. The data to be written is in the buffer represented by buf. This operation returns only when the transfer terminates. Only one synchronous write operation can occur at any one time. Table 6.1.4 Special Values for Parameter retCount Value Action Description VI_NULL Do not return the number of bytes transferred. Related Items See the INSTR resource description. Also see viRead(). Implementation Requirements OBSERVATION 6.1.13 If you pass as the parameter to the operation, the number of bytes VI_NULL retCount viWrite() transferred will not be returned. This may be useful if it is important to know only whether the operation succeeded or failed. 6.1.5 viWriteAsync(vi, buf, count, jobId) Purpose Write data to device asynchronously. Parameters Name Direction Type Description vi IN ViSession Unique logical identifier to a session. buf IN ViBuf Represents the location of a data block to be sent to device. count IN ViUInt32 Specifies number of bytes to be written.
VI_ERROR_BERR Bus error occurred during transfer. VI_ERROR_INV_SETUP Unable to start write operation because setup is invalid (due to attributes being set to an inconsistent state). VI_ERROR_NCIC The interface associated with the given vi is not currently the controller in charge. (continues) Error Codes Description VI_ERROR_NLISTENERS No Listeners condition is detected (both NRFD and NDAC are deasserted). VI_ERROR_IO An unknown I/O error occurred during transfer. VI_ERROR_CONN_LOST The I/O connection for the given session has been lost. Description The write operation synchronously transfers data. The data to be written is in the buffer represented by buf. This operation returns only when the transfer terminates. Only one synchronous write operation can occur at any one time. Table 6.1.4 Special Values for retCount Parameter Value Action Description VI_NULL Do not return the number of bytes transferred. Related Items See the INSTR resource description. Also see viRead(). Implementation Requirements OBSERVATION 6.1.13 If you pass VI_NULL as the retCount parameter to the viWrite() operation, the number of bytes transferred will not be returned. This may be useful if it is important to know only whether the operation succeeded or failed. 6.1.5 viWriteAsync(vi, buf, count, jobId) Purpose Write data to device asynchronously. Parameters Name Direction Type Description vi IN ViSession Unique logical identifier to a session. buf IN ViBuf Represents the location of a data block to be sent to device. count IN ViUInt32 Specifies number of bytes to be written.
vpp43_2016-02-26.docx