12-09-2011 02:11 AM
I've got one of this (TTL-232R-5V-WE) from FTDI (http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm) and it came with some VIs to control the USB convertor.
However, I have no idea how to switch the output (between Vcc and Gnd) from 5V to 0V.
Basically what I need is an alternating TTL signal output from the FTDI convertor.
Any help please? Thank you in advance.
Solved! Go to Solution.
12-09-2011 02:18 AM
Just to add, I installed both the virtual com port driver and D2XX drivers.
The USB convertor works fine with the "Basic Serial Write and Read" example (i twisted the TXD and RXD).
What I need to know is what "command" do I send so that the voltage out drops to 0V?
12-09-2011 03:34 AM
I wired up my device to the Gnd and Vcc. Am I suppose to wire it up to Tx and Gnd instead? How do I switch between 0V and 5V?
12-09-2011 08:56 AM
OK- sounds like you need to give us some more info. What device is on the other end of the serial port? did you read the manual?
A com port is a com port. it does not do anything but provide a physical layer to transport information.
12-11-2011 01:45 AM - edited 12-11-2011 01:48 AM
@Jeff Bohrer wrote:
OK- sounds like you need to give us some more info. What device is on the other end of the serial port? did you read the manual?
A com port is a com port. it does not do anything but provide a physical layer to transport information.
Hi Jeff,
The device on the other end is a camera that accepts a TTL trigger input. I'd like to have a TTL signal to trigger the camera to take "snapshots".
On the camera TTL input side, there is only a + and - input. I'd assume - goes to Gnd of the TTL-232R-5V-WE. What about the + end? And how in LabView can i switch the voltages from 0V to 5V to "trigger" the camera?
Thank you.
12-11-2011 08:42 AM
Hi sclow,
at the provided link you will find datasheets with all information needed. That device is establishing a usual COM port with just TTL level signals. The VCC will always provide +5V with no opption to switch it. But you may switch the CTS/RTS signals! Just look at the description of the VISA property node -> serial settings -> modem line settings...
12-11-2011 06:18 PM
@GerdW wrote:
Hi sclow,
at the provided link you will find datasheets with all information needed. That device is establishing a usual COM port with just TTL level signals. The VCC will always provide +5V with no opption to switch it. But you may switch the CTS/RTS signals! Just look at the description of the VISA property node -> serial settings -> modem line settings...
Hi GerW,
Thank you for the reply. I was not familiar with serial comms. The datasheet said CTS and RTS is the request (or clear) to send control output (or input) / handshake signal. I thought that this was something for data transfer.
I'll try it ASAP. Thank you very much for the tip. I hope I'm finally on the right track.
12-11-2011 11:26 PM
Alright RTS works! Problem solved! Thank you very much guys!!!