Read All overloads of the method read bytes from the device and return them as an array of bytes. Read The overloads of the method that return an array of bytes allocate the array themselves. When using Read the overload of the method that returns an Int64, the calling program must allocate the array before Read making the call, and the array must contain at least elements. index + count Bytes are returned exactly as they are read from the device, in exactly the same order. Reading continues until one of the following conditions is met: An END indicator is read from the data coming from the device. This will only happen if END is supported by the protocol being used, and is enabled. A termination character is read in the data coming from the device, and is In this case, the IMessageBasedSession.TerminationCharacterEnabled true. termination character is included in the data buffer. Exactly bytes have been read from the device, if the overload includes the count count argument. The amount of time spent reading (or trying to read) data from the device exceeds in which case an exception is thrown. IVisaSession.TimeoutMilliseconds, Byte[] Read(); Byte[] Read(Int64 count); Byte[] Read(Int64 count, out ReadStatus readStatus); void Read(Byte[] buffer, Int64 index, Int64 count, out Int64 actualCount, out ReadStatus readStatus); unsafe void Read(Byte* buffer, Int64 index, Int64 count, out Int64 actualCount, out ReadStatus readStatus); Name Description Type The maximum number of bytes to be returned count Int64 from the device. The default is to read until an end condition is received. The actual count of bytes stored in the buffer actualCount Int64 parameter during the read operation. In the array, the index where the method places index Int64 the first byte returned from the device. The default is 0. An array of bytes allocated by the calling buffer Byte[] program, into which bytes returned by the device are placed. A reference to the array Byte*
Read All overloads of the Read method read bytes from the device and return them as an array of bytes. The overloads of the Read method that return an array of bytes allocate the array themselves. When using the overload of the Read method that returns an Int64, the calling program must allocate the array before making the call, and the array must contain at least index + count elements. Bytes are returned exactly as they are read from the device, in exactly the same order. Reading continues until one of the following conditions is met: An END indicator is read from the data coming from the device. This will only happen if END is supported by the protocol being used, and is enabled. A termination character is read in the data coming from the device, and IMessageBasedSession.TerminationCharacterEnabled is true. In this case, the termination character is included in the data buffer. Exactly count bytes have been read from the device, if the overload includes the count argument. The amount of time spent reading (or trying to read) data from the device exceeds IVisaSession.TimeoutMilliseconds, in which case an exception is thrown. Byte[] Read(); Byte[] Read(Int64 count); Byte[] Read(Int64 count, out ReadStatus readStatus); void Read(Byte[] buffer, Int64 index, Int64 count, out Int64 actualCount, out ReadStatus readStatus); unsafe void Read(Byte* buffer, Int64 index, Int64 count, out Int64 actualCount, out ReadStatus readStatus); Name Description Type count The maximum number of bytes to be returned from the device. The default is to read until an end condition is received. Int64 actualCount The actual count of bytes stored in the buffer parameter during the read operation. Int64 index In the array, the index where the method places the first byte returned from the device. The default is 0. Int64 buffer An array of bytes allocated by the calling program, into which bytes returned by the device are placed. A reference to the array Byte[] Byte*
vpp436_2015-02-11.docx