Rs232 RTS

Hi everybody,
   I'm using LV 7.1 and RT module.
   My purpose is to use Digicom Modems LCM 16P with cFP-2020.  These modems should implement a point-to-point communication, between an embedded application running on cFP-2020 and a PC, running LabView application (for tests).
   I have to use 2 wires between the modems.  In this way, I have to perform Hardware flow control in RS232 communication, because, I suppose, the carrier signal should be on (over the 2 wires) only when device has to transmitt data.  I was told by Digicom to use RTS signal (pin 7 on DB9 connector).
   My question is: when I set VISA 232 property, what is the setting's choice? I mean, in flow control I can choose between
       -none;
      -RTS/DTS;
      -XON/XOFF;
   I build a simple test application in which I use RTS/DTS flow control type, but using my scope I observed that the carrier is always present on the transmission line, instead of beung present only during transmission.  In my test app, cFP-2020 sends data, PC receives data, so no overlapping is possible.
   When I set VISA properties for the modem, the carrier signal on modem goes up, and stops when I close (VISA close) the port.
   Suggestins wellcomed!!!
graziano

Hi James R,
   in fact that is my idea, but I was wondering if the "line toggling" can be automatic, I mean that when I perform a VISA write, the VISA function automatically performs necessary actions to:
    - check if device is not buisy;
    - request to send;
    - activate carrier signal;
    - transmitt;
    - at the end of transmision, deactivate carrier.
Bye!
graziano

Similar Messages

  • RS232 RTS control

    Hi people,
       I already posted something like this, but not specific, so here I am again!
       I have 2 PC (1 ps and 1 Fieldpoint, no matter this...), and I make them communicate via 2 modems, base band.
       When I want to send (VISA write) some characters to the other PC, I have to set RTS signal ON (to make a request to send to the modem). Modem answer with a CTS signal, and then I write characters. This works, and the other PC correctly receive data.
        The problem is when I reset RTS (RTS = 0), to deactivate the carrier signal.  Because carrier can't stand on communication line. If carrier is always present, the other PC can't initiate a communication!
        When I put RTS = 0, the second PC receives "framing errors", and print faulty characters.  Why so? Is there another way to do what I'm aiming to do?
        Help will be really appreciated!
    graziano

    Hi AlessioD,
       thank you for helping me, but all the documents are known to me.  I already toggle RTS line, and wait for CTS signal, as specified by the protocol, but I receive some problems at the end of the transmission.....
        As I said, when I switch off RTS, my modem suppress carrier signal (it is configured to perform like this).  But:
       1) whenm I set RTS=0 some nasty bytes are sent to the other modem (I think because of the carrier queue....)
       2) the carrier is suppressed before all data bytes are sent, so message is truncate.  This because (I suppose) the data transfer between software and RS232 buffer is fast, while from RS232 buffer to modem, it takes a while (9600 bauds).  In this way, whn I perform a VISA write, and after that a RTS=0 command, RTS=0 is actually executed before the serial buffer has sent all bytes "received form software". 
       I would expect a smart rs232 controller to wait to empty data buffer before suppressing carrier, but it is not the case! Sorry, I didn't explained that my modem is configured to suppress carrier when RTS=0.
       If I put a WAIT instruction after VISA write, it works:
         VISA write x bytes ----->   wait 200 ms ----> Property node:RTS=0.
      But it is quite uncomfortable to me to use these delays, also because I cannot set a fixed delay (because the data sent are of variable length).
       I think a solution would be to be able to read in serial port output buffer, to check if it is empty, before setting RTS=0, and carrier suppressed, but I don't know how to do it (I suppose there'll be some simple VI.....).
       Anyway, thanks!
    graziano

  • Rs232 rts dtr high after close

    Hi,
    I'm connecting a pc to a tt20, an instrument which measures thickness, through a serial interface.
    On my laptop, the program works fine. On a laptop (chinese origin), tt20 reacts in a random way.
    I must say, once it starts, it usualy keeps on going.
    It is clearly the tt20 that doens't recieive the commands in a proper way, because the command i am sending doesn't appear on the tt20-display.
    The manufacturer of tt20 recommended to put the DTR line high and de RTS line low after writing to the serial port.
    Today, we put a device (don't know the name of it) between the serial port of the pc and the tt20, that shows wich lines are high and which lines are low.
    During the communication, the lines seem to react the same. But when i close the serial connection, all lines connected to my pc are low, which is most common, i presume. If the lines are connected to the other laptop, they remain high.
    So i think the problem lies within initialisation of the serial port.
    I tried all possible combinations of the dtr and rts setting, after i open the serial communication. No succes
    Is there another initialisation involved ?
    Many thanks in advance
    Kind Regards
    Christine

    Check to make sure you have a good ground reference between the laptop and the device.
    I have seen ground issues with some laptops that will prevent code that runs fine on one machine to run on others.
    Next:
    Not all serial ports support hardware flow control. Check on that next.
    If you have a good ground and the PC support hardware handshaking, then the hardware handshaking can be manipulated via property nodes, but first, verify the points above.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Setting RTS output to 12 Volts RS232

    Hi everone,
    I would need to give a 12 Volts DC from my PC in order to activate a mode an electric device, I need to control by software when I am going to activate my device,for this reason I thought to use Communications Api with Java so that I can give 12 Volts in one of the outputs of the RS232. I thought to use RTS output in order to avoid state changes (like Start bit or Stop bit). I would like to know if it is possible to set 12 Volts DC doing setRTS(TRUE) so that I do not have to care about any protocol or I am missing something?
    Thanks in advance!

    Henrik Volkers wrote:
    Most likely because the RS232 driver in your device is powered by the DTR and/or RTS line. That way they avoid the +-10-15V powersupply they would need to build to correctly drive the Tx line.  This is a quite common hack but should be noted in the manual.
    Shure that the old program /setup/OS didn't set it? 
    Now that's an interesting thought! Indeed, the manual describes that the Zabers can optionally be powered by the serial cable. The strange thing is, though, the all the time an external power supply has been plugged in. Maybe the Zabers are programmed to try and use the DTR/RTS power if available, even if an external power supply has been connected? That's what my guess would be then... And then unassigning the DTR + RTS lines forces the Zabers to switch to the external power supply.
    Henrik Volkers wrote:
    Shure that the old program /setup/OS didn't set it?  Also possible, that the old PC was more tolerant about line levels...
    Yes, positive! But the old PC had an on-board serial port, whereas right now we're using a USB-to-serial converter (it's nigh impossible to find modern PCs with on-board serial ports). That might explain the whole thing.
    Thanks a bunch, I feel this may explain a lot!
    Science & Wires — a blog on LabVIEW and scientific programming
    http://scienceandwires.com

  • RS232 - Timeout / RTS-CTS

    Is it possible to define a Timeout when using the "ComRdByte" Function,
    so that CVI will not break down, when no byte was send.
    I´ve also problems with the RTS/CTS-Signal. If i use them , it is not
    possible to read from the port ! There is nothing happening on these
    lines.... can you help me ?

    You can either set a timeout for read/write operations with the SetComTime function or set up a callback function to be called whenever there is a certain number of bytes at the port with the InstallComCallback function. I am a fan of using the InstallComCallback method and if you want to know exactly how to use it look at the example in the C:\MeasurementStudio\cvi\samples\rs232 directory.
    Only use the handshaking modes that are supported by the device you are connecting to. Meaning either use hardware only, software only, hardware and software, or none. All are very common. In your case it doesn't appear that hardware is working for you, so to turn it off use the SetCTSMode function to turn hardware handshaking off.
    Jason Foster
    Applications Engineer
    National Instrume
    nts
    www.ni.com/ask

  • Connection a RS232 device to the Aux port.

    Dear,
    I have a home lab wthe a 2600 access server (16 port octal).
    From this 2600 router I want to connect to a Raritan 8 ports RPC.
    This RPC (Remote power control) has a rs232 serial port (RJ45)
    I tried a lot and still I do not get connected to the RPC, has anyone ever done this before.
    When I use a rs232 serial cable from the RPC to my serial pc port, I get into the rpc directly when putty is opened.
    pinout  RPC
    Pinout Aux (cisco)
    Pinout rs-232 (db9)
    1  DTR
    1  RTS
    1  DCD
    2  GND
    2  DTR
    2  RX
    3  RTS
    3  TX
    3  TX
    4  TX
    4  GND
    4  DTR
    5  RX
    5  GND
    5  GND
    6  -
    6  RX
    6  DSR
    7 GND
    7  DSR
    7  RTS
    8 DCD
    8  CTS
    8  CTS
    9  RI (ring indicator)
    I created several cables without succes.
    I connected RTS to CTS and DTR to DSR.
    On aux port I used the following.
    speed 9600 8n1
    transport all
    modem inout
    (also tried with modem printer)
    I'm missing something to get is working.
    Any help?
    Kind regards,
    Remko

    If you attach this USB drive to your Mac can it be accessed now?

  • Controlling Stopwatch in Program using Serial DTR/DTS/RTS

    Hi, 
    I have a device which I have attached to my PC using a RS232 to USB connection. It is a 9 port pin serial push button type device. Pin 4 is the DTR with a resistor in the circuit. Pin 7 is the RTS with the switch, and Pin 6 is the DSR for the circuit.
    I'd like to set the DTR to High, and set the RTS to low, and read the DSR state of the device in my Labview program.
    What I'd like to build is a simple stopwatch in my program. This stopwatch should execute when the main program starts, and be continuously reading the DSR state of my com device. When it changes it should stop the stopwatch. 
    Can someone guide me with this?
    I've attached my program thus far, and need some help. The program right is now is just executing vibratory motors through an Arduino MEGA.
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    motor_control_responsetime.vi ‏55 KB

    Few more updates...I'm not quite there yet..
    What I need to do is make the program only record the time between when a motor comes on, and when the user pushes the button changing the DSR state to 'Unasserted'. I think this would affectively give me the reaction time it took between the two events...
    Alternatively, I was thinking of perhaps having a separate elapsed time counter from the start of the button, and then stop and spit out the time it took for the motor to actually turn on (since there is a delay from when the program turns on to actually communicating with the device. So I need to effectively subtract this time out of the equation when the user is told to be ready and press the button.
    Can someone please help me?
    Attachments:
    motor_control_responsetime.vi ‏61 KB

  • RS232 Code for Samsung 400UX

    Hi everyone,  I'm looking for the RS232 code to auto on/off our samsung. I have manual about code but when try with pc or dmp. it didn't success.
    So Could anyone give me example code
    for LG Monitor turn off TV
    http://192.168.55.13:7777/set_param?rs232.tx_hex=6b61203020300D
    for Samsung Monitor turn off TV
    http://192.168.55.13:7777/set_param?rs232.tx_hex=......................................
    Thank you very much.
    Sukitti L.

    You can use a Null Modem or a RS-232 Crossed Cable.
    db9 female                                       db9 female
      5 (GND) -----------------------------------------5 (GND)
      3 (TX) ------------------------------------------2 (RX)
      2 (RX) ------------------------------------------3 (TX)
      8 (CTS) -----------------------------------------7 (RTS)
      7 (RTS) -----------------------------------------8 (CTS)
      6 (DSR) -----------------------------------------4 (DTR)
      4 (DTR)------------------------------------------6 (DSR)
    Take a look at the documentation...
    There may have been some steps you missed...
    http://www.cisco.com/en/US/docs/video/digital_media_systems/5_x/5_1/dmm/user/guide/dsm+etv.html#wp1718477
    * Connect RS-232 cable to the DMP and the LCD.
      I believe either RS-232 port should work for the LCD.  I thought the FRONT port (closet to front of TV)
      was an IN\OUT port.  And the BACK port was just an IN port.  I used the BACK port for my testing.
    * next, you NEED to ENABLE ON RS-232 controls on the DMP first.  From the DMM, issue the
      "Advanced Task--> System Task --> RS-232: Control Supported, non-DMTech displays" for the DMP(s)
      in question.   By default, RS-232 controls are disabled.
    * Create 2 new System Tasks in the Advanced Tasks Tab.
    Turn ON  - Cisco LCD = rs232.tx_hex=aa11fe010111
    Turn OFF - Cisco LCD = rs232.tx_hex=aa11fe010010
    * Once RS-232 Control is Enabled & the New System Tasks are created, You can now issue the LCD Turn On & Off
       tasks from the DMM-DSM DMP Manager.
    Note:  You can combine RS-232 commands using the "Control TV"  tool on the DMP Manager List Zone.  The "Control TV"
    is designated by the TV with Antenna Icons in the DMP List Tool bar.
    RS-232 Troubleshooting
    ======================
    - Make sure the RS-232 cable has the correct pin out.
    - Make sure RS-232 is enabled on the DMP.
    - Perform the following to make sure the cable is
      correct and the DMP is sending RS-232 commands:
    1. Connect RS-232 from the DMP to a PC
    2. Open HyperTerminal and set RS-232 settings from
       previous slide
    3. Send hex commands from the DMP though DMM-DSM
    4. You should see the hex command in your HyperTerminal
    After verifying DMP is sending the RS-232 command,
    please, check the following:
    1. The RS-232 is connected to the "IN" port and not the "OUT"
       port.
    2. Make sure monitor ID is set correct and the ID matches the
       ID in the hex command.
    3. If no ID is set, use FE, for all monitors, as the monitor ID in
       the hex command
    4. Double check the command and the check sum value.
       * Make sure each field has 2 digits
    If this answers your question, Please take time to mark thisdiscussion answered & rate the response.
    Thank You!
    T.

  • How to Control 1 bit on a RS232 port?

    Using VISA can read or write data from RS232 port,if I want to control 1 line on RS232 High or Low? Does any VI can do this? Thank you so much.
    Message Edited by shunshin on 03-22-2007 12:23 PM

    Which line do you want to control? If it's one of the control lines like DTR or RTS, then yes. You use a VISA property node. Select Properties>Serial Settings>Modem Line Settings.
    Message Edited by Dennis Knutson on 03-22-2007 11:31 AM
    Attachments:
    Modem Line Settings.PNG ‏2 KB

  • DMM MAS345 via RS232 serial comunication

    i have a problem almost like u,and i want to know if there is someone who can help me.I want to send data from a DMM MAS-345 via Rs232(my data settings in labview are baud rate=600,data bits=7,parity=none,stop bits=2,flow control=none,delay before read=10000ms) ,and i don't know why does it showes an error when i try to run the application(error -1073807202).I use like example VISA configure serial port,and i don't know if is wrong!!!I will appreciate if someone can help me.
    Attachments:
    Basic Serial Write and Read.vi ‏34 KB

    Here is some help for you 
    MAS345
    data format: 7n2 at 600 baud (7 bits, no parity, 2 stop bits).
    Control lines:
       DTR and RTS lines are used to power the TX line: RTS is clear
       for -12 supply; DTR is set for +12 supply. Data transmission is
       solicited sending whatever character to the RX line.
    Data string format:
       MAS-345 sends a 14 bytes string with:
             <mode>< ><sign><value>< ><units><return>
       <mode>:  two bytes with the oerating mode: DC, AC, OH, CA, TE ...
       <sign>:  one byte with - or space
       <value>: five bytes with four digits and one decimal dot.
       <units>: four bytes with the units: mV, A, kOhm, nF ...
       <return>: '\r'
       One space is inserted between <mode> and <sign>, one between
       <value> and <units>.
       The data string (without the '\r') is sent to the output device.
    The next question is of course How Can I Control the DTR and RTS Serial Lines in LabVIEW? It is easy take a look here
    http://digital.ni.com/public.nsf/allkb/1ECEFAA7AD52994986256966005356EA
    Good luck
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • RS232 optical isolation ... and compliance with IEC 601

    Hi.
    We are installing a system for performing RS232 data acquisition between PCs and a certain medical instrument (an Agilent CMS).
    We would like to comply with the IEC 601-1/2 standards which require optical isolation for up to around 4000V.
    We have found various optical isolator products but only ONE that is IEC 601 compliant:
    http://www.telebyteusa.com/catalog/products/269.htm
    But, this product only provides isolation on 3 of the serial lines (TD, RD and ground). Our instrument uses other lines for handshaking purposes.
    Do you all know of any other RS232 isolation hardware that will provide IEC 601 compliance on ALL the serial lines?
    I have found some isolators that provide for all seria
    l lines, but only for up to around 2500V.. and none of them mention IEC601.
    In fact, ANY advice on optical isolation or IEC601 would be appreciated.
    -John Osborne
    John Paul Osborne
    CARDIAC
    Vipeveien 51
    3917 Porsgrunn, NORWAY
    tel: +47 35 93 06 20
    fax: +47 35 93 06 66
    [email protected]
    http://www.cardiac.no

    I'm a bit confused about NI's serial cards, though.
    In the catalog, all the serial cards that have isolation also say that their "Signal Compatibility" only covers the 5 lines: RXD, TXD, GND, RTS and CTS.
    We need isolation on all 9 serial lines. We use the other lines for handshaking purposes.
    Do these NI cards provide isolation on only those 5 lines? If so, do they even allow communication on the other 4? The catalog doesn't actually explain what "signal compatibility" specifically means (and I'm a layman).

  • RS232 : pilot a relay command

    I should pilot a relay with RS232 port. If i use the RTS or DTR signals, can i command my relay without damage for my pc

    Hi,
    I am not sure that I understand your question. Are you going to try to power a relay with a serail port? I wouldn't do this at all. The serial port can't supply enough current to keep the gate closed. You run the risk of blowing up your serial port. I would create a circuit to buffer the output (or better yet, go with a digital card of some sort). You might be able to use some sort of optical isolation circuit to accept the 5 volt input and output the correct voltage/current to power a relay.
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

  • Générer échelon de tension sur RS232 ?

    Bonjour,
    Je souhaite générer un échelon de tension d'une amplitude de quelques volts sur un port RS232 à partir de LabView.
    Quelqu'un a-t-il une solution. Exite-t-il un VI prévu à cet effet ??
    Merci.
    Benoît L.
    élève ingénieur.

    Hello,
    I will assume you are referring to an RS-232 serial port.
    When you transmit a given serial frame, you are really modifying the voltage on the transmit pin/line.  The characters you define sending (the string) will define the frame format, and the baud rate will define the rate at which the bits in the frame is clocked out.  This gives you the ability to send voltage waveforms, of course, somewhat restricted by the fact that there are stop bits, a start bit, and a parity bit sent with a given frame; in general you can define the data bits (usually 8) to be anything by writing the corresponding ascii character.  If you want to programmatically send wither high or low voltage on a single line, you can do this by asserting and deasserting the RTS line.  In LabVIEW you can do this with the NI-VISA API; see the VISA Property Node to get access to (de)assterting the RTS line.
    Regards
    David D. - AE - NI France

  • RS232 HANDSHAKING

    I have built a system that uses a Xilinx Spartan II to decode and route signals from a collection of motion control and feedback devices. LabVIEW communicates with the FPGA over RS232 at 115200baud, with no parity, 8 data and 2 stop bits. I have tried to implement a basic handshaking arrangement in which data is not sent from the FPGA until the RTS line is toggled.
    I have written a sub-Vi that uses the core of the Advance Serial Communications example VI. I have been experiencing timeout problems if I run this VI continuously. My best guess is that I have a race condition between the port actually becoming ready to receive data and the start of data transmission. The framework of this sub-VI is as follows:
    1. configure port
    2. toggle RTS line
    3. set input buffer size
    4. read port
    5. close port
    The delay within the FPGA is negligible and the port register should be empty and ready to receive data before I signal the start of transmission. When does the port become ready to do so?

    Daniel,
    If you are using a Whileloop structure in your code, you do not need to use the "Run Continuously" option in LabVIEW. You do not want to open and close your serial port all the time but instead only do the write and read continuously.
    Try run the example vi and verify your system setups are correct. You can also use NI-SPY to capture the execution of your code and see where exactly the timeout occured. If you are worriing about the data not being ready when the VISA read happens, you can use a longer timeout value or have a delay before the read starts.

  • On RTS-CTS & DTR-DSR pairs, which and why?

    Hello All
    Is there somewhere in the Net a good article about when and why to use the flow control RTS-CTS and/or DTR-DSR.
    I am dealing with duplex communication between two devices via RS232 and I would like to know when and why to control those lines.
    I also found three types of Null-Modem cables and all it is connected with the control of those lines.
    Where I can read about it?
    Thanks in advance
    Pawel

    Most RS-232 communication is full duplex, meaning you can transmit and receive at the same time. RS-232 UARTs have separate transmit and receive machines and FIFOs. The processing speed and large available memory of today's electronics (PCs as well as other devices) drastically reduce the need for hardware handshaking. I've been writing RS-232 applications for almost 20 years. I haven't used hardware handshaking for over 15 years, and that application only required it because one piece of equipment was already 30 years old.
    Hardware handshaking adds complexity to the software as well as the hardware. If you're only going a short distance, off the shelf cables include all RS-232 lines. But for longer runs, it will be easier and cheaper to run 3 or 4 conductor cabl
    e without hardware handshaking.
    If you need handshaking, consider software handshaking if your devices support XON/XOFF handshaking.
    If you do a Google search for RS-232 handshaking, you'll find plenty of links. Some of these will give you an introduction.
    http://www.airborn.com.au/rs232.html
    http://www.bb-europe.com/tech_articles/faq_rs232_connections_work.asp
    http://www.qkon.com/uploads/27_Practical%20RS232%20Design%20Considerations.pdf

Maybe you are looking for

  • Can I have two ipods on one account temporarily

    Hello All, My daughter has an old (extrememly worn out) ipod touch.  We are giving her a new ipod touch for Christmas. My question is this. I would like to give it to her all charged and ready to go with all of her apps, songs and everything set.  Ca

  • ERROR in JDEVELOPER: ORA-01882: timezone region not found

    Hello All, When i create new database connection with HR database (XE), I'm getting ORA-01882: timezone region not found error in jdeveloper. Database Navigator->Create Database Connection How to i fix this problem? - JDeveloper 11.1.1.4 - Oracle Exp

  • How to find cost center assigned to a work center

    Hi Guys,              I need to find cost center assigned to work center. from Which table I should to get it. Cheers S Kumar

  • Sales Order no is not displayed in Sales Invoice

    Hi Experts,                  I  want Sales Order No to be displayed in Sales Invoice of PLD. How could be done? Please guide me.

  • Log.nmbd is a huge, unremovable file

    Hi All, Noticed that people have been reporting problems with Windows sharing and the creation of HUGE log fiiles. I think that I'm reporting the largest file to date: a whopping 85 GB file. I've stopped Windows file sharing, checked/repaired permiss