Serial Port problems - carriage return and use as an executable file

Hello

I developed an application to send a few simple commands on the serial port and read the corresponding answers of a device that I am in communication with.  I have been using logical Port to watch the line TX of the serial port.

By using the Visa configure Serial Port I set the stop character property allow true and used the hexadecimal value D trying to make the termination a carriage return characters.  When I sent the order, I'll send the cmd followed by Enter.  No matter if this property is set to true or the hexadecimal value is set to D for carriage return or line break is, the serial port would always send a line break.

Then I got crafty and the string constant under normal display to hexadecimal display.  The ONLY way I could send a carriage return was manually putting 0x0D after ordering.  So my question is, why the Visa set up the Serial Port is not working correctly, and is there a better way to send a carriage return?

My next issue is facing the construction of executable files.  I'm using LabVIEW 8.2 and wrote this program for another employee to use on his laptop computer.  I did install runtime Labview 8.2 and led to the executable that I generated.  I did-> the executable by clicking Tools build the executable.  The problem I noticed was that the executable would open and will work perfectly, but it would not send any data the serial port.  I then ran the executable on my laptop (which contains the full version of LabVIEW 8.2) and the serial port has worked well.  I guess my question is... Are there plug-ins that must be installed to use the serial port with the Labview runtime engine?  Or y at - it a step that I failed to do?

Thank you

Gary Still

Not immerse in the first issue. The Knight will probably be galloping until shortly.

For your second question, after building the executable, you must build the installer and includes support for the VISA. VISA is required for serial communication, and it does not accept American Express.

It may be useful

-AK2DM

Tags: NI Hardware

Similar Questions

  • find sql_id using the sql statement, including the carriage return and tab...

    Hello. all.

    I wonder how to find sql_id using a sql statement, including transport retrun and tab space multiple.
    To be more precise,

    My sql is:

    Select
    col_a,
    col_b,
    ..
    ..

    I usually use the following query to find the sql_id

    Select sql_id in v$ sql where sql_text like 'MY SQL STATEMENT %.

    When MY SQL STATEMENT includes carriage return and tab space multiple, how can I do?

    Thanks in advance.
    Best regards.

    Hello

    Did you look at regular expressions? Use regexp_like instead of as.

    http://www.Stanford.edu/dept/ITSS/docs/Oracle/10G/server.101/b10759/conditions018.htm

    Kind regards

  • Store data from the Serial Port in the buffer and then take action?

    Hello! Everyone,

    I'm new to LabVIEW and I take assistance from various videos and stuffs available online to get started with LabVIEW.

    But I have a duty, therefore needing help.

    initially I see some of the tutorial videos and learned about the LabVIEW interface, and does a little project to communicate with the Port series (receiving and sending data).

    Happens to my task.

    My LabVIEW application will send a few State request packets on my device or control and based on the response packet that I have to display values.

    The Structure of package is as

    Header, length, Op_Code, data Checksum

    There is no terminator as newline or carriage return or anything else.

    In C language, I read the data from the Serial Port, and based on the length, I conclude that I got the full package or not, and then by recalculating the checksum value, the integrity of the package is verified and then based on that Op-Code has been sent will be decided.

    (I'm dealing with hexadecimal data)

    But how can I do this in LabVIEW.
    A tutorial or any referece will be useful for me.

    1. I suggest that you learn to use Shift Registers instead of local and global variables.  They are much more efficient (memory and execution speed) and make it much easier to read the schema.

    2. you don't need this inside the loop property node.  Is there a way to configure a Serial Port to turn off the stop character.

    3. you don't need to wait for playback VISA will limit the rate of loop if no data is coming.

    4. Once you have the length, you simply read the rest of the entire message and process it at a time.  This will make things a LOT faster.

    5. you should really do this enum a def type so that you can ensure that all your enum constants have the same values.  If you need to add a State later, simply update your enum in the same place then.

  • Visa set up serial port problem

    Hi all

    I use the RS-232 port to communicate with the instrument. At the moment the device is not their so I shorted pins 2 and 3 of the connector connected to the COM2 port, so that what ever I'm transmitting, I I'll be back. Using Hyperterminal I am able to verify that whatever i write, he's coming back.

    But when you use a Labview 7.1 I am tring to connect first by configuring the using VISA CONFIGURE SERIAL PORT.vi serial bus

    with the following parameters

    Visa resource name = ASRL2::INSTR (port COM2 because)

    Baud rate = 2400

    Data bits = 8

    Parity = None

    Stop bits = 1.0(Equal to 10)

    Flow control = None

    End of reading at the end of character = True

    Dismissal = A

    Up VISA is in error. The error code is 1073807202

    The procedure described above is similar in the read/write of Visa examples provided...

    I strive to solve the problem but all invain.

    Can anyone help me in this.

    See here

    I guess your problem is #2 (you have not installed OR visa).

  • Serial port in a conflict of use

    I'm using LabView 11 Pro

    I'm controlling an instrument that is not always connected. No problem. However, there is another program that is used by using the same port comm on the same instrument. Is there a way to weather detection that the comm port is used without question the instrument?

    Trying to open the communication to the serial port using NI VISA should not affect existing communication from another application. You will get an error saying something like "device already in use.

    So overall:

    Just try to open the connection to the port series and look for the error. If it happens, the resource is already locked (in use). If this is not the case, your application can use it.

    hope this helps,

    Norbert

  • Communication serial port problems

    Hello.  I'm trying to control a pressure controller MKS Instruments 651 via RS - 232 c.  Right now, I just try to establish a basic communication with the device on the serial port.  I can connect to the device with hyperterminal of windows using the following parameters:

    Bits per second: 9600

    Data bits: 8

    Parity: None

    Stop bits: 1

    Flow control: no

    Once I log in, I'm in file--> properties, settings tab and click the button settings ASCII.  I need to check the following boxes (not ticked by default) for communication any occurs:

    Send line ends with line breaks

    The echo locally typed characters

    Add line breaks to incoming line ends

    Force incoming data to 7-bit ASCII

    Once I got it, I can communicate with my device via hyperterminal.  What I want to do now is to use LabVIEW to control the unit, so I need to be able to send and receive data through the connection RS-232 using LabVIEW.  I have been using the basic series write and read vi, but I get no response from my camera.  Looking at the block diagram for the basic reading/writing, I saw that allow termination Char has been wired to false, so I changed to a control and set it to true.  I also changed the termination to a control tank and assign 0xD for the CR.  I can't always get a response from the device.

    I guess I'm still not put in all for the serial port configuration correctly.  Can anyone give me some suggestions on what else to change to match my hyperterminal settings?  Thank you!


  • xw6600 Workstation - Serial Port problems

    I want to add a standard RS232 9 pins (serial) port on my HP xw6600 workstation.

    Due to the current expansion I have only x 8 PCIe and PCIe x 16 available on the motherboard slots.

    I tried two dedicated PCIe Searial maps (PX-235 BrainBoxes and SatrTech BY - 1 S 552) and caused both the PC go into a continuous re-start cycle, i.e. the PC through the BIOS and rebooting itself before loading the operating system.  I tried to disable the interface Serial Port built into the BIOS, but it made no difference and cars (s) should be removed.

    I noticed that the motherboard has an onbard Serial Port adapter, but I don't know what hardware is required to present this port at the rear of the workstation (cable and plate back I guess), or even if it can be used for this purpose.

    If someone added a serial port to the device, I'd be interested to know how they did it.

    Thank you.

    That's what you're looking for. It is a connector standard seial that connects to the head set to edge out motherboard to an empty slot on the back of your pc. There are many on the market. You should be able to find a room for @ $6-8, 00 USD to any electronic parts store. If you activate the serial port in the BIOS, coupled with the installation of a configuration like this, you should have what you are looking for.

  • Serial port problem

    I am trying to transfer my software on my computer to my embroidery machine computer, I get a message "no link to serial port.  Someone suggested it was Windows, but I don't know if it's my computer or my enbroidery machine.  I have Windows XP on my computer.

    I missed the part where you said it was the first time you tried to connect to the embroidery machine.

    Yes, it might be the cable (or any other material, either on the computer or the embroidery machine).

    Most computers today have only a serial port physical port, where COM1 and its shared COM3.  COM2 (and its shared COM4) are the remains of the time where everything connected by the serial port and computers had two of them.

    As far as I KNOW, the only way for you to get COM2 (and other COM ports) would be to add the device to your computer.  You should not need to do unless the serial port of your computer is broken (unlikely): http://www.newegg.com/Product/ProductList.aspx?Submit=ENE&DEPA=0&Order=BESTMATCH&Description=serial+pc+card&x=0&y=0

  • Hi, can I buy without problem After Effects and use on a 1366 x 768 screen? I do not have another monitor, than that, so I want to use after effects, but the requeriment to a 1080 p monitor, scared me

    Well, I want to buy adobe AE, but if I need a new monitor, unfortunately I have to give up, I live in the Brazil, everything here is expensive price or I buy a new monitor or get with Adobe AE, the problem is if I use monitor with 1366 x 768 without problems

    This monitor does not meet the minimum requirements of the system. It will not work for After Effects. Some elements of the user interface will not fit. That's why the dimensions in pixels of the screen are listed in system design.

  • Interleaving of Dreamweaver returns and the white spaces of files uploaded to my server

    Hello

    This same problem has been published here by several people about 5 months and never answered. I just upgraded to 10.7 and CS5.5 and I now have the same problem.

    Files downloaded using ftp in Dreamweaver have all formatting returns and whitespace removed from their part. The files are fine if they are uploaded via ftp using Fetch.

    When I view the source code of the uploaded file in my browser, all the code in the file is on a single line. This applies to JavaScript and HTML files. This stops the JS to work and causes the HTML will not display correctly.

    I went through the DW ftp settings advanced and experienced with on/off options. It doesn't change anything. I added some JS and HTML for writing, no effect exclusion list.

    I used an extra hard drive and did a clean install of 10.7 and 5.5 without change in the behavior of DW.

    Everything works perfectly using 10.4 and CS4.

    Any help would be appreciated.

    Thank you in advance.

    This is published periodically and as far as I know he is always answered.  But nevermind...

    The symptoms you describe are almost always related to incompatibility between the linebreak in the code type and the native type linebreak on the server.  Check your DW PREFERENCES and see that you specified under the Code Format > line break type:.  That must match the SERVER uses.

  • IE8 Crash with a native installation of IE11 and using the proxy pac file.

    This issue seems to be specific to a windows 7 with a native installation of IE11 and using a cap of proxy for the configuration file.  From what I can understand newspapers, all the right files are take care of packaging.

    What happens on computers of 32 and 64 bit.  The IE8 was captured by sheet of VMWare and the fix IEShims.dll is enabled.

    I tried the 'wow64 = 0' setting as well as the 'AltArchitectureShortcut = 0' in the file package.ini.  None of these settings seem to help.

    Any idea would be appreciated.

    Lance

    Updated the original message to match the correct number. Post edited by: lcourson

    So after much troubleshooting, I have discovered that the file which was causing issues is jsproxy.dll.  This file has changed between Windows XP (which is where IE8 has been captured since) and Windows 7.  There is one missing method in version XP, InternetGetProxyInfoEx.  I just ran across this issue because we use a pac file for our proxy assignments.  This seems to be a similar problem for the IEShims.dll http://kb.vmware.com/kb/2038758fix.

    This fix should be the same that the IEShims hotfix, copy the version jsproxy.dll from a machine of IE8 windows 7 to the package and recompile.

    This put it out there in case someone else is going through this issue.

    Lance

  • CS5 hangs upward during the opening and used to play quicktime files

    Ive been wrong this shot for days now and have not understood the problem. When I run CS5 on my iMac i7 Quad Core 2.8 it hangs up during the launch. Sometimes he got through, but it's usually when I stop the QT32 Server process in the monitor of activity... but then he tells me all of my video clips cannot be imported - this 'MooV' file is damaged or not supported. The codecs are just the animation to 1080. I have the version snow leopard 10.6.4 and quicktime 10 and 7 when installed. I tried to remove the AE preferences as well. The only plugins I have installed are trapcode 2.1 and contraction. Most of the time when I open AE by itself, it does very well, but if I open one of my old project files, it hangs up during loading, and once I left the sever process all my video files (codec animation) QT32 are unreadable in AE and say ' may not be imported - this MooV file is damaged or not supported. Any ideas whether what I have to do? Any help would be great! Thank you!

    > import the same clips that are in my other projects

    I'm a bit confused by the present.  Please specify:

    If you start a new project, you can import the clips in the project you are having a problem loading?

    What it sounds like, it is that your project may has been corrupted somehow.  Since you can get opening project closing QT32 server, it probably means one of the references to your source clips is the problem.

    Try these ideas:

    -Start a new project and import the project evil in it.  If it works, you good to go.

    -Offline QuickTime files.  It's simple on Windows-rename the folder (s) they are in.  On Mac, it's more complicated because Mac OS is smarter on the follow-up of the files; the easiest is to copy them and then trash the original (but do not empty the trash).  Once the files offline, open the project.  If the project opens, OK, the message about missing files.  Now create a link to the files until you get a failure.  Once you get a failure, you know that you have either a bad reference in the project. delete it in the project Panel, and then re-import the file.

    -Exit QT32 Server, open the wrong project.  Save as to create a new copy to work.  Now repeat steps on disconnection and reissue of links the above files.

  • Uninstall initial of the cloud causing the problems of resettlement and use Lightroom Adobe

    I used the trial of Lightroom and when upgrade from the window a recent trouble crashing with the program, I tried to uninstall the program.  I have uninstall Adobe Cloude but Lightroom was still there, so I removed it.  I think that I would not do because now I can't access it to uninstall. I bought Lightroom but cannot access it or download it again now.  Can help you with this, so once again, I can access my product in Lightroom?  I tried system restore to go back to the previous dates, Lightroom will still appear in my control panel, but you can install it or reinstall it.

    Here is the message I get:

    Exit code: 7

    Please see specific errors below for troubleshooting. For example, the ERROR:

    -------------------------------------- Summary --------------------------------------

    -0 fatal Error (s), 1 Error (s)

    -Payload: Adobe Photoshop Lightroom 5 5.7.1.0 Adobe_Lightroom_x64.msi_5.7.1 -.

    ERROR: MsiConfigureProductEx failed with the error: 1612 - the installation source for this product is not available. Verify that the source exists and that you can access.

    MSI error message:

    -------------------------------------------------------------------------------------

    I would like to start over with all this now that I bought but don't know if this is possible or how.

    Thank you

    Jackie

    The problems that the programs cannot be installed or uninstalled

  • Carriage return and line feed in MAX

    Hi all... I did a communnication with my scale and PC with sending the commands in the 232Analyzer software.

    As you sere CR and LF are software buttons in this test, but when I use Testpanel VISA, the "D\r\n" command does not work... Can anyone help?

    Thanks in advance...

    Sorry... It is resolved

  • Problem sharing projects and using App of local history.

    Since that day I have not been able to share anything from adobe story... Enter the new ID email q and say okay... he tries for a second then tells me I have no internet connection (which clearly I do since im working in the online version)

    so if I launch the history local app (mac) and connection - none of my projects appear! OK... it tells me I'm working offline, maybe that is the problem - if I select "work online" and it does nothing... not even a dialogue... what the hell is going on there! Help!

    DF

    Hello

    I sent an email requiring some additional info to isolate the problem you are experiencing.

    Please answer this.

    Thank you

    Rous

Maybe you are looking for

  • Cannot add the find now is in the Tools menu when you try to install add to import Windows Live messages, contacts, etc.

    I want to import Windows Live 2011 messages, contacts, etc and tried to install the recommended add on. I downloaded and registered the add on by following the instructions, but when I went on the Tools menu, to add on the of are not there to complet

  • Can't view the animations on certain websites

    Seems very silly, but I was once able to view glitter and other mobile graphics on a? My spacea? my laptop, but now I can't. I thought it was the html code in my profile, but I can see it on other computers. I'm not also view animations of others of

  • While/loop and reset the value i in time loop

    Hello! I have a question about the use of while/loop for. I read the data of 5 devices. Starting with the 0 position when I = 0, I read the data at position 0. And when I click on NextPosition, then I = 1 and stop when I = 5. But in the meantime, if

  • Spectrum x 360-13-4003dx: mouse Lag!

    So, I use my laptop anchored much and I keep getting a HUGE mouse lag when you run a program or the two (e.g. MS Word and Firefox). I tried using my dock usb 3.0 docking or just plug my monitor via HDMI so I think that I removed the USB key as a poss

  • Cisco CSA 4.2 + RADIUS + HP procurve switches

    Hello! We mixed network environment with cisco / HP hardware. We are currently assessing the Cisco ACS 4.2 to manage network access network equipment. Cisco equipment works very well, but we have problems the RADIUS and procurve switches (Ganymede wo