11-12-2008 08:31 AM
I'm seeing periodic Visa exceptions in my application in response to a SerialSession.Write call.
Sometimes retrying the call succeeds, but other times it fails after retrying up to 5 times.
I would like to know how I should go about troubleshooting the cause of this exception.
This is the call stack and exception error code:
11/12/2008 8:18:37 AM Unknown system error (miscellaneous error). VISA error code -1073807360 (0xBFFF0000), ErrorSystemError
at NationalInstruments.VisaNS.Internal.ErrorChecker.CheckStatusAndThrow(Int32 status, VisaHandle visaObject)
at NationalInstruments.VisaNS.Session.CheckStatusAndThrow(Int32 status, Boolean setLastStatus)
at NationalInstruments.VisaNS.Session.CheckStatusAndThrow(Int32 status)
at NationalInstruments.VisaNS.Internal.MessageBasedSessionImpl.Write(Byte[] data)
at NationalInstruments.VisaNS.MessageBasedSession.Write(Byte[] data)
Thanks!
Alan
11-13-2008 11:08 AM
Hi Alan,
What serial device are you using? Many times these errors are reported from the driver or the device. Try putting a wait before writing to change the timing of the program. Many times putting a delay will prevent this type of error.
National Instruments