Hey Ben__J!
Here is some info regarding how to use the USB-serial communication in VISA on linux, this should apply to USB-parallel
To use your third-party USB serial interface with NI-VISA in Linux, you
will have to add it as a static resource using the NI-VISA
configuration utility (visaconf). Visaconf installs with NI-VISA so you
need to have NI-VISA installed. See the related link below for the most
recent version of VISA for Linux.
Follow the steps below to set up your device:
- Open a terminal window and type "visaconf" to open the VISA configuration utility window.
- Click
on the "Add Static" button to bring up the "Add new static resource"
window, and choose "local serial port" from the Select Interface list.
- Pick
an interface number, and type /dev/ttyUSBx in the "Binding" field,
where x stands for the port number on the USB serial interface; so for
instance, if you have a 2-port interface, you would type /dev/ttyUSB0
for the first port, and /dev/ttyUSB1 for the second port.
Please note that Linux treats serial ports like files and you
must have the appropriate permissions to read/write to the port. See
the link below for more information.
Another work around would be to try adding a token to the visaconf
file: "WriteTimeoutGranularity = 0" under section "[ASRL-RSRC-ALIAS]".
Best Regards,
Song Mu
National Instruments San Diego