06-10-2005 08:26 AM
06-10-2005
08:54 AM
- last edited on
07-10-2025
12:53 PM
by
Content Cleaner
Hello KIJO,
The problem you are encountering is a known bug in the NI-VISA .NET API. If the string you are trying to read has null characters embedded in it, you will encounter this exception. The problem has been fixed in VISA 3.3 (the latest version). I recommend upgrading to VISA 3.3. If you can not upgrade at this time, you can use the overload of Query that takes and returns a byte array rather than the overload that takes and returns a string, and use the .NET Encoding class to convert the resultant byte array to a string.
06-17-2005 06:24 AM
06-17-2005 07:53 AM