Communication with Serial Port

Hello

Hi I have a request that I should communicate with serial port...

Its works perfectly if gives you all parameters to com as constants (pls hav a look @ codea).

But I want to read the port number and baud RRSP file text. When I changed the encoding in serial number

setting, I was not able to find the number rate.it and port baud displayed as the size of memory buffer. I think that the way I connected the baud rate and port number to the clusture may be a problem (pls see codeb). How can I solve this problem?

Thanks in advance...

Again, the point of connection to the Central Terminal is not not to define the values contained in the cluster - just the logical structure of the cluster. The data that appears in the cluster from the budler will reflect the data that you read from the file. Try it.

Mike...

Tags: NI Software

Similar Questions

  • Laptop computer with serial port

    Hello, I would like to buy a new hp laptop with serial port. Could you suggest me some models?

    Thks

    There are still a few models of laptops business\Enterprise with serial ports.

    HP ProBook 6470 b and 6570 b Notebook PC have all two serial ports.

    Best regards
    ERICO

  • reading photoplethysmograph waveform with serial port on PC using Labview

    Hello world

    I'm gaining time real Photoplethysmography waveform of serial port using Labview.I have managed to acquire data from serial port by using the following features:

    -Baud rate: 38400

    -data bits: 8

    -stopbit: 1

     

    -No parity bit

    -Time delay before reading the serial port: 10 ms (according to what was written in the manual that every 10 ms there is a frame in serial port)

    After the reading string will be converted to byte array to be able to extract the bytes associated with waveform (1 & 2 bytes in a frame) even for SOP2 (6 & 7)

    (what is read in serial port is in decimal and must be converted to hexadecimal based on what made the software of prodeuct for some result.that in the waveform properties, I chose the hexadecimal representation)

    Then, as mentioned in the manual, I associate these two values to draw the waveform.

    Although I used the filter band digital waveform of pulse but not significant pass that was seen (cutofffrequeny:10 high low cut-off frequency: 0.5).

    I have attached my program and result in front of Panel and manual for the sensor. The result is still far from what is supposed to be. I was wondering if you could help me and let me know your opinion on the program and the protocol used. I have to get the result as soon as possible. Please let me know if you need more information.

    Kind regards


  • the NI 9871 serial ports appear also in MAX with built-in serial ports of the target - under devices and Interfaces IS NOT? NO NEITHER 9871 (Scan Interface)?

    Hi - Have cRIO

    Can someone help me get the NI 9871 (Scan Interface) work?  My two 9477 and two 9425 and 9403, function with the scanning Interface.  In MAX > software > NOR-Serial RT 3.82 > NOR-Serial 9870 and Scan Engine Suport 3.8.2 9871 BUT NOT == MAX > devices and Interfaces > series & parallel = number of Ports Com for 9871 listed?   Project, 4-port RS-485 NI 9871 is in slot1?  Any help appreciated thanks

    the serial ports on the NI 9871 also appear in MAX with serial ports integrated target under devices and Interfaces

     

    NEITHER 9871 (Scan Interface)

    I left the Slot 1 Slot 8 9871 Know works and MAX displays 4 COM ports.  Something is misconfigured in Slot1?

    Solved!

    Thank you

  • Serial port data capture

    There is a Panasonic telephone switchboard (manages some singles lines). The haves of plants serial port RS - 232 c.
    Y at - it a utility to capture the flow of serial port information?
    This Win7 machine comes with serial port 9-pin and the RS232 cable is ready. Before Win7, this machine worked with XPPro and had a phone call teletax Avaya cost accounting.
    With the new Windows, there is no more software Avaya. The only data needed are what the port.give series RS - 232 c (number to call, call inbound_outgoing, duration in sec) need us not cost, only to capture data from the port and save in plain text.
    Any idea, is there an alternative to Hyperterminal?

    Hello

    The question you have posted is related to professional level support. Please visit the below mentioned link to find a community that will support what ask you:

    http://social.technet.Microsoft.com/forums/en/category/w7itpro/

  • Problem: read bytes to serial port

    Hello, I need to communicate with an external device with serial port. I have to write a command to my device string, and then it should play with 64 bytes of data. I built a function of READING-WRITING and I use it in a loop (I have to read a lot of 64-byte block)

    Sometimes, I have the following problem:

    (1) I have send the command string, I wait with "Bytes to the serial port" whereas I have more then 60 bytes, then I read.

    (2) sometimes happen that the read function cannot read all 64 bytes, so the net for cycle, I have in the receiver buffer mor than 64 and the program to stop working. (does not work well)

    I need to be sure that after writing the command I have 64 bytes, so I red all the 64 bytes so the next loop for, I have the buffer of the empty receiver.

    I enclose my writing reading function. Please refer to the block diagram (there are a few notes).

    Thank you

    In no place in your program see the VISA configure the Serial Port. It's always a good idea to include this that even if you use the default settings. I suspect this is one of the default settings which is wrong with you. By default, playback is set to end when a character is considered. This means that if you have a 10 hex (ASCII LF) in your stream, playback stops until the specified number of bytes is read. Put in a VISA set up the Serial Port and connect a constant False to the stop character allow entry.

  • Change Windows 7 default serial port settings

    I need help how do I change the way Windows 7 control a default serial port COM1.  I use a serial cable very easy to control the special with external hardware.  The serial cable only use the RTS and DTR, GND pin of the cable and does not require special hardware drivers.  I used the camera on several versions of Windows 95 to XP without any problem at all with serial ports.  With Windows 95 - XP serial COM1 port's RTS and DTR lines defined 'stop' by default.  I just upgraded to a new computer with Windows 7 and now have a problem with the serial port.

    For my problem, I need to have the serial port to be 'stop' default until load control software and specifically opens the serial port to turn on the external device.  Using a serial port data Tester (a lot of green and Red led) I see that as soon as Windows 7 starts, it automatically sets the lines DTR, RTS and TD to serial port as "HOT" (high voltage).  This is not acceptable because it activates the external hardware until the control software is loaded!  Similarly when the control software is closed and the serial port is released in Windows 7, the serial port DB, RTS and TD lines are again defined as "HOT" (high voltage) by Windows.

    Computer: Dell Optiplex 745
    Windows 7 Pro 64 bit with SP1 installed
    Serial port on motherboard: Intel ICH8/ICH8R LPC Interface Controller 2810
    Serial driver: Microsoft 6.1.7600.16385 (is up-to-date)

       Settings for COM1:
       -------------------
       Baud Rate:     9600
       Data Bits:     8
       Parity:        None
       Stop Bits:     1
       Flow Control:  None
    

    I spent hours looking at the Manager of devices/port settings and try to find anything online with no luck.  Is it possible that this is because of the way Windows 7 plug-n-play manages the serial port?  How can I turn it off then the port by default as if it was on XP and earlier versions of Windows is 'off '?

    Thanks, Dave

    I need help how do I change the way Windows 7 control a default serial port COM1.  I use a serial cable very easy to control the special with external hardware.  The serial cable only use the RTS and DTR, GND pin of the cable and does not require special hardware drivers.  I used the camera on several versions of Windows 95 to XP without any problem at all with serial ports.  With Windows 95 - XP serial COM1 port's RTS and DTR lines defined 'stop' by default.  I just upgraded to a new computer with Windows 7 and now have a problem with the serial port.

    For my problem, I need to have the serial port to be 'stop' default until load control software and specifically opens the serial port to turn on the external device.  Using a serial port data Tester (a lot of green and Red led) I see that as soon as Windows 7 starts, it automatically sets the lines DTR, RTS and TD to serial port as "HOT" (high voltage).  This is not acceptable because it activates the external hardware until the control software is loaded!  Similarly when the control software is closed and the serial port is released in Windows 7, the serial port DB, RTS and TD lines are again defined as "HOT" (high voltage) by Windows.

    Computer: Dell Optiplex 745
    Windows 7 Pro 64 bit with SP1 installed
    Serial port on motherboard: Intel ICH8/ICH8R LPC Interface Controller 2810
    Serial driver: Microsoft 6.1.7600.16385 (is up-to-date)

       Settings for COM1:
       -------------------
       Baud Rate:     9600
       Data Bits:     8
       Parity:        None
       Stop Bits:     1
       Flow Control:  None
    

    I spent hours looking at the Manager of devices/port settings and try to find anything online with no luck.  Is it possible that this is because of the way Windows 7 plug-n-play manages the serial port?  How can I turn it off then the port by default as if it was on XP and earlier versions of Windows is 'off '?

    Thanks, Dave

    Dave,

    I can't believe that you have not answered this question.  I had the same problem as you trying to control my radio interface.  I just came by for a Dell Optiplex over the weekend and noticed the same problem.  I was searching the Web for an answer when I found this post.  I am happy to say that I found the solution to my Optiplex and how it works for you.  I went into the BIOS and set the UART protection on.  Makes no sense to me because I'm a software guy, only an amateur on the hardware side.  I left the BIOS and the serial port works as it should like in XP.
    Steve
  • Serial port DB9 on laptop

    Guys,

    Does anyone know which notebook ProBook and EliteBook comes with a DB9 serial port... looking to upgrade and it is a deal breaker for me...

    any help appreciated

    Some of the probooks have serial ports, but none that I know have a parallel port.

    You can check out the link in my signature for different models of laptop computers with serial ports.

  • 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

  • Communication with the niVisa (GPIB) do not work next to a serial interface

    Hello

    I programmed an application in C++ (Visual C++ with MFC, running on XP). On the one hand, I control devices of different measure (also from different suppliers). All communication is done with niVisa (Version 4.6). On the other side, I send remote commands to a generator via the serial interface. To do this, I use CSerialPort, it's a Wrapper MFC of the Windows API. Thus, niVisa is not used for the serial connection.

    It works without any problem until I connect the measurement equipment (any type of) via Ethernet.

    When I now connect the scope via GPIB (I use a NI PCI-GPIB), communication works without any problem as long as I wouldn't send anything on RS232. After I send something to my generator (and close the com-port), the next Commander of VISA will give me an error (VI_ERROR_ABORT). Now, I can log in again and everything works normally again (until I have again send something on the com-port).

    For me, it's a really strange question. Any ideas? Any help?

    Best regards

    Michael

    OK, I finally found the problem.

    When you use the serial port, you can write data with normal writing (WriteFile()) function or with the tip (WriteFileEx()). Do not now ask me for more details on the difference, it's something with the mode "" overlap...

    After I send all the data with WriteFileEx, VISA-connection via GPIB produces an error. So I went to the basis of WriteFile() and everything works. Don't ask my consistency betwenn VISA (with GPIB and just GBIB) and the connection series. I'm just happy right now...

    Michael

  • VISA: Communication with "Optris Laser Modul" via a port series

    Hello

    I use a "Optris Laser Module" for measurements of temperature (see attached pdf). This module could be connected via usb to the computer. The pilot of the laser module generates a serial port (COM4 on my PC). The manufacturer's software works without any problem.

    The next step is to use labview for communication. Unfortunately, I did not find driver.

    The manual shows the adjustments for the serial port

    baudrate: 9.6... 115,2 Kbauds

    data bits: 8

    parity: none

    stop bits: 1

    FlowControl: no

    Normally, the module communicates with a binary protocoll. With a special order, it is possible to change the protocoll in ASCII. To change the protocoll you must write "Dezimal: 131" or "HEX: 0 x 83 '. The answer should be 1 byte with '0 = protocoll binary' or '1 = ASCII protocoll.

    I wrote a little VI (see table at right) to change the protocoll. I am not getting any error, but also no answer.

    Anyone have an idea where the problem could be found in the code.

    Thank you very much and best regards,

    Michael

    P.S.: If you attach the code, please use LabVIEW 8.2.1, if I'm not able zu read the code. Thank you.

    Attached: Small manual for "Optris Laser Modul" and VI.

    You would be he catalogued to U16

  • Impossible communication with an electronic card via the USB port of the United Nations

    Hello

    I must communicate with a normal electronic card a mini-USB port / USB (serial, COM4). This card transmits on the airwaves on a frequency range that I must address.

    When I plug, the PC detects it and accept it (I installed the driver). Plug-in the HyperTerminal in Windows XP to send instructions in hexadecimal this carte pour what change the range of frequency on which it issues.

    Furthermore, neither MAX nor Agilent Connection Wizard not the detected and none are able to communicate with it, everytime the same message error "no device detected".

    I tried under LabView to send instructions with assistant IIOA, no results. I also tried the instructions 'Config VISA' and 'Entry VISA', trying to write in hexadecimal and normal mode, nothing works. Under labView I have yet no error message, nothing. Nothing.

    I don't understand. I know that it is still possible to drive it under LabWindows, but under LabView (8.5) nothing, not a clue.

    I have the latest version OR-488. 2

    Y ' have a procedure to follow pour such communication of?

    Thanks for any help that would be welcome.

    Kind regards

    Zoe.

    Hello

    The NOR-488 driver. 2 is the driver for the hardware from National Instruments GPIB; If you communicate to the port of of a USB through, this will not impact your code or on the resources used. The only element in common with your VISA application EST enhancement. It provides a unified API pour different types interface with instruments (series, Ethernet, GPIB, VXI, etc...).

    Under MAX, on cannot hole your communication card, only the serial port. The first chose to do is therefore to ensure that the serial port 4 is clearly visible under MAX. You can then the uti Test Pannel VISA pour send and/or receive orders to/from your card.

    If these elements do not allow you to properly configure your hardware, n 'hesitate to send a capture d' screen of the configuration under MAX. If you have a CVI code that allows you to interact with the map, it might be interesting to join, so you can see how interactions with the material are made.

    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 with LabView

    Hi all

    I have some kind of project as a proximity matrix. Pretty much looks like 16 LED panels in the config of 4 by 4.

    I need to create a GUI that can show what I physically see. IE: I have a block of LED that shows me the intensity or brightness of the LED is full or half of the intensity and I want that same value or data appear on the screen with a delay of almost nothing.

    I use a PIC16f73 with IrDA sensors. The sensor sends the value of the ADC to the PIC and then send this value to the PWM port that controls the LED then this same numerical value, it will go to the PC via master/slave SPI communication.

    Let's say, I have the entry value of the slave 11001100 and past by the master and then go to the computer via a SERIAL port, I want the lu GUI only and interprets this as a specific value and modify the intensity of this block on the GUI.

    How can I do? I already attracts 16 Blocks (LEDs) using the LabView, but I don't know what to do to perform playback of the Serial Port and then interpret that and make a table of the eye and the screen will change the color from black to white depending on the intensity.

    Can someone help me with this problem please.


  • Another question on serial port communication

    Hi all!

    I started working with tools of communication series LV (actually, I'm a newbie in LV at all).

    The question is - how I effectively detect y at - he new data arrived in the read buffer VISA?

    I mean, in the examples I found, there is always a fixed delay between writing series and the read operation - it makes the instrument depends on the speed of communication and (worse) on the response time of the required device. I want to implement is a vi that writes a (or different applications) via a serial port and then check periodically (with the relatively small period, say, 1ms) series read buffer for the response data until new data stops arriving. For this I need to know the number of bytes of data into the buffer, or a property (if any) detecting the arrival of new data.

    As I read on this forum (and figured out from my own experience)-using VISA bytes to the Serial Port is ' t a good idea also I have found a solution without delay set by the user between the writing and the read operation in the recent previous topics.

    Can you give me an opinion?

    Thnx in advance.

    Use VISARead with a number of bytes to read and a timeout.

    When your data is received it will play instantly. When no data comes in, you will get a time-out error, which you can manage!

Maybe you are looking for