05-07-2012 02:38 PM
Communication with unit under test works fine in hypterminal after I downloaded virtual driver from FTDI site.
Never done any USB communication before in LabWindows CVI. What functions can I use in labwindows CVI?
05-07-2012 10:23 PM
Hi,
You may use the NI- VISA (The Virtual Instrument Software Architecture) functions for controlling your USB devices.
05-08-2012 07:08 AM
Can you provide me some examples. The hyperterminal is setup using COM3 as follows: 115200-8-N-1. There is a log in command with username and password. There are other command and I would like to read the return buffer to verify the correct response.
05-08-2012 09:54 AM
Since the device presents itself as a COM port (pretty standard with the FTDI chips) you should be able to use the RS-232 library in CVI. OpenComConfig() will open a connection to the device, ComWrt() will write data to it, and the various ComRd() functions can be used to read the responses back.
05-08-2012 02:00 PM
Yes, it is working fine with the standard COM functions. Just need to work with the buffer(via LF & CR)stuff. Had to add a delay between commands.
05-08-2012 03:00 PM
Having issues with not reading the full return message. Only reading sections of the return values.
05-10-2012 11:48 AM
Still having issues with not being able to read all of the information. The command is "ifconfig eth0\r" but the return information is cutoff but, ok in hyperterminal.