I'm having trouble using my virtual COM port or third-party USB-to-serial adapter in NI Measurement & Automation Explorer (MAX). I keep getting NI-VISA errors.
Most virtual COM ports and many low cost USB-to-serial adapters do not fully comply with the serial specification and therefore do not support a lot of the functions that VISA uses, such as asynchronous I/O and flushing.
If you make your own VISA calls (either through a VISA test panel in MAX or using the VISA API in a development environment) and avoid any calls that aren't supported by the driver for your virtual COM port then it may work, but because each virtual COM port implements different functionality, they are not officially supported by MAX or VISA.
Another workaround would be to try adding a token to the visaconf.ini file located in :
WriteTimeoutGranularity = 0 under section [ASRL-RSRC-ALIAS].
This file can typically be found in the following locations:
Thank you for your feedback.
You changed your response to Not Helpful
You changed your response to Helpful
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.