LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FTDI settings

Hi guys. I want to learn how to comunicate with the FTDI USB 232. First of all I have installed the driver of this adapter and when I connect it on my pc, I see it on windows hardware control panel.

The first question I have is why the MAX doesn't recognize it?

Thank you.

0 Kudos
Message 1 of 15
(4,373 Views)
There are two drivers from FTDI that you can install. Pretty important that you provide that information and how it is listed in device manager.
Message 2 of 15
(4,353 Views)

Hi. thank you for your reply. Finally I have installed the correct driver and I see the adapter as COM 3 on MAX.

The questions I have right now are

Can I comunicate with it using the VISA?

I went in the I/O instrument palette --> serial . Here I don't see for example the VISA OPEN should I create a VI without the VISA OPEN?

I have downloaded the manual from the website but what kind of commands should I send to comunicate with it? For example I tried the example attached but it doesn't work.

Thank you

0 Kudos
Message 3 of 15
(4,348 Views)

Where do you see it as COM3 in MAX? If you see it in MAX as a com port you should be able to use as a serial comm port, with VISA, just as you would other serial ports.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 4 of 15
(4,342 Views)

The VISA Open has been optional for quite a few years.

 

You use the VISA and FTDI chip and it serial port emulation to talk to a serial port instrument - not the FTDI chip itself. What is the purspose of this?

Message 5 of 15
(4,340 Views)

I tried also an example seen on web but it doesn't work as well... attached there is the VI I tried and in the photo you can see my settings:

 

Com Port.PNG

 

here there is the error I got:

 

Block Diagram.PNG

 

 

Dennis first of all I want to make practice on this. After that, the idea is to understand how to command the CTS/RTS/RXD/TXD commands to send a message to a device and wait for a reply.

0 Kudos
Message 6 of 15
(4,334 Views)
What instrument do you have connected? The FTDI is irrelevant. You use the same modem properties for manually asserting the handshake lines as you would any other USB-RS232 conveyer (or built-in port). The VISA Read and Write are always the same as well.
Message 7 of 15
(4,328 Views)

Actually I put the TXD as input for the RXD.

Here there is the error:

 

Block Diagram.PNG

 

0 Kudos
Message 8 of 15
(4,322 Views)

Sorry if i reply on my own post but it works now. It was a problem of the welding.

Next question is ok... with read and write I can handle the RXD and TXD  but what about the RTS and CTS? if for example I want to set the lenght of these two registers which are the commands to use?

On the manual I saw FT_SetFlowControl but this command is like a SCPI command? I mean I send it in the WRITE VISA or how?

Thank you

0 Kudos
Message 9 of 15
(4,315 Views)

What visa reference are you showing? I would also put the visa reference on a shift register on the loop. That error says you lost the connection. If you run the program hilighted (the light bulb in the tool bar on), does that error show up coming out of the VISA configure serial port?

 

 

> Ok, you answered while I was answering.     Welding?

 

CTS and RTS register length? CTS and RTS are serial port control signals, which may be accessed through a property node connected to the VISA reference, but will only allow you to read or write their state. Also, some USB-Serial ports may not have this feature available.  The property node may be found at Instrument I/O: VISA Advanced: VISA Properties

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 10 of 15
(4,314 Views)