indicator of serial port

I have the output of the serial port connected to an indicator, and it is set to display in hexadecimal. (The output string is converted to an array of uint8 first.) I want the indicator to maintain the value of the last number he received from the serial port. Currently, the indicator resets to zero when nothing is received on the serial port. How can I change this behavior so that the value is only updated when new data is received from the serial port. Thanks for any help.

Place a Case statement that triggers a refresh of the indication only when the bytes to Port is greater than 0 (zero).

And, of course, place the indicator inside the TRUE of the Case statement case.

What you can do, is the (digital) output of the bytes to the Port of wire directly to the Case statement.  Check the default case '1'.  You can also use this same case to read the port, so to display the last data series.  Of course, you can have two sons, one who keeps all the data that has been read (shift register) and the other parsed wire the part you want to keep on the screen and you as the production of wire to your meter.

Tags: NI Software

Similar Questions

  • Add data from serial Port in the indicator series front panel?

    Hello! Everyone,
    I'm new to LabVIEW but has prior programming experience.

    I have to develop a front for my camera and this is why I need LabVIEW, data comes from serial Port, so I started internet research / LabVIEW forums and found various tutorials by the help I am able to do the part Serial Communication, but has got stuck in one thing.

    Whenever data from serial Port, it gets displayed on the indicator chain but clears quickly, but I want some data comes it does not erase the old data and new data to add with the old data.

    I read the string concatenation will work in this case, but I am not able to use it.

    Please take a look at my VI attached to this mail.

    You must use a shift register to keep your story.

    I recommend you go to some of the tutorials available.  They will help you a lot to get off on a lot of things like that.

    Introduction of 3 hours
    Introduction of 6 hours
    Bases LabVEW
    Paced self-study for students
    Self Paced Training beginner to advanced, required SSP
    LabVIEW training Wiki
    OR learning
    Getting started with products OR

  • Tecra A10 erratic mouse then freezes when serial port used for something else

    MT Tecra A10 was beautiful, but has developed a growing problem. It is running win7 ultimate. When you connect anything serial port wise it blocks indicating the Mouse / touchpad. USB mouse feezes completely, 98% frozen touchpad series same happenes when connecting via a usb emulator. Software on the laptop using series includes RS logix, perfect Omron CX1 Motion and NQ Designer, that said that they worked, can anyone guid help me pls.

    See you soon

    Martyn

    Hello

    Eventually, the software that controls the serial port or the device connected to the serial port is not fully compatible with Win 7.
    I think that this should be checked first.
    Maybe one of you should look for the Special Forum of the manufacturer of the software for more details

  • analysis of the chain of the serial port to retrieve data

    Hi all

    It is a problem of beginner. I have two sensors sending data to a same wireless serial port. In order to distinguish which is which. I coded each sensor to send data with a unique address UoL 000 X, then followed by two values, I want to read. These two values are in the float with format fixed impression (decimal fixed after the third bit). The format string of the first sensor should looks like UoL 0001 123,45678 876.54321. I use the Scan of the String function, unfortunately, it doesn't work that way. Could you please check the VI for me? Or a better solution for this application. Thank you very much.

    S.G

    It does not because what you have set is not different from what you have joined earlier.  Have you tried something?

    See this amendment attached to your VI.  The format strings work with the examples you gave, and sends the data to the appropriate indicator.

    Also, I cleaned up the mess that the inner loop where you were waiting for 1 or more bytes.  Which means most of the time that you would probably get an incomplete message.

  • 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

  • read the serial port PIN +.

    Hello!
    Ive got a question on the serial port. I don't want to make any communication on the port. I want to directly connect an instrument (later), the pin of the connector series #2. On the PIN, I need to read impulses. I am able to read the port pin series, who is active? I know, I can do it on the parallel port. With the port. VI, I give the address of the port, check the D0 PIN for example and the result I can indicate on a led indicator. I want to do the same thing on serial port, because later the target pc will be ve no parallel port. Is this possible? Can you give a statement of departure?
    Thank you very much for your help!
    Mr. Gabor

    You can read the down state from some other lines, DTR, RTS, etc.. There is an example that comes with LabVIEW. Open example Finder (help-> find examples) and search for "Troubleshooting Serial Line Monitor" example (just search "series").

    This can be considered an e/s digital interface a poor man, depending on what you are doing, you can be better with a 'real' digital i/o interface.

  • Number of serial port configuration ini file!

    Hello guys,.

    I am creating an ini config file to save the selected serial port of VISA.

    I will adapt if the ini file doesn't exist then look to pc serial ports and choose one of them. If the file is read the value to use when I use data acquisition.

    In the example attached. I have a structure of event (such as my application), where I have a stocking to open the 'options '. If you open the main vi and pass the error, open the Subvi options and choose comport, if you click on 'ok' it save the ini file, if you click on "Cancel" it closes and show in the indicator of the value of the comport the .ini file. The Subvi works well.

    The problem is when I try to read the value of include an application start. I put the code but that's fake.

    I used "simple saving and loading control values" TST ( https://decibel.ni.com/content/docs/DOC-15349 ) and it works well for the control of the Sub - VI.

    Why I got error and I can not read ini value?... section and the key is correct. I can't find the problem.

    Concerning

    Fred.

    OpenG INI example explained on the-openg-vis-that-i-couldn't-live-without

  • HP Compaq 6000 Pro AT492AV: Serial Port PCI Driver help - HP 6000 AT492AV Windows XP Pro

    Due to former software compatibility issues, I run Win XP on my computer HP Compaq 6000 Pro AT492AV.  I installed a new copy of XP OEM and have solved all driver except for 2 problems:

    (1) PCI Serial Port, here's the info from Device Manager:

    PCI serial port

    PCI bus 0, device 3, function 3

    PCI\VEN_8086 & DEV_2E17 & SUBSYS_3048103C & REV_03
    PCI\VEN_8086 & DEV_2E17 & SUBSYS_3048103C
    PCI\VEN_8086 & DEV_2E17 & CC_070002
    PCI\VEN_8086 & DEV_2E17 & CC_0700

    (2) unknown Device, here's the info from Device Manager:

    Controller of Interface LPC Intel(r) ICH10D - 3A1A

    ACPI\IFX0102
    * IFX0102

    I'd appreciate any help you can provide!

    All the best

    Hello:

    You need these drivers for devices...

    1.

    This package contains the Intel Local Management Service (LMS) and the support of Serial - over - LAN (SOL) for Intel Active Management Technology (AMT) for the supported desktop models and operating systems. This software is part of the Intel Digital Office Initiative.

    FTP://ftp.HP.com/pub/SoftPaq/sp45001-45500/sp45367.exe

    2.

    This package provides the device driver for the Infineon Trusted Platform
    Module (TPM 1.2) in office supported running models taken Microsoft support
    Windows XP operating system.

    FTP://ftp.HP.com/pub/SoftPaq/sp40501-41000/sp40553.exe

  • Using the Serial Port on the HP 50 g graphic calculator

    Hello world

    I have another question. I want to use the Serial Port on the HP 50 g to connect with another device. The device is called the MFJ-1214PC. What it does is to accept the text and commands through a 9-pin serial Port and converts the text in a Code Morse/RTTY sound audible. It also decodes Audible the Morse Code and RTTY radio signals and displays them as text on your computer. The program that controls the MFJ-1214PC was originally written for an IBM PC for the MS-DOS operating system. The HP 50 g graphic calculator meets the system requirements for the simplest version of the program. I was wondering if there is an MS-DOS emulator written for the HP 50 g, which would allow the HP 50 g to become the computer in this case, or if the program could be rewritten and brought to the HP 50 g. If it could be rewritten, programming language what do you think would be better suited to this type of application (if it is even possible?) or UserRPL, SystemRPL or Assembly. Don't forget that I'm a complete newbie with the HP50g and have never programmed with it yet. I'll include the manual of the MFJ-1214 PC as an attachment so that you won't have to look for him. Thank you in advance for your help!

    ~ Zekelegge ~.

    I understand (from my brief overview) out of the box-MFJ-1214PC, this offer box decoder output series computer.  The computer (50g in your case) will have the software to read message series and then convert that to an output for display.

    BartDb gave you the right answer.

    A serial cable with the correct speed level and reversing lever to manage as well as the 50G has a RS-232 signal to the outside world is the ideal solution.

    However, make sure that the output of the decoder box series package can be understood by the 50 g. aud, bits, etc.   (you have the set-top box manual, so you'll have to look that up)

    the streamsmart is not an aggregator of serial port.

    in other words, these connectors DIN of Qty 4 on the front do not accept series rs-232 input and send then to 50 G.

    I'm not an expert, streamsmart more info on these boxes is rare to find.  The probes are even more rare.

    However, I know that the 4 connectors are for the analog-to-digital conversion in the probes.  The streamsmart works as a "data logger" in which he sees the input probe, the A/D converted, then sends it to the 50G (or a computer via the USB port).

    In addition to the solution of Bart, there was another named Tiwag forum poster who created a serial cable and displayed a schematic representation of the cable.  This information can be found here:

    https://groups.Google.com/Forum/?fromgroups#! searchIn/comp.sys.HP48/serial$20port/comp.sys.HP48/ltcane1jSOw/uHyw2Ti03kgJ

    to see an example of programming to use the serial port of 50G, you can reference the following hpcalc GPS data collection program.

    http://www.HPCalc.org/details.php?id=7105

    It is written in userrpl so can be crossed with the reference of users advanced for the translation of the syntax.

    It seems that the main routine of concern for the comm to the gps is in the file "GPS >.

  • Tecra M11 - 17V - identify the serial port on the docking station

    I have a laptop Toshiba Tecra M11 - 17V, which I often use with the docking station that accompanies it.
    There is a DB9 serial port at the back of the docking station, but I don't know what COM Port.

    I use Windows 7.

    In the device, COM9 Manager - COM22 are identified as Port BT (bluetooth). Com7 - COM8 are RIM Virtual Serial Port v2, COM17 is Prolific USB-to-Serial Comm Port and COM18 is USB-Serial CH340.

    I thought that COM17 or COM18 were the most likely candidates, but have not been able to get to answer using one of them.

    I connect a Psion 5 (Comms app) to him and have developed ports and the Psion 8bits, 19200 baud, no parity, 1 stop bit.

    Hello

    > There is a serial port DB9 on the back of the docking station, but I don't know what COM Port, it is

    I think you have misunderstood something wrong
    COM ports in Device Manager are virtual com ports
    There is no link between a serial port and a virtual com port.

    I have a question: what docking station you have exactly?

    I had an express port replicator and this device required an additional serial port driver installation.

  • Serial port PCI and Communications Simple driver (s)

    I just reinstalled windows 7 Pro X 64 and I have all the drivers, but these two. Any ideas on what they are, and where I could get them?

    PCI serial port

    PCI Simple Simple Communications controller

    I have a HP Elitedesk 800 G1

    Hello:

    You need this driver...

    http://h20565.www2.HP.com/portal/site/hpsc/template.page/public/PSI/swdDetails/?sp4ts.Oid=5387468 & spf_p.tpst = swdMain & spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dvc_131760_1%257CswEnvOID%253D4059%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument & javax.portlet.begCacheTok = com.vignette.cachetoken & javax.portlet.endCacheTok = com.vignette.cachetoken

  • p5u69ut: Serial Port PCI drivers

    Where can I find the drivers for the PCI Serial Port on this machine?  I loaded all the HP drivers for this macine after an upgrade to windows 7 Enterprise and this driver is not available.  Thank you

    Hello:

    You need this driver... install it manually if automatic installation method does not work.

    This package provides the driver Intel Management Engine components to support desktop models that are running a supported operating system.

    FTP://ftp.HP.com/pub/SoftPaq/sp75001-75500/sp75384.exe

  • dc7800p Convertible Minitowers: win 10 PCI Serial Port & PCI device drivers unknown misiing

    Have missing drivers - managed to solve PCI Simple Communication Device driver missing by downloading some drivers of HP support and running these '(Admin) command prompt' with them running in Win 7 Compatibility Mode.  What (s) that I have to run to remedy or if not where should I look to fix.

    Hello:

    You need this driver for the Serial Port PCI...

    This package contains the Intel Local Management Service (LMS) and the support of Serial - over - LAN (SOL) for Intel Active Management Technology (AMT) for the supported desktop models and operating systems. This software is part of the Intel Digital Office Initiative.

    FTP://ftp.HP.com/pub/SoftPaq/sp46001-46500/sp46134.exe

    Please post the hardware ID of the PCI device unknown that you are missing the driver.

    To find the hardware ID, go to the Device Manager and click on the unknown device needing driver.

    Then click on the Details tab in the upper part of the device window.

    Now you will see a drop-down list of property, and it will be set to the Description of the unit.

    On this list and select the 3rd point (Hardware ID).

    After the first string of characters you see in the window.

  • Elitedesk 800 G2: PCI serial port (s) for Elitedesk 800 G2

    I recently reinstalled Windows7 professional 32-bit, and now the following shows no driver in Device Manager:

    PCI serial port

    PCI Simple Simple Communications controller

    Should which driver I?

    Hello:

    You need this driver for these devices...

    This package provides the driver Intel Management Engine components to support desktop models that are running a supported operating system.

    FTP://ftp.HP.com/pub/SoftPaq/sp75001-75500/sp75384.exe

  • Z240: PCI Serial Port Driver for HP Z240 VEN_8086 DEV_A13D

    This should be easy, but I can't find driver for HP Z240 VEN_8086 DEV_A13D PCI Serial Port. I think this is the driver of the AMT for this puppy... I think that its called sunrisepoint or skylake chipset? Things that make you go hmmmmm

    Hello:

    You need this driver... driver AMT GROUND is provided.

    This package contains the last engine Intel management software for the supported desktop models and operating systems, as well as utilities to update and check the status.

    FTP://ftp.HP.com/pub/SoftPaq/sp76501-77000/sp76975.exe

Maybe you are looking for