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!


Tags: NI Software

Similar Questions

  • Communication Serial Port with PIC

    Dear all.

    I am interfacing the labVIEW to an eeprom controller PIC, where I need to input data user to store in a location memory EEPROM, according to my condition that I've done programming the pic and it works very well with hyperterminal, at the same time I need to do with a labVIEW using communication serial port VISA , but when I did I receive a warning in 1073676294 that cannot be ignored, but I am not able to write user data to EEPROM by labview but I can do it to hyperterminal, please someone help me on this.

    Charron a G

    I was interfacing to pictures for a while, and the example that you have to build from was the same that I used. First, move the initialization OF THE outside of the loop. No need to re-initialization of the COMM PORT every 750ms.  Inside the code example, there is an expectation of 500ms between WRITING and READING (it is hardcoded for now, you brought it out on the ICON).  So time total is 750ms loop over the 500ms wait (more traffic comms), FYI.

    You do not use a return of ramasseherbe (13) or a NEWLINE (10) as a dismissal. You use a SO (14). Unless you're on a triggering a 14 ASCII in the PIC, the PIC will never see the "end of the chain of command" to analyze out. I have attached a good routine of init (IMO) I re - use on all my PIC projects, take a look.

    I use compilers Mikroelectronica MikroCPRO and displayed a complete interface of the UART (triggers on a CR (13)) on their site LIBSTOCK if you want to take a look at the side of the PHOTO of my work.

    http://www.libstock.com/projects/view/250/RS232-interrupt-driven-command-based-interface

    Steve

  • Having problem of PCI and PCI communication serial port

    Hello guys,.

    I have a problem with my serial port PCI and PCI communication, I use Windows 7 64 bit found no solution please help about this and I am very happy to thank

    B.Regards,

    Hussain SF

    Hi Hussain SF,

    Thanks for posting your query on the Microsoft Community.

    I imagine the inconvenience that you are experiencing and will certainly help you in the right direction to solve the problem. However, I would be grateful if you could answer a few questions to refine the question in order to provide you with better assistance.

    1. You get no matter what error code/message when connecting to the serial port PCI?
    2. What is the brand and model of the computer/motherboard?
    3. What card has been inserted in the PCI slot?

    PCI stands for Peripheral Component Interconnect. It's an industry standard bus to connect devices to a computer.

    A serial port is a serial communication physical through transfers of information inside or outside a bit at a time. The term "serial port" usually identifies hardware more or less conforms to the RS-232 standard, designed to interface with a modem or a similar communication device. The serial port used to be widely used to connect to a variety of devices external and is essentially a two-way communication port. There are still devices using a serial port connection. These are often marked as RS232 and would include devices such as TELEVISION receiver cable boxes.

    The PCI of Simple Communications controller is a generic label given by Windows for PCI cards installed in a PC when the drivers for the device are not installed.

    You probably received this error because you have not installed the driver for your PCI device.

    If your computer came with a motherboard driver disc, put the CD in and install the chipset drivers from Device Manager browse the CD. This would update the drivers for those devices.

    Steps to follow:

    a. right click on the entry in the Device Manager and select Properties.

    b. in the driver tab updated some drivers.

    c. Select Browse my computer for driver software.

    d. click on browse and look for DVD player option.

    e. follow the instructions on the screen and restart the computer after installing the drivers.

    If you don't have the motherboard drivers CD then please download and install the drivers for the chipset of the manufacturer's Web site and see if it helps.

    Get back to us with all the information and results of proposed suggestion. We will be happy to help you.

    Kind regards

  • Communication serial port IRP_MJ_READ

    Hello, I would ask you serial port communication. I am currently apply for communication with my engine not to not (Microcon), but it does not work. If I try to connect with the original software, my serial port monitor gives me values

    IRP_MJ_WRITE when I write some values and

    IRP_MJ_READ when I try to read from the serial port

    But when I'm using LabView, I can only send IRP_MJ_WRITE function by using the component to write VISA (if this one works well), but when I use VISA component read my serial port monitor gives me only IRP_DEVICE_CONTROL. Do you have any sugestion where can be a problem? I don't know how to get this function IRP_MJ_READ using LabView VISA component.

    You watch the using PortMon software? The only thing I see here is that the order that you send, there could be a space that you could have made while typing,

    or

    You're still motor control software running step by step when running the labview? In this case, there will be conflict.

    When you use software original stepper motor and when you send the command wirte down the hexadecimal value (see portmon or any other monitoring software) and try to send back the same hex values using labview. Sending a command, sending of hex are the same but just give it a try,.

    Use bytes depending on the port before VISA to read all available data.

    Search for Microcon network drivers driver Instrument in the Web site OR if you want a quick and simple solution.

  • 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

  • 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).

  • communication serial port works to the max, but not in labview

    Hello

    I am trying to connect a regulator to oxygen flow (flow Bronkhorst EL) to a laptop through a USB using MAX and Labview series port adapter. After the MAX aperture, I see my instrument on port COM5 and need to change the baud rate to 9600 to 38400. After this I querry the command: 06030101217D00\r\n, I can turn the mass flow at maximum power regulator (looks a little weird order because of the syntax of the instrument, but it works very well). If I write a vi to do the same and send the same string through visa series, I get no results, it seems that the command is not send to the device. I tried to change all settings for the serial port, nothing seems to work.

    I've attached an example vi here, any suggestions?

    Hello

    just a simple misunderstanding, happy that you added the code.

    In MAX \r\n will be always interpreted as send a cr and line break.

    In LabVIEW only when you select \codes view by right-clicking on the channel.

    In your situation, it now sends a-a r another- and a n

  • Communication Serial Port without a VISA

    Is it possible to connect to the serial port without a VISA?

    The thing is that the VISA is required to be installed on the deployed machine. It is not for my client.

    Thanks for any help.

    You can find driver series placed in Non-VISA:

    http://www.MHST.de/downloads.htm

    Benefits:

    • you need not install DURATION VISA on a deployed machine. Place a dll (dll is included) in the system folder - that's enough.
    • There are several additional features that has no VISA
    • works reliably

    Disadvantages:

    • Works for serial port only
    • uses the WinAPI functions
  • 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

  • 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.

  • communication serial port to read from an Analog Devices inertail sensor

    Hi, I have an ADIS16350 of inertial sensor by Analog Devices. My motive is to read continuous data of the sensor. Firmware sensor has specific commands as follows:

    Wil returns OK

    RA read a time of sensor

    It's going to read the sensor continuously

    When I try this in hyperterminal, everything works fine.

    However, I tried in the same method labview. However when I send no matter what this command the façade shows an error message. That means if I send 'at' command, instead of return 'OK' I get "ERROR: 61-74-30-43-error" in my opinion, this is a mistake sent by the firmware of the sensor. However just to test the system, I tried to send the command "continuous acquisition" of my program, LABVIEW, LabVIEW close, open Hyperterminal. To see the data is received at the Hyperterminal.

    Did someone come acroos a situation? Your comments are greatly appreciated.

    Thank you!

    Stéphane

    Check the stop character that you send with your order.  It is \r return (hex 0D dec 13) of the distribution or the new line/newline (hex 0A dec 10) \n?

  • Questions about serial port read and write at the same time

    Hi I create a user interface for the communication serial port, where there are essentially 2 front panels, where the user enters commands one and the other where the prints of UART is delivered. I thought initially using a state machine but the reading and writing may be independent sometimes and so I can't rely on States. I searched a bit on the forum and he left me even more confused. Help, please.

    (1) in a thread that sessions visa duplicated has been used for writing and reading at the same time, is it recommendable? How will this affect performance?

    (2) essentially when the vi is reading data are it must constantly view as well, however, someone said that it takes too much memory to use shift registers, so how do I go about this? If using a State in queue after the loop of reading it affects the playback loop and be sequential?

    In addition anyway is to move the cursor to the latest data from the indicator

    (3) for the control of the user input, assumes that the user has entered an order in the control and press ENTER, then writing visa is launched, but if it comes in another string and press enter then write must be called again... is - it possible? will detect the previous commands in the control of compensation?

    (4) according to my understand the expectation for the event do not monopolize resources and writing can go in parallel, am I right?

    Thank you. I have attached a very basic vi which took me to the point, but I want to make it more robust. Please help especially in the part of the user interface.

    su_a,

    (1) you can have only one session to a port. Several UART can handle full duplex so performance is not affected.  At flow rates of high data and large amounts of data, buffering and latencies of BONE can become a problem.

    (2) who told you that shift registers using too much memory? Shift registers are usually the best way to transfer data from one iteration to another. String concatenation inside a loop (registry to offset or not) causes the chain to develop and may require re-allocation of memory.  Your VI never clears the string so its cold length become very large.

    Generally, you do not have an active cursor on an indicator.  If you want to always display the most recently received characters and turn on the vertical scroll bar use a property node to keep scrolls to the bottom.  This can be annoying for users if they attempt to manually move the scroll bar and find that the program continues to move it back automatically.

    (3) if the user has changed the value in the chain of command, when he hits enter the modified value event fires.  Simply strike brace does not change the value and does not trigger the event.  Not control need to be erased, but the value that he has to change.  If you want to send the same command again, have a button send a command may be a better choice.

    (4) write is a case of the event.  It is not in parallel with anything.  The structure of the event do not monopolize resources.  The other loop will run while it waits.

    The event loop will not stop when you press the STOP button. Probably it wll take two command: change events of value after JUDGMENT before any loop stops.  Replace the Timeout event (which never expires) with a STOP: value change event and a real wire of this judgment to the Terminal endpoint.  Remove the local variable.  Make mechanical locking when released.

    Lynn

  • How to trace data sent through the serial port by controlling simultaneously the buttons

    Hello

    I want to plot data by controlling the two buttons at the same time and the draw according to my control using communication serial port, but the problem is that the plot on the graph alternates between the two controls his do not change according to my control for example if I move the potentiometres1 / 1000 and button 2 to 4000 replacing these values on the graph I placed a select control, the problem is still not resolved u can help me please thanks in advance

    Regarding

    Samatha


  • Problem using the serial port with windows 7

    Hello

    I have a modem of SIM cards (used to update remote controller of the electronic gate) that connects to my computer via the serieal port (COM1).

    The modem comes with its own piece of software that worked fine on my old computer with windows 7 (I had a similar problem, but then I just need to update the driver).

    I now have a new computer and I am unable to connect using the modem (I think I'm using the latest drivers for the serial port).

    Is it possible that I need an older version? If so, how can I get a?

    My motherboard is a GIGABYTE H81M-D2V.

    Any ideas?

    Thank you

    AVI

    Hi Avi,

    Thank you for the update on the issue.

    The UART, or Universal Asynchronous Receiver / Transmitter, is a characteristic of your microcontroller useful to connect serial data (text, numbers, etc.) to your PC. The unit switches incoming parallel information (in the microcontroller/PC) to series data that can be sent over a communication line.

    According to the description you provided it seems that your modem isn't connecting with your Windows 7 computer, then I would contact Duetech Berès your modem manufacturer, so that they provide you with the steps to set it up.

    Get back to us after contacting them and please get back to us with your question was last updated.

    Kind regards.

  • PCI serial port driver download problems

    Our Clackamas Oregon model RR club has two laptops for Dell Optiplex 755 purchased used in a recycling shop. One who communicates with our layout, power supply via the serial port of NCE has stopped communicating and Windows Vista Device Manager indicates that the PCI serial port driver is missing and also the communication controller simple PCI and PCI bus controller drivers. I searched for hours on the download site of Dell support for these drivers and cannot find any help. I even ran a Dell diagnostic package and it reported no problem. Any suggestions or how to find the correct drivers is greatly appreciated.

    It is a common problem with the INTEL AMT drivers that are not native to ANY version of windows.

    The "PCI Serial Port Driver is not actually a Serial Port"

    cs_setInnerHtml ('video_f3887bf0-d633-4e4b-8477-de4644c6bcf7', ");

    Its the Intel AMT HECI & AMT GROUND/LMS Hardware.

    The current driver to make it work with Windows 7, Vista, XP, 32 and 64 bit.

    One size fits all.

    Operating systems

    Windows 7 32 bit

    Windows 7 64 bit

    Windows Vista 32-bit

    Windows Vista 64-bit

    Windows XP

    Windows XP x 64

    Chipset

    ftp.us.dell.com/.../R174616.exe

    AMT HECI

    ftp.us.dell.com/.../Intel_AMT-HECI_A02_R255437.exe

    AMT - GROUND

    ftp.us.dell.com/.../Intel_AMT-SOL--LMS_A02_R255438.exe

    Installation of the drive (by WinZip) with the file Setup.exe to Intel_AMT - HECI_A02_R255437.exe

    Download

    1. click on download now to download the file.

    2. when the file download window appears, click Save (Windows XP

    users will click Save) this program to disk and click OK.  Save it in:

    window will appear.

    3. If you want to save in: field, click the arrow to the bottom, and then click on for

    Select desktop, and then click Save.  Download the file to your desktop.

    4. If the download complete window appears, click Close.  The file

    icon appears on your desktop.

    Install

    1 double click on the new icon on the desktop, titled Intel_AMT - HECI_A02_R255437.exe.

    2. the self-extracting window appears and prompts to extract or

    Unpack in C:\DELL\DRIVERS\R255437. Write down this path so the executable (I.e.

    You can later find Setup.exe file).

    3. the self-extractor file window appears.

    4. click on OK.

    5. After completing the file extraction, if the Self-Extractor

    window is still open, close it.

    6. click on the Start button, then run.

    7. type C:\DELL\DRIVERS\R255437 in the box text open, and then click OK.

    8. follow the on-screen installation instructions.

Maybe you are looking for