Write Overloads of the method that include a buffer argument of type send the bytes to the device Write Byte[] exactly as they appear in the array. Overloads of the method that include a buffer argument of type convert the string from Write String UNICODE to 8-bit ASCII before sending it to the device. If the string contains a character that cannot be converted to an 8-bit ASCII character, the method throws an exception that identifies the invalid character. Characters are written in exactly the same order as they occur in the array or string. Writing continues until one of the following conditions is met: Exactly characters have been written to the device, if the overload includes the count count argument. The entire buffer has been written to the device, if the overload does not include the count argument. The amount of time spent writing (or trying to write) data to the device exceeds in which case an exception is thrown. IVisaSession.TimeoutMilliseconds, An END is signaled with the last byte if is SendEndEnabled true. Termination characters must be explicitly sent when writing to a device. The method does not send Write a termination character to the device that is not included in the buffer argument for all session types except those that define a property. WriteTermination If the Write method is called with the parameter smaller than the size of the array passed in, only the count first bytes SHALL be written to the instrument resource. count void Write(Byte[] buffer); void Write(Byte[] buffer, Int64 index, Int64 count); void Write(String buffer); void Write(String buffer, Int64 index, Int64 count); unsafe void Write(Byte* buffer, Int64 index, Int64 count); Name Description Type The maximum number of bytes to be sent to the count Int64 device. In the array or string, the index of the first byte or index Int64 character to be sent to the device. The array or string to be sent to the device. buffer Byte[] String A reference to the array. Byte* This method uses the to report a timeout. Ivi.Visa.IoTimeoutException
Write Overloads of the Write method that include a buffer argument of type Byte[] send the bytes to the device exactly as they appear in the array. Overloads of the Write method that include a buffer argument of type String convert the string from UNICODE to 8-bit ASCII before sending it to the device. If the string contains a character that cannot be converted to an 8-bit ASCII character, the method throws an exception that identifies the invalid character. Characters are written in exactly the same order as they occur in the array or string. Writing continues until one of the following conditions is met: Exactly count characters have been written to the device, if the overload includes the count argument. The entire buffer has been written to the device, if the overload does not include the count argument. The amount of time spent writing (or trying to write) data to the device exceeds IVisaSession.TimeoutMilliseconds, in which case an exception is thrown. An END is signaled with the last byte if SendEndEnabled is true. Termination characters must be explicitly sent when writing to a device. The Write method does not send a termination character to the device that is not included in the buffer argument for all session types except those that define a WriteTermination property. If the Write method is called with the parameter count smaller than the size of the array passed in, only the first count bytes SHALL be written to the instrument resource. void Write(Byte[] buffer); void Write(Byte[] buffer, Int64 index, Int64 count); void Write(String buffer); void Write(String buffer, Int64 index, Int64 count); unsafe void Write(Byte* buffer, Int64 index, Int64 count); Name Description Type count The maximum number of bytes to be sent to the device. Int64 index In the array or string, the index of the first byte or character to be sent to the device. Int64 buffer The array or string to be sent to the device. A reference to the array. Byte[] String Byte* This method uses the Ivi.Visa.IoTimeoutException to report a timeout.