LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Labwindows CVI Version 10.0.1 USB communication with FTDI FT2232D to unit under test.

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?

0 Kudos
Message 1 of 7
(4,578 Views)

Hi,

 

You may use the NI- VISA (The Virtual Instrument Software Architecture) functions for controlling your USB devices.

0 Kudos
Message 2 of 7
(4,571 Views)

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.

0 Kudos
Message 3 of 7
(4,564 Views)

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.

0 Kudos
Message 4 of 7
(4,557 Views)

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.

0 Kudos
Message 5 of 7
(4,551 Views)

Having issues with not reading the full return message. Only reading sections of the return values.

0 Kudos
Message 6 of 7
(4,549 Views)

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.

0 Kudos
Message 7 of 7
(4,523 Views)