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!

Tags: NI Software

Similar Questions

  • 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

  • NEITHER 9870 Serial Port Communication

    Hello

    I have the module 9870 serial rs232 on 9073 cRIO chassis. I have watched the series loopback example, added to my project, changed the entry node to point to the serial port on the right. It works fine when I use a closure connected the cable to the serial port.

    However, when I connect the port to the serial port on the back of my pc (using the cable series of woman to woman) and run the "Serial Loopback DMA Rd (host) .vi" I see no data being sent on my PC com port hyperterminal. Also if I type any character on hyper terminal I see their receipt by the LabView program.

    Why is this happening? that is, the example works well with a loopback adapter and not when it is connected to other serial port?

    Any help will be appreciated.

    concerning

    Bastien

    Hello

    You have all the details on the cable you are using? You may need a null modem cable.

    All in hyperterminal settings the cRIO? IE: Baud rate/parity/start and stop bits etc.

    Could you take a screenshot of the hyperterminal settings and the windows serial port settings? Could you attach your cRIO VI?

    Thank you very much

  • question about serial port

    Hello

    I need mark on the serial port to receive some characters (it is 66 bytes). If I get this characters then I will have to receive the next 1000 bytes. These 1066 total bytes are gathered in the port. I have a problem with timeout and read series VISA buffer property. Kindly tell me how can I approach.

    Thanks in advance

    Hi cedric,

    have you seen the delivered examples (Basic and Advanced Serial write and read)? You can use a loop and read the property "bytes to the port. Here, you can count the number of bytes already, you have received. When you have your data, you can leave the loop, depending on what you need then.

    Mike

  • Serial port communication

    Hello world

    I have a very disputed project.  What I have to do is to transfer a text file from a computer to my laptop with some constraints:

    1. The OS of the computer is just Windows XP Professional (not .NET, no programming language)
    2. It is not allowed to install software or this (working only on this computer) computer programming languages
    3. Some USB and RS-232 ports are available.
    4. No external storage device can be used (e.g. USB stick).

    So, I wonder if there is a way to do it.  For example, we succeed in VBScript or JScript that are available in WIndows XP?  We can transfer the file text on serial port or something (I don't know).

    I'd appreciate if someone could give me some suggestions.

    You can get help with the scripts here: http://social.technet.microsoft.com/Forums/en-US/ITCG/threads

  • Wire bachground for Bluetooth Serial Port Communication

    Hello

    I want to make a request which should be as a background thread to run after that BB has been activated.

    I tried something:

    1. I used BluetoothSerialPortListener and as a normal application. After I chose the menuitem, it begins to listen to the bluetooth serial port. When the data are arrived through the port, it extracts the data and write a response to the sender. Then he out the value and display it on the screen, where I used an object of class screen. But, after posting a value, it cannot display the value came second. I tried, what the old screen pop fist, then puschup the new screen. But it does not work. How can do it, when the new value, they can be diaplayed on the screen?

    2. then I did the BluetoothSerialPortListener in thread and used the autostart flag such as:

    Public Shared Sub main (String [] args)
    {
    If (args! = null & args.length > 0)
    {
    if(args[0].) Equals ("autostartup"))
    {
    Starting the device we want to start the thread SycareBluetoothPortListener
                 
    sycare_synergy ss = new sycare_synergy();
    }
    }

    This time around the Listner should take only data is arrived and then sends a response to the sender. But after downloading, BB has always shown that he was unable to generate a new object of the thread class and the thread could not be started.

    Someone tell me, how can I fix it and make it possible, that after each new start of the BB, the bluetooth serial port can always in the background arrivals data receive and display automated according the data arrived?

    Thank you in advanced and Merry chiristmas!

    Monternet

    1. update the user interface.

    It is possible that you are trying to do.  In fact, you don't need to replace the screen, you should be able to simply update a field on the current display of data.  As an example of a background thread to update the user interface, please see the code of httpdemo.

    2. Thread context

    When you say things like:

    "that he could not generate a new object of the thread class.

    It would be much better if you can cite exactly what makes the Blackberry.  In this case, I assume that it has generated an Exception, so the Exception and the associated detailed message that Exception must be included when you report a problem like this.

    In any case, it is possible to implement a background task in the way you need.  Search the Knowlegebase for articles that talk about background Applications and display updates to the user interface of the task in the background and auto-start applications.  There are a few pieces of confusion to this process, so there are a few to get your head around, but I think that everything is in the articles.

  • universal serial port communication, I have no idea

    Hi buddies! I'm trying to think about how I can configure VI writing a message on this subject and if possible send it via the USB port on the USB device.

    Please help me with ideas on how to get there as I'm new to LabVIEW

    Hi precious1,.

    What USB device you are trying to use?  What is your application?  How do you control the device?

    As a first step, take a look at the white paper OR to the following address: USB Instrument Control tutorial

    It should help you to configure your USB device for use in a LabVIEW VI.

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

  • 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

  • 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

  • HP DC7700: Serial Port PCI and simple Communication controllers pilots missing in HP DC7700 windows 7 (32 bit)

    PCI\VEN_8086 & DEV_2997 & SUBSYS_2801103C & REV_02
    PCI\VEN_8086 & DEV_2997 & SUBSYS_2801103C
    PCI\VEN_8086 & DEV_2997 & CC_070002
    PCI\VEN_8086 & DEV_2997 & CC_0700

    and

    PCI\VEN_8086 & DEV_2994 & SUBSYS_2801103C & REV_02
    PCI\VEN_8086 & DEV_2994 & SUBSYS_2801103C
    PCI\VEN_8086 & DEV_2994 & CC_078000
    PCI\VEN_8086 & DEV_2994 & CC_0780

    Experts in the House should please come to my rescue.

    I just upgraded my Hp DC7700. I was able to get all the drivers except for SERIAL PORT PCI and PCI SIMPLE COMMUNICATIONS CONTROLLER missing. above are the two missing pilots hardware ID

    Hello:

    There is no W7 drivers for these devices.  You must use the Vista drivers and if auto installation does not work, you will need to install the drivers manually by navigating to the folder of the driver that was created when you ran the file from the device in the Device Manager (browse my computer for driver software).

    This package contains the driver Intel Host Embedded Controller Interface (HECI) for access to Active Management Technology (AMT) initiative of the Intel Digital Office for rated desktop models and operating systems.

    FTP://ftp.HP.com/pub/SoftPaq/sp34501-35000/sp34743.exe

    This package contains the Intel (LMS) Local Management Service and Serial - over - LAN (SOL) support for the technology of Directors Active (AMT) under the Initiative of digital office Intel for the supported desktop models and
    operating systems.

    FTP://ftp.HP.com/pub/SoftPaq/sp34501-35000/sp34744.exe

  • HP DC7700p PCI SIMPLE COMMUNICATIONS CONTROLLER AND PCI SERIAL PORT

    Hello

    I have a HP DC7700p Office for work that is missing, PCI SIMPLE COMMUNICATIONS CONTROLLER AND PCI SERIAL PORT DRIVERS for WINDOWS XP PRO MISSING. CAN SOMEONE HELP ME TO DOWNLOAD THE DRIVERS. I ' M RUNNING WINDOWS XP PRO ON THIS MACHINE.

    THANKS IN ADVANCE

    SERIAL PORT PCI: PCI VEN_8086 & DEV_2997 & SUBSYS_2801103C & REV_02\3 & B1BFB68 & 0 & 1 B

    PCI SIMPLE COMMUNICATIONS CONTROLLER: PCI VEN_8086 & DEV_2994 & SUBSYS_2801103C & REV_02\3 & B1BFB68 & 0 & 18

    Hello:

    Need the driver of the amt for devices...

    http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?sp4ts.oid=3232101&spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dir_46768_1%257CswEnvOID%253D1093%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken

  • dc7800mt: dc7800 10 Windows 64 b PCI Simple Communications and PCI Serial Port drivers missing

    Can't seem to find the drivers for a dc7800 upgraded to Windows 10 64 b for PCI Simple Communications Controller and PCI Serial Port devices.  Any help would be greatly appreciated.  Paul_Tikkanen, are you still there?

    Hello:

    Yes, I'm still here, and Yes, I know what drivers you need...

    You need this for the PCI of Simple Communications controller:

    This package contains the device driver Intel Active Client Manager Host Embedded Controller Interface (HECI) for desktop models and operating systems supported.

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

    PCI serial port:

    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

    And let me give you a bonus tip... Install the audio driver Soundmax ADI W7.

    I found that works much better than W10 installed.

    You install it, then select multistreaming in adi Control Panel, restart again and go to manage audio devices in the Control Panel, and then select the PC speakers, but of course install the W7 audio driver is optional, and it is up to you...

  • Serial port PCI and PCI Simple Communications Controller

    Hello!

    My computer OS is Windows 8.1.

    I just shearch something and I found that... I don't have serial Port PCI and PCI Simple Communications Controller. (Unintalled)

    Serial port PCI-> VEN_8086 & DEV_29B7 & SUBSYS_2819103C & REV_02\3 & 21436425 & 0 & 1 b

    Controller PCI Simple Communications-> VEN_8086 & DEV_29B4 & SUBSYS_2819103C & REV_02\3 & 21436425 & 0 & 18

    Sorry for my English. But can anyone help me?, where I can download these files.

    Hello:

    Here are links to the drivers you need...

    Install PCI Simple controller Comms

    http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?sp4ts.oid=3459243&spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dvc_78668_1%257CswEnvOID%253D4059%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken

    Install PCI Serial Port:

    http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?sp4ts.oid=3459243&spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dvc_78665_1%257CswEnvOID%253D4059%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken

  • 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

Maybe you are looking for

  • Pavillion DV7 - 3188cl: Admin password BIOS

    Hello I just bought this laptop but does not reach the BIOS to change boot due to an admin password options. Can anyone help please. The code that I get after three invalid attempts is Disable the system 69403154 Thank you for your help.

  • Takes the right equipment (cord) to connect my new thin laptop HP Pavillion to older projectors.

    What equipment is needed for my HP Pavilion laptop, phsically old monitors? my computer does not have a place to plug the cable of type cells. Is there an adapter?

  • R217TU: Driver problem

    Hey... I have a laptop HP 14 R217TU running Windows 7 64 bit... A device driver is not working properly... It's "Intel engine reliable performance of interface"... (attach a photo) I tried the driver that came with the laptop... Also tried the driver

  • I can't iTunes to work with windows

    Every time I open iTunes I immediately get a message that it has stopped working and windows is looking for a solution to the problem. Windows never finds the problem, and iTunes is closed. I have reinstalled iTunes, check for a solution to the probl

  • Try to identify the 2000Mo used on my hardrive xp by "JMRE 2000: c:\program files 1-3 project?

    I ran out of space on my hard drive and I need to clean it.  That's what I see: two entries: JMRE 2000 1026 MB C:\Program files Project 1 JMRE 2000 1035 MB C:\Program files project 1 #3 What is c? I can never remember putting this on my hard drive.