Detecting Completion of a Serial Tx operation.

We have a problem that has been driving us crazy for some time.
We need to know when the serial port on a PC has completed transmission of all the characters in its buffer. We are using LabVIEW 6.0.2 and Windows 9x & 2000.
In the past we have solved this by actually looking at the correct register bits in the UART but this is not really a good solution and its quite difficult in an NT/2k environment.
So is the any VI out there that can tell us this info or does anyone know of a Windows SDK call that we can use to interrogate the driver ?
Regards
Tim

Tim,
Have you looked at the "Bytes at Serial Port.VI"? LV 6: [Functions > Instrument I/O > I/O Compatibility > Serial Compatibility]
It provides you the number of bytes currently queued in the serial port buffer. If this VI fits your need, you could, for example, use its output so that when bytes equals 0, you know your complete.
Good Luck with it, Doug

Similar Messages

  • Auto start and complete of SFC at an operation

    Dear Experts,
    I have come across a scenario where the SFC's need to be started and Completed automatically without a POD, is it possible without ME customization?
    Please help.
    Thanks, Eshwar

    Hi Steve,
    Thanks for the quick reply.
    I have a ME routing with four operations. I would be starting and completing the SFC at first operation using POD. For second and third operations I dont want to use the POD for SFC start and complete, this should be done in background may be at POST_COMPLETE of first operation. and If I go to fourth operation , my SFC sholud present at this operation.
    Give me some insights on how to achieve this in ME.
    Regards, Eshwar.

  • Serial not detected, and cannot register serial.. .need a manual

    Hi! I am new to the IPod World... now, I have a big problem: if I want to fetch a manual from the IPod webpage, I am asked for a serial number. Everytime I enter the one on the back of my computer: 2CD5240X0R, it does say that this number is not a valid serial number. If I use the automatic detection, , it says no serial found.
    If I want to register this Ipod with apple, it says that this serial number is not valid ("Enter a valid serial number). [I even tried it with "-1" as suffix)..
    Now, I would need a manual for this Ipod, and since my serial number is not accepted and I do not know which modell it is, not even the generation - within the Ipod, when I ask for the about, it says Modell PS492AAABA - how can I proceed? It has a color display, 30 GB, can load pictures, and the serial is as suggested.
    Can someone tell me what to do? I do not know how to contact apple.. and I do not know how to manually find out what Ipod it is (5th gen? or some other)...
    Many thanks!
    HP   Windows XP   IPod

    See if this helps: Identifying different iPod models

  • My iMac computer was recently worked on and in the process it was completely stripped down and new operating system installed.

    My iMac computer was recently worked on and in the process it was completely stripped down and new operating system installed.
    OS X Yosemite version 10.10.1.
    After this trip to be serviced, when I try to open Photoshop, I get a message "Licensing for this product has stopped working".
    At the bottom of the error window,  Error: 150:30
    If you continue to see this message after restarting your computer, please contact Adobe technical support for help.
    Any help resolving this issue would be greatly appreciated!
    Thank You,
    joe

    Error "Licensing has stopped working" | Mac OS

  • Detecting complete loading of document in IE

    I'm opening a pdf document in IE.
    I would like to have a feedback to me when the pdf has finish loading completely.
    Does anyone know that after IE has ask pdf plugin to handle the document, would the plugin have some feedback to the browser to signal that it has completely loaded the document?
    I'm told that this is a plugin-specific issue.

    Hi all,
    1) I would like to detect whether the java-plugin of the internet explorer is enabled (i.e., Scripting Of java Applets is activated or not) using Java Script.
    Within firefox this could be easily done using the Java-Script "navigator.javaEnabled" method.
    Unfortunately, this method does not work in IE.
    Moreover, I tried the "pinlady" detection (http://www.pinlady.net/PluginDetect/) as well as the "deployJava.js" (http://download.oracle.com/javase/6/docs/technotes/guides/jweb/applet/applet_deployment.html) "libraries". Both "libraries" failed to determine the activation status of the Java plugin correctly for IE.
    I can not believe, that there is no way to detect the activation status of a Java plugin within IE correctly ...
    2) Moreover, I analyzed that within Internet Explorer (IE) an applet starts (i.e., the init() & start-methods are invoked) even if the Java plugin is disabled / deactivated. In my opinion, this is not a desired application behavior. For example, using Firefox the applet does not start when the Java plugin is diabled.
    Can anybody explain this behavior or give me some more information?
    I really appreciate your help!!!
    Kind regards,
    tbeer

  • Detect input signs at serial port

    Hello,
    It is posible using Lingo detect input signs at computer serial port??
    Thanks for your help

    This is certainly possible - check the Mile High Table for xtras that can help with serial communication

  • FLV Detect Complete Question

    I have an FLV on layer 3 of frame one with a frame stop
    action on layer one. On layer 2 I have a button that when pressed
    starts the FLV and also sets the visibility of the button to false.
    My question is how can I get the button visibility back once the
    flv is completed and rewinded? I'm guessing there is some type of
    actionscript to detect the flv completion. Any help is appreciated.
    Here's the code I'm using:
    on (release) {
    _root.myFLV.play();
    _root.play_btn._visible = false;

    You can use metaData to get the duration and create an if
    statement that wait until the duration is reached, then sets the
    visibility. Start here:
    http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00001039.html
    Hope this helps! :)

  • C3PO - Scanning a Folder & Detecting user's "drag-and-drop" operations

    We are using Novell C3PO to export messages in XML format when the user
    press a button at the GroupWise Client message window, and this was done to
    provide an integration with a ERP software (from a very famous company here
    in Brazil), so the user reads his emails and can click this button and open
    the ERP ORDER SCREEN with all costumer's data filled in, that increases the
    productivity of the Sales Departament.
    REsuming, the main porpouse is to collect information of each email to open
    the Order Screen of the ERP system, without having to type everything again.
    The costumer wanted to go on and get several messages at the same time, that
    was stored on a GroupWise Folder, using a simple redirection rule and this
    was done using Visual Basic (called here "looking process"), that looks for
    messages into a specific folder in the GroupWise Client called "_Send". So,
    convert that messages to XML and then move to another folder called
    "_History".
    Now we can drag many messages at the same time to the folder _Send and then
    they will be converted. It is working very well. The problem is that the
    GroupWise Client computers are becoming slower because of the "looking
    process" (that VB application). We used VB because we could not find a
    process or a feature in C3PO that selects several messages at the same time
    and read them one-by-one.
    QUESTIONS :
    1- Can I have this "Looking Process" using C3PO tools ?
    2- Is there a way to detect a "Drag-and-Drop" event in the GroupWise Client
    with C3PO, so I would not need to scan those folders ?

    Jose Calil Nassur wrote:
    > We are using Novell C3PO to export messages in XML format when the user
    > press a button at the GroupWise Client message window, and this was done to
    > provide an integration with a ERP software (from a very famous company here
    > in Brazil), so the user reads his emails and can click this button and open
    > the ERP ORDER SCREEN with all costumer's data filled in, that increases the
    > productivity of the Sales Departament.
    > REsuming, the main porpouse is to collect information of each email to open
    > the Order Screen of the ERP system, without having to type everything again.
    >
    >
    I've been doing something similar, but rather than creating a new
    message, I've been using custom properties
    on each mail, so as they arrive I add two tags, one with a tagID, and
    the other with metadata. I then write
    searches for each folder returning only the message that are yet to be
    tagged. Nice and efficient, written
    in C#. I've run over my big mailbox (2GB) and the box hardly raises a sweat.
    Sincerely,
    Adam Bradley
    Identity Concepts
    Mobile : +61 419 637 518
    email : adam_j_bradley \at\ identityconcepts.com.au
    irc: #nidm on freenode.net
    Web : http://www.identityconcepts.com.au

  • Serial VISA operation does not work while PC Software does

    Hello everyone.
    I am using LabVIEW to communicate with a control box via VISA Serial. I can communicate with this control box in most areas just fine, like the data monitoring function which I use without any problems. The one thing I'm having trouble with is calibrating the unit. Calibration is done by opening a binary file and transferring the data 16 bytes at a time over serial using a 16 byte write command, which has this structure: [Command, in this case "P"][2 byte address starting at 3800 HEX][16 bytes of data][1 byte checksum]. I am calculating the checksum correctly, and documentation says that the box should respond to any command within 100 milliseconds.
    When I  attempt to do this, the box responds with an E several times (E is supposed to mean checksum error, even though I'm correctly calculating it), then stops responding to anything at all. The weird thing is that this box comes with software that can calibrate it and that software has no problems with it!
    I tried using SuperMon to capture what the software sends over serial and compare it to what I send, and from what I can see, it sends the same data that I do, only it works and mine doesn't. I also tried using SuperMon to manually send the calibration one 16 byte write function at a time, and it seems to have the same problem.
    It seems because their software works, I must be doing something wrong. Here's a screen shot of my code that I'm trying to use. Any help would be greatly appreciated!
    Solved!
    Go to Solution.
    Attachments:
    upload_calibration.PNG ‏23 KB

    lukepike wrote:
    Could you explain what you mean a little more? I never thought about that, I tried byte-swapping the whole command string right before I wrote it to the port, that didn't work. I also tried just byte-swapping the data only and nothing else, still no go.
    I had another look at the NI Spy data, and it seems that some hex values are unprintable, maybe this is why they don't show up in the ascii part of the property window.
    That's exactly what I meant.  Hmmm, the serial port is config'd the same way it is for the parts of the code that work?  Maybe there's a framing issue so the data is offset and the UUT sees it as garbage?
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How do I completely delete a Serial Number from a PC?

    We developed a LabVIEW (& TestStand) application for a client on hardware
    we
    purchased for them.  We used our Serial Number to activate LabVIEW and
    TestStand, but now want to strip the Serial Number off so that we don't
    give
    our license to our client.  I
    have Deactivated the license, but if I test it by clicking "Activate," our
    Serial Number shows up by default.  Is there a way to delete all traces of
    our
    Serial Number from the PC, so that our client can't just activate it once
    we
    ship them the hardware?
    Thanks,
    Jason

    http://digital.ni.com/public.nsf/allkb/6BF2C6CF85611A7B86257107005DEEFA?OpenDocument
    "...you can simply delete the activated license file. NI license files are stored in the C:\Program Files\National Instruments\Shared\License Manager\Licenses directory. If you delete a license file and then in the future need to activate and use the product again..."
    Hope this helps!
    Nick B - NI Intern

  • Detecting Data has left serial buffer

    I'm developing a vi using Labview 5.1 to control an RS 485 network where the PC running labview or a built application polls a series or devices which then reply.
    I'm using In Port to check when the vi has finished transmitting and this works on the PC using to develop the application but when the application was built and put on the pc to be used for testing then I always read nothing on the port.
    The application has been tried out now on 5 machines, 4 running NT 4 and 1 running win 98 and it fails on two of the NT machines.
    The only thing that relates the successful tests is that the machines all have full versions of Labview on them as well as the run time engine and the 2 that "failed" have only the r
    un time engine.
    At the moment the only solution I have is to stop checking this and add in a wait for a few milliseconds after writing to the port but this obviously isn't the best solution.

    You've probably already tried this, but I can say it anyway;
    I've had a similar problem once, except with NI-DAQ communication, and it turned out that I had forgotten to include the nessecary drivers with either the run-time version or the application builder(it's been quite some time, so I don't remember which one). Anyway, if you haven't tried this, I suggest you make sure you have all necessary drivers included in the executable (or run-time engine) and see if that helps any.

  • How to detect signals from serial or parallel ports?

    Hi everybody!
    I'm developping a p.o.s. app, and I need to detect the printer status (serial or parallel), but I couldn't find the way to do it (I'm using Text_IO). I know about using a C program, but I want to find a simpler way.
    Is there any command or trigger in Forms 6?
    Thank you for your help

    Hi
    In your setup you have a ADAM 4250 RS232/485 repeater talking with 7 instruments in a network. Each instrument have a unique address, and you can only address 1 instrument at a time. If you need more speed you have to insert more ADAM 4250 units in your system and more RS232 ports on the PC. Identical ADAM instruments may receive commands over the same communication line, but transmit data on a unique communication line. You can not use the parallel port in your setup at all. This is not a Labview problem but a hardware problem. If speed is critical maybe the Ethernet I/O Modules: ADAM-6000 series are better for your setup 
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • PM order status remains as PCNF even after completion confirmation & TECO

    Hi,
    For some of the PM orders we created, the order status is till in PCNF and operation status in MCNF.
    We have done the following also
    1) Completion confirmation done for all operations
    2) "Fincal confirmation" and "No remaining work" tabs checked for all operation confirmations
    3) TECO is done
    But still the operations are in mCNF-Manual confirmation status and hence the order is is in PCNF.
    Please let me know how to change the order status from PCNF to CNF.

    Please check any Sub operation confirmation is pending or ? if so please do ( IW41 )
    Riyaj
    Edited by: riyajmaner on Feb 24, 2012 5:08 PM

  • HT1420 If someone stole my laptop how can I lock it so they can't get in? I have my serial number and part number

    My ex took my MacBook and signed me out of everything he is logged into it with his Apple ID. I have proof of purchase how can I lock him out of it completely with the serial number and everything on the receipt I have?

    You cannot

  • Fan is not operating

    Dear Sirs,
    I'm from São Carlos / SP / Brazil and I bought a TouchSmart Notebook HP ENVY 17-j041nr in Orlando at the Microsoft Store in Millenia Mall 30/10/2013.
    However, the unit is experiencing the following error:
    "The system has detected the cooling fan is not operating Correctly.
    Continued operation is not recommended and may cause unpredictable behavior That Could Result in random shutdown, possible data loss or system damage. The system will shutdown in 15 seconds. To Prevent shutdown operation and continues operation, press the Enter key now.
    System Fan <908> ENTER - Continue Startup "
    The unit is still under warranty according to data from HP:
    HP ENVY TouchSmart 17-j041nr (response from the HP website: The following information is provided for your product)
    Warranty Status: Covered under warranty Warranty end 10/30/2014 (YYYY-MM-DD) Date
    I would like to know, please, what to do?
    Best regards,
    Edvaldo Luís de Almeida

    Hello Vadoalmeida,
    Welcome to the HP Forums!
    I understand you have questions about warranty service for your ENVY 17-j041nr. The good news is that HP has a Global Warranty, but their are some restrictions. The Global Warranty basically means your product will receive warranty coverage based on the available coverage in your current location. For more detailed information you can view the Global Warranty and FAQs page. 
    For more specific information about the error you have you can view this document specifically for System Fan (90b) error message on startup. This document has a list of steps you can try before contacting support for service.
    If the document above does not help you resolve the issue I would suggest contacting phone support for service options. You can contact support in Brazil at this phone number: 0-800-709-7751 - Support is only available in Portuguese for this region.
    Hopefully this helps!
    Please click the "Kudos, Thumbs Up" at the bottom of this post if you want to say "Thanks" for helping!
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    The Great Deku Tree
    I work on behalf of HP.

Maybe you are looking for

  • Safari gives up loading images too early

    Hi I have noticed that Safari (currently I am using 3.1.1 but I had noticed this behavior on earlier versions as well) usually gives up on loading images too early. I have a 30Mbps internet connection and also in Firefox and Opera I do not experience

  • Cannot open Dng files

    Hi! I'm trying to write a script which opens .dng files and then after a few changes, saves them as .jpeg. I'm working with CS2. I've tried using open with "RawFormatOpenOptions". If I do not initialize the fields inside this struct, it says it misse

  • Syntax for PreparedStatement/MySQL

    I need to read a MySQL data table using a field input from the screen. I do a field.getText() to read the data in, then try to substitute that value into a PreparedStatement. But every time it runs, I throw an SQLException that tells me the syntax of

  • Safari for Windows - Autofill Problems

    I recently downloaded Safari Beta for Windows. After deleting the history and cache, I was still unable to delete the AutoFill form for websites such as the Google Search (google.com). Is there anyway I can delete theses? The 'Edit' button for 'Other

  • Searching with sherlock

    I'm not sure if this is the right place to ask this question. Is there any way to add searchable places to the sherlock internet channel? Right now I have about, best site 1st, looksmart, lycos. My son used google instead of sherlock and the search c