Send thru serial port (RS232) the instruction CTRL+"something"

How to i send thru a serial port (RS232) the instruction "CTRL", like CTRL+"something", im only looking for the special character CTRL, i have seen that it can send a CTRL+A ... CTRL+Z thru a type cast, but  is not what im looking for, im sending a special instruction (CTRL+PQT<package>) thats requires this character.
reards

The control key is not something you can send through a serial connection.  It is a modifier key (like Shift and Alt) and not a character that would have an ASCII value associated with it.
However, many of the special ASCII control characters (those below decimal 32) can often be entered as a CTRL+key combination.  For instance, the beep is ASCII 8 and is also a CTRL-G combination.  The backspace is ASCII 9 and CTRL-H.  CTRL A is ASCII 1 so sending a string set in hex display as 01 or \01 in \codes display would work.
What is (CTRL+PQT<package> supposed to mean?  Is it Ctrl P followed by Q T then something else?  What equipment are you trying to interface with?

Similar Messages

  • Control a generator with a control volage by serial port RS232

    Hello everybody,
    I would like to control a generator thanks to a control voltage. This last one would be sent to a switch wich turns on the generator.
    To do that, I want to link the switch and the computer with a serial port RS232 by using NI-USN 232 cable.
    I made some research on this subject and I am only a beginner on LabView but I would like to use one (or several) pin which will send 5V in voltage when I want.
    Is that possible? Is there another way to make it?
    Thanks in advance.

    Thank you for your answer.
    Maybe, I didn't explain myself correctly. 
    For example, on the Raspberry Pi, you can control a card by sending 3,3V signal with RS232 port (I made it last year so it makes a sense).
    What I want to do here is to control an electronic card that turns on my generator after. I don't have enough to buy a generator controlled unless you know one not very expensive.

  • I want to transfer data through the serial port in the same coding that hyperterminal uses. How can i do it?

    The serial port seems to be working, and labview seems to be sending the data, but the problem is in which format does it send the data, because in hyperterminal i just input the string "JDX" and it sends it to my device, with labview it sends something but my device does not recognize it.

    nobuto wrote:
    > I want to transfer data through the serial port in the same coding
    > that hyperterminal uses. How can i do it?
    >
    > The serial port seems to be working, and labview seems to be sending
    > the data, but the problem is in which format does it send the data,
    > because in hyperterminal i just input the string "JDX" and it sends it
    > to my device, with labview it sends something but my device does not
    > recognize it.
    Hyperterminal adds the carriage return/line feed to the string which is
    generated by the return key to send out the current line. LabVIEW simply
    sends out what you tell it, so try to set the string to "Show \ Display"
    format and add a \r or \n or \r\n to the command you want to send out.
    Assumes of course that you set the right baudr
    ate/bits/parity etc in
    LabVIEW with the VISA property node, when opening the serial port.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Thinkpad with serial port (RS232)

    For my job I need a laptop with a serial (RS232) port.
    I have the choice of the following laptops: Lenovo Thinkpad X230, X230T, T430, T530, W530.
    Neither of them have a serial port, right?
    I saw some mention of an adapter for the ultrabay slim bay, that would support an RS232 adapter.
    Does that work for all the above mentioned models?
    And if so, would the RS232 port work in the same way as the regular one? I need to program e.g. an Agilent datalogger with Labview to measure and recieve the measured data through the serial port.
    Kind regards,
    Rachel.

    thare are two ways :
    1. you can buy a usb to seial cable converter.
    2. if your laptop have a Docking Station. there is a serial port in the Docking station.  Put your laptop on the Docking station, the windows system will automatically recognizes the serial port.
    For example, my laptop is thinkpad x61t,  Itself does not have any serial port, But there is a serial port on the Docking station.
    I am a volunteer, don't work for Lenovo. I am a software engineer.
    thinkpad x61t, os:win7 Awavo Software com port monitor serial port monitor

  • Is it possible to communicate with two different devices using two seperate serial ports in the same labview program?

    The two bits of the program will talk to each instrument successfully if the other part of the program is not running. i do not need them to communicte with both serial ports at the exact same time, just within the same program, one after the other. i am using labview 6. any ideas of what i could be doing wrong?

    Hello,
    If you are using the Legacy serial VIs, you should really switch to the VISA VIs. Also make sure you are opening a session to each of the com ports at the beginning of the program and closing each at the end of the program. Problems can arise if your try to open a session to a port that already has a session open. Also you should update LabVIEW to 6.0.2
    If you are still having problems post the error code and error message you are getting.
    Ray K
    NI Applications Engineer

  • Trying to install Elements 13 and it asks for a serial number. The instructions say the number should start with 1057 but there is no code on the disks, box or envelopes the disks came in that start with 1057. I cannot activate the software without this c

    Trying to install Elements 13 and it asks for a serial number. The instructions say the number should start with 1057 but there is no code on the disks, box or envelopes the disks came in that start with 1057. I cannot activate the software without this code and it is a Christmas gift to my wife. HELP!

    I had this problem. There are actually two boxes. The outside one with the photos and stuff and glued into it is another box containing the disks. That box has the serial number. Adobe was NO help with this as if no one else ever could not find it. I had to rip open the outer box.

  • Which standard is the serial Port of the Tecra A9

    Which standard is the serial Port of the Tecra A9?
    Is it RS-232?

    Everything what I know is that its a 9pin serial port

  • How can collect the data from laptop sound card and serial port at the same time?

    I'm working on a project, I need to collect the data from laptop sound card, and also from serial port at the same time.
    The attachments are my VIs for sound card and serial port communication, I'm wondering that can I combine these two VIs together? Or can I run these two VI at the same time?
    Thank you!
    Attachments:
    AC_Radar_Receive.vi ‏46 KB
    RadarAudioPlug.vi ‏774 KB

    A smarter way is just to put all your code in the same VI.
    Two parallel loops if rates are different.
    Attachments:
    RadarAudioPlug.vi ‏450 KB

  • Join two 8 bit integers and send via Serial Port

    I am trying to join two 8 bit integers and send the result via the serial port.
    I have a constant of hex value A that I need to join with a value from hex 0 - F (this is based on incoming data)
    When I use the Join VI, and type cast to change from hex to string for Visa Write, I recieve hex 0A0F.
    I have been able to use the hex 0-F with a case structure and then wire the corresponding constant ex A0 - AF.
    This makes the program very cumbersome and labour intensive to change. I have 22 commands I have to respond to with the address of 0-F.
    Currently, I have a Case structure that is selected with Message ID, then a case that is selected with subtype and then a case for address.
    Therefore I have to create a constant inside of each address case for each message as the responses are different.
    Thanks for any help
    Robin

    Gambin,
    As I understand it, you want to take the two bytes, put them together,
    and output the result as an ASCII string on the serial port.  This
    is easy.  Simply convert each number to an ASCII string,
    concatonate the two characters together, and send the resulting string
    to the VISA write function.  That's it!  I have attached a VI
    (ver. 7.1) that takes two hex numbers as input, converts them to ASCII,
    concatonates the results, and outputs the 'command' string.  Fell
    free to modify this vi and use it as you see fit.  I have left
    extra terminals in case you want to add error input/output for data
    flow, or whatever.  Notice that the display for the concatonated
    string is in '/' Codes Display mode.  This is because 0A hex is
    the newline character in ASCII.  You should also check to make
    sure that your VISA serial settings are not setup so that the newline
    character is the termination character.  If it is, the second
    character may not be recognised.  Hope this helps.
    Roy
    Attachments:
    HextoCommand.vi ‏17 KB

  • Unable to connect to SRW224P via web base and serial port on the front until reboot switch

    Just installed new SRW224P switch 4 days ago and we lose connectivy to the SRW224P manage switch. Try to Web in to device and also direct serial port unable to get connected, reboot and it works for a little bit but then we loose connectivity again. Also the computers connected to the switch loose their IP address and sometimes unable to get a DHCP address assigned back from are server.
    Any suggestions?
    (Edited for guideline compliance.Thanks!)Message Edited by JOHNDOE_06 on 05-14-2007 09:20 AM

    I ended up doing a replacement with linksys, the new one has been in place for 2 weeks and it seems to be running ok.

  • Simultaneous execution of time critical parts(one is the drive connected to serial port and the other is the DAQ) in a vi

    We are developing a software for a cyclic spin test using Drive.
    The drive software consists of a profiler part which should be running in a 50ms
    interval.(every 50msec th operation should happen).
    This Part uses a DAQ card.
    To get some digital status we use serial link .
    The status update can be every 250msec.
    The problem is that the status read takes a minimum of 70msec to complete
    (The serial protocol for the drive specifies some delay b/w operation).
    We would like to have the status without affecting the 50msec operation.
    How can we do this?
    We run Labview 6.0 on Windows2000.

    I`m not sure how the serial VIs affect the mutithreading of the LabVIEW environment, but setting LabVIEW to run multithreaded and running the two operations independent of each other (in two while loops without data-dependency between them) might do it. You will find the option for multithreading under "options". Bear in mind that a re-start of LabVIEW is necessary before the changes come into effect.
    I would time-stamp the reply of the drive with the time of the request, not after receiving the data.
    Hope this helps
    Shane
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • Reading and Writing For Serial Port (RS232)

    Hi there;
    I want to send data from my comport to a device and take data from there. I use Windows operating system. I looked at a bit javax.comm and RxTx.
    Firstly do i have to use RxTx for my project because of i am using Windows operating system?And;
    Where should i began to start simply send and receive data via RS232?
    Edited by: furkankamaci on Feb 14, 2009 8:05 AM

    Use RxTx and follow its examples.

  • Can't communicate with MCU thru serial port

    Hi,
    now i am doing a project in which i use pc to transfer some data to
    MCU(PIC18F452)through rs232. I use labview 6.0 to do it.but i met some
    problems.

    Hi Liu,
    As I requested in your other question, please post a copy of the code you are using.
    The Enthusiast on this exchange are very good at solving problems provided we have a clear definition of what the "problem" is.
    Trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Interaction with serial port (RS232)

    Hi!
    I am workin with a PLC and I need to get information about connecting it to an Oracle DB.
    Anybody could help me? I have no idea where to begin looking, any information would be very useful.

    I doubt you are going to get this to work directly. I can't think of a PLC that includes the ability to load the Oracle SQL*Net client, but it has been a few years since I did PLC programming.
    If you can't load the SQL*Net client over the only alternative would be to implement the TTC protocol directly and this is not a published specification.
    Perhaps you should use a PC client of some sort as a 'middle man' to interface with both the PLC and the Oracle DB.
    Mark

  • Virtual serial port??? Vista 64 bit, usb dongle, palm 755p verizon

    I have a new 64 bit Vista OS and I'm having all the same problems everyone else is.  I can't hotsync using the cable.  I purchased the bluetooth dongle (Kensington) that many have said works.  My phone recognizes the PC.  My instructions on the phone for the hot sync using bluetooth instructs me to set up a virtual serial port.  The instructions are not very clear.  This is where it falls apart for me.  Can anyone explain how to set up this virtual serial port?  Thanks.
    Post relates to: Treo 755p (Sprint)
    This question was solved.
    View Solution.

    Well I'm happy to report a successful solution.  At the recommendation of some other threads I went out and bout and ioGear GBU321 USB Bluetooth adapter and setup was a breeze and it works (although it is SLOOOOOOW compared to a cable hookup, allow some time and plug your treo in during your first sync).
    To setup you do the following (And this may also work for your Kensington):
    Insert the driver CD
    Insert the dongle when asked.
    Install the drivers
    Pair your device.  Basically go to the Bluetooth setup screen on the Palm and select "Trusted Devices".  You'll find the bluetooth adapter, select it and then either the palm or the PC will either provide or ask for a paring code.  The instructions will guide you through but basically you'll want to make sure the same numbers are entered on both screens (this prevents you from accidentally pairing with some random nearby computer)
    This will actually set up your virtual port for you. 
    You then go into the hotsync manager and click "serial" and select the port just created from the pairing process. 
    If you don't know what port was created bring up "Control Panels" and select "Phone and Modem" (Assuming you are in "Classic View").
    Click on the modem tag and you'll see something like "Standard Modem Over Bluetooth Link" and next to it will be the assigned port.
    I hope that helps.  I know I was relieved to not have to trash either my Palm or my PC (Although when the Pre or an iPhone with a physical keyboard comes out all bets are off)
    Post relates to: Treo 755p (Verizon)

Maybe you are looking for

  • Cannot output video to an LCD projector

    I own a week 11 model of the Macbook Pro, and mine cannot ouput to an LCD projector at work. Everytime I hook it up and try to detect displays, I get a signal for almost a second, then it goes out of sync and then the projector tells me the signal is

  • Lock the report changed by USER

    Hi All, I have created queries in BEx for the end user . now i want to lock these report so that no one can change it  ( Display Only). What are the steps to do that ? Regards, Komik Shah

  • How to call global attribute in .htm page in sap crm

    hi friends, in the class i have  created a global attribute . i want to access this global attribute in .htm page of the view . how to call this attribute in .htm  please send me the syntax . thanks and regards, sashi

  • I mistakenly uninstalled Photoshop CC. How do I get it back?

    After installing Photoshop CC (2014) I mistakenly uninstalled Photoshop CC. How do I get it back?

  • CS3 crashes in XP 64bit

    I have been experiencing constant crashes in Windows XP 64 bit. Photoshop loads but crashes when I open a file. I am using the Master collection and the other software runs with no problem. I have tried repairing the software repairing windows, reins