Bytes to Port stops on maximizing the window

LabVIEW for Windows 32-bit 2012SP1f4

Short history: Any use of bytes of VISA at the port will stop for about 260 milliseconds each time that any window in the same application is maximized or minimized.

I'm working on an application that requires a connection series to transfer data acquired with a very low tolerance for discontinuities due to the lack of timestamp and small buffers. The IO series runs in a dedicated VI configured to run in the runtime system DAQ, with time-critical priority, but whenever one of the Windows GUI of the application is maximized/minimized what causes a disruption that is very important in the IO series and continuity of data collection gets broken.


Here's an example where I stripped the problem to a minimum and measdure the delay time as it happens (the spikes on the graph). In this case, will tell you that MISTLETOE has too much coupling with the measure, but it is not the case in the actual code, and there is no difference in the effect then:

The funny is that I can point the GUI in a number of ways (scaling heavy GUIs manually on trips for example), but no effect is visible then. Only with minimization/maximization (the first is the worst).

I tried to find info on this here at, as it's something I expect others to have seen before, but have not found.

Is this expected behavior? "Property nodes run in GUI" - type of thing, but VISA-properties? There is no other solution if you need to get the number of bytes, not there...? I could try the VISA-free alternatives that are out there, but it would be a pretty big rewrite at this time, with possibly of other weaknesses...

To minimize/Maximaizing, Windows did a lot of things under the hood, among other things by making a so-called Cup of memory size. This means that Windows will be the page on memory pages that have not been used for some time, that appears in the Manager of tasks like a massive fall in the used memory. To work correctly, Windows should basically freeze most of the processes so it can mix with memory under his feet, without application running in a dead end of sorts. It is likely that not only the bytes to Serial Port is affected, but also other functions VISA, but at least it's a try. Maybe NOT only managed to keep most of the VISA pilot unlocked here, but the bytes to serial port must call in the Windows COMM driver to do its job properly and that could be a place were Windows will block the process but cut his memory.

So my first try would be to try with simple functions of VISA, without the use of bytes to the Serial Port. Bytes to the Serial Port is in any case in 99% of cases the wrong function to use. VISA has much more powerful functions with the mode of endpoints on the operation of reading or time-out. Properly used, they are bytes to Serial Port not only unnecessary in most of the cases, but also the top beat the hand in performance. The only case where the bytes to Serial Port should really be necessary is when you try to implement a Serial Port Terminal type application.

If you find that the culprit is in fact only the bytes to Serial Port rewriting your code to use simple VISA read with operation of character good timeout/termination to resolve it. If other functions VISA will also be blocked (which I think it highly) the only solution is to separate your task of communication in its own executable file to separate it from the user interface (or turn off the option to minimize the front!).

Tags: NI Software

Similar Questions

  • USB ports no-opperational in the Windows 7 environment, does not start mode command line safe

    Quick description: experienced difficulty trying to reformat a HD problem. It has been suggested that I have download the diagnosis of the manufacturer. Did. Restarted the computer as required to run the new program. After reboot, no USB port work Windows. Considering that all my USB inputs, it is extremely annoying. Input devices still work on other computers and still work during the start upward (before windows), also does not open in safe mode with the command prompt.

    I tried to reformat a LaCie HD that was previously used for a Mac for PC usage. Gave me a code 43 error and a problem code: 0000002B. Had a bad"block" in the HD somewhere read that I should try to use the manufacturer diagnostic tools to check the HD on.» Downloaded the "LaCie Update Tool" and installed it. It took a reboot. After the reboot, any USB devices worked. (Will begin another thread on the HD as soon as I have this problem.)

    Tried to restart in Mode without failure. Then the Safe Mode with the command of the DVD prompt. (However, I'm not 100% sure that I'm loading from the DVD, I couldn't find a good answer on how to do something so basic.) Always seems to load in the window 7 - always end upwards the newspaper account on screen - certainly no command prompt.

    The keyboard and mouse work on other systems and the keyboard works fine before the Windows 7 screen (the selection of mode that starts in) so I'm pretty sure that it is a Windows 7 problem. Can't really get in the error codes that I can't enter anything now or move the cursor at all. (I'll try to borrow a non-USB keyboard and mouse).

    After a reboot when it asks me what I want to start the computer in safe mode or normal windows 7, loading the drivers, it stops at:

    \windows\system32\DRIVERS\CLASSPNP. SYS

    I don't know if this is normal or the system stuck.

    I tried a manual reset of the motherboard and deleted manually the CMOS on the motherboard did not help - but don't expect really.

    I think I need to run a disk check / fix from the command prompt, but I can't even at the command prompt to the top.

    Thanks to anyone who takes the time to answer, a lot of satisfaction in advance.

    My system:

    Windows 7 64 bit

    ADM Phenom 955 Black Edition Quad

    ASUS 890FXA-UD5

    Microsoft USB wireless keyboard and mouse

    Less relevant stuff: ADATA DDR3 1600 G XPG 2 X 2 GB, Sapphire Radeon 4670 1 GB, Western Digital Caviar Black 640 GB HD, ASUS DVD/CD drive (DRW 24B1st) Corsair TX 750 W

    The Repair Mode command prompt supports USB devices. Here is how you get there:

    1. put your BIOS so that it uses the DVD drive as its primary boot device.
    2 start the computer with your Windows 7 repair CD.
    3. press a button if you are prompted to start from the DVD.
    4. Select repair when prompted.
    5. Select the keyboard language when you are prompted.
    6. When you are prompted, select command prompt.
    In step 2, you can also use the Windows 7 installation DVD. The subsequent steps are similar to those above.

    The process described above is independent of everything that is on your hard drive. If your USB devices still do not work then you probably have a motherboard problem. If it is a desktop computer then you could by a 4 port USB card.

    If you get an account and password for the boot process then you dΘmarrez not from the CD/DVD. I've seen a number of messages in which people reported that they were unable to boot from the CD/DVD drive. Here are the most common reasons for these failures:
    -L' poster neglected the prompt to press a key to boot from the CD/DVD drive.
    -The CD/DVD boot was not a boot disk or was damaged. Use it on another machine has confirmed this.
    -Some BIOS setting was incorrect. Start with some other boot CD/DVD (for example here: confirmed it.
    -The CD/DVD drive has been damaged or is unable to boot from a boot CD or DVD.
    -The machine has a hardware problem (for example, a motherboard problem) which prevents start in any mode.

  • Maximizing the window

    I am trying to run two .vi at the same time, one who reads the voltage with a DMM and another who performs a calibration program. I would like to have the DMM vi visible at any time because I need for calibration. Whenever I run the calibration vi it maximizes the window to stop me to read the results on the other program. The calibration that VI has tab control and two/three button dialogue which is what I'm guessing enlarges the window. If there is a way to prevent what would be extremely beneficial. I'm pretty new to this so if I forgot something I apologize in advance. If anyone has any ideas it would be great.

    Thank you


    "By pressing Ctrl + i or navigate through the ' file > VI properties ' menu and you should find catergories called position of appearance of the window or the Runtime. This sounds like it should be the most likely cause of your problem. Did you inherit these screws to someone else?

    You should be able to change the appearance of the VI, or what it when it is run (maximize, minimize, nothing,...).

  • Satellite A100-049 stops loading at the Windows loading screen

    Unless I opened fully open/almost completely the cover on my Toshiba Satellite A100-049 it will always freeze on screen Toshiba Logo black (first one you see). She has completed half of the blue progress bar that runs along the bottom of the screen. I need and then turn off the button and once again, it becomes work.

    The laptop is only 2 weeks old nine. It's especially annoying since it prevents a scheduled backup to wake the portable computer from Hibernation. I have to leave it on or leave the lid open permanently.


    It seems that the title has been changed from the one I posted, nothing wrong with that, but it is no longer accurate. It keeps loading the Windows loading screen, it freezes "before" that date. The Toshiba Logo POST screen, very first, you see when you turn on the laptop.

  • Wireless use USB ports locks and prevents the Windows shut down

    Hi all. Faced with this one.

    Computer is the laptop, HP Pavilion DM4 - 1150ca. 4 GB of Ram, 150 GB HD

    OS Win 7 Home Premium 64-bit, SP1 and latest updates installed

    Problem: I have 3 ways to connect to the internet: 1 Dongle USB (Device Manager calls "Remote NDIS based internet device for sharing". No problem connecting to the network and to the internet with this device. 2. built in WiFi adapter, "Intel Centrino Wireless - N 1000 and 3. External antenna for high power USB and USB «Realtek RTL8187» adapter Medium 1 and 2, I can normally connect to the network, get decent speed but he declines quickly and then to a random period, usually within a few minutes, I lose my internet connection, and finally my network shows disconnect icon. At this stage all 3 of my USB ports are locked up, removal of the WiFi device does nothing, don't disconnect sound and no USB device is recognized if I try their connection. In addition, Windows will not stop. I get a "shutting down" screen but it stays that way until the expiration time and finally restarts, screen asking if I want to start normally or in safe mode.

    Action taken:

    Several online sites checked and tried solutions including:

    RTL8187 uninstalled and reinstalled several times

    Uninstalled and reinstalled HP wireless several times

    Deleted (Device Manager, see all) entries while grayed, unused network

    So far, no joy, no change. Anyone have any new ideas? Thanks for any help

    Hi Raven,

    Do you have third-party security programs installed on the computer?

    Basically, if the internet works in safe mode and not works in normal mode, not applications or third-party security programs can be in conflict with the drivers from the internet.

    As a solution, I suggest to uninstall the anti-virus program and check if it works in normal mode.

    Warning: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    Answer with the results so that we can help you even the question.

  • How to fix unresizeable maximized the window the addon

    I'm on Firefox Mac v42. I followed some instructions on resizing windows on El captain and now I have a window of the addon for "DownTheAll" which is maximized to full screen and has no control to resize it.

    I can move it, but just not resize. Uninstalling and reinstalling the addon has not set so I suspect theres a window size setting somewhere in Firefox, I need trouble.

    Before you give up and go through the hassle of creating a whole new profile, anyone got any ideas please?

    When you rename the .json file set. Thank you very much!!!

  • In Vista, you receive the error message "Vandenberg Clyde Punjab Scottsdale Columbia Watertown Hebrides has stopped working" when the windows sartup

    I get this error message when starting windows - the message is:

    Vandenberg Clyde Punjab Scottsdale Columbia Watertown Hebrides has stopped working and I'm not that mean?

    and since i ' v got this message I can't use internet explore properly and when I lick the icon to lunch the internet explore I have a blank page, but if I do a right click on the internet icon one select run as administrator, it works without any problem can someone help me?

    Ahmed atta



    Please let us know if you are facing problems when you use Internet explorer on the computer and is the fixed startup error number.

    Use the method to send the snapshot to the question below.

    Use capture tool to capture screenshots

    Use SkyDrive download collected files and after shot/screenshot.

  • 6.4 Lightroom on my Windows laptop, 10, stopped suddenly display the window to develop.  The thumbnails are still accurate, as well as the library and Print modules.  Develop if I choose side-by-side, the original is displayed but the after is a piece of

    6.4 Lightroom on my laptop Windows 10 abruptly stopped showing images developed in the modulel to develop.  The photos are always present.  When you use the split screen before and after, before it's normal and after shows a blue solid Panel.  This is true for all images, old or new.  I have reset all default settings without effect.

    Uncheck the option preferences > performance > CPU graph use.

  • CS 3 suddenly stop working on the window 8.1 pro

    I used it for many years without problem.  All of a sudden yesterday... it says my cs3 runs into program and forcing me to uninstall and reinstall CS 3.  I did exactly this and when I reinstall, only Acrobat 8 pro has been installed successfully, all other programs (photoshop cs3, illustrator cs3, etc.) encountered an installation error.  I tried to install 4 times without success.  Each time the same error!

    Can someone please?

    CS3 is really old and may not be compatible with Win8... try the ideas below

    Right-click on the EXE to install, and then select a compatibility mode in the options window


    Run as Administrator to assign FULL permissions can help... said yet, but sometimes it is necessary for all Adobe programs (this is same as using an administrator account)

  • USB ports stopped working after the installation of the HP dv6-1053d, Win 7 printer.

    Removing the battery, restoration and by default the bios have been made, but no luck.

    Looks like you have tried all the stuff, all I can suggest is to backup your data and perform a recovery of HP.

  • When I try to use the Windows updates to and the following error message: Windows update cannot currently check updates, because the service is not running

    have tried to use windows update and get the following error message: Windows update cannot currently check the updates, because the service is not running. You may need to restart you computer. I rebooted several times. Any help would be greatly appreciated as I am not very computer

    Original title: update windows

    Solution 1:

    Try this:

    Solution 2:

    You can try to stop and restart the Windows Update Service (wuauserv). Open a command line window (run as administrator) and enter the following lines:

    net stop wuauserv
    regsvr32 %windir%\system32\wups2.dll
    net start wuauserv

    If this does not help, try Microsoft Fix It service to reset your Windows Update components:

    I hope this helps.

  • Problems with the Windows 7 updates

    I have problems with the updates of Windows 7.

    The show just download but stay at 0%, even after a number of hours of updates.

    Looks like I have had the problem for a while as I click on the button to download when he says that they are available, but they were not the installation. Since April - the highest numbered download was KBS3149090.

    I tried a couple things from these forums, but they do not work or do not install it.

    I downloaded wu10.diagcab but it does not return an error of 0 x 80070002

    You are looking for takes this mistake me that says stop the update, remove a certain number of files and turn it back to the.      

    He says then try the System Update Readiness tool so I download and install this KB947821 , which seems to settle.

    I try to install the updates but nothings happening - don't know what else to try.


    Windows Update process: July 2016

    I've seen this many lately.  This is what works for me and I did it on a large number of computers in the last 2 weeks.

    1. Change Windows Update settings to NEVER.

    2. Type services in the text box that appears when you click on the globe to start

    3. Select and open the services window

    4. Find and right-click on Windows Update (service), choose stop

    5. Close the Windows Update window.   If she will not close, start the Task Manager (right click on the taskbar) and end of the task.

    6. Now go to:

    7. Download 5 all updates are listed in a folder on your desktop.  Choose the correct column for your computer.

    8. Double-click on and start each one, one at a time.  Don't be surprised if one or more respond with already installed.  It may take a while to process.  This is probably one or more of them will install.

    9. You should not restart after each one ends, if there is more than one installed.

    10. Restart and wait for the Windows Update process to complete and automatically reboot your computer.

    11. Open Manager tasks again and wait until you see the percentage within the reach of the bottom and stay below 10%

    12. Now start Windows Update

      The Windows Update process happens much faster that it would otherwise have.

  • How to stop Auto maximize a window in Windows 7

    How to stop automatic expansion of a window in Windows 7?  I'd rather have 3 or 4 applications open and able to show all the - or at least a section of the window that I can choose.  In Windows 7 if I move a window resized to the edge of the desk she automatically enlarged mode full screen; It is such a waste of time.  I have to stop and resize the window to the bottom once again.

    I don't want the same windows in the same places - I just want to stop the automatic expansion of a window.

    I HAV been looking for an answer - I was not able to find the solution, hope you can help.


    In addition to the foregoing comments, I also wanted to mention that the automatic sizing has held that if the bumps on yourmouse pointer over the edge of the screen.  Being aware of that could make the difference for you and allow you to take advantage of the functionality, while preventing unnecessary sizing.

    Shawn B Keene | Microsoft contributor community

  • problem with the bytes to port to read in VISA

    Hi guys,.

    I'm reading device data using usb - BT dongle. It creates the virtual port and read without problem.

    My problem is the packages to send 428 bytes, inside this block device, I have 400 bytes of data bytes 9 to 409. The first 3 bytes of each block is the same.

    4 45 50 - MEP, they are the first 3 bytes of each block of 428 bytes.

    Okay, if you check the vi I config the visa and sending the data of adjustment of the device, read the answer and it sends the data to start sendding data.

    Well, I try to read each block of 428 and show in a chart.

    The problem is sometimes bytes in ports are 428 and anothers shows 23, 2, 125,... is not continuous 428 bytes each iteration and destroy the data graphic.

    IF I check the chart outside of the main loop, I see the correct graph. Apart from mainvi I collect whole data and separate in 428 blocks, extract the 400 bytes of data and analyze the entire signed 16 bit and display in the graphics.

    So, I don't know the best way to get 428 bytes in each iteration... I tried to read directly the 428 bytes but sometimes fail once again, very low reading bytes... take time to wait before read bytes to each iteration. I need a way to get 428 before values to get the readings of 400 data. Even I could probe each beginning of block with 4 D 4550 HEX bytes to pass and got data...

    Perhaps it would be better to use the wait? or using a while loop to wait until I had 428 bytes? Any help will be apprecite.

    Best regards, Fred.

    You receive binary data.  Therefore, turn off the the stop character.

    What happens is that you actually 0x0D in your data.  Playback VISA who sees and then request's made it reading the data.  By turning it off, then reading VISA will read all 428 bytes or until a time-out occurs.

    Let the constant instead of the bytes to the Port.

  • Printer does not work on the Windows XP computer, get the error message like "an error occurred during port configuration. This operation is not supported.

    Original title: 1. printer stopped communicating with the computer. 2 port - associated configuration error?

    I have a big problem. All of a sudden my printer - AIO Photo964 said he cannot communicate with my computer. The printer works fine. I tried switching cables USB, all the trouble shooting suggestions, etc. etc. Nothing works and it makes no sense. I can't print anything. I thought it would be that I installed a Seagate external hard drive backup, then I uninstalled the program - no help. ITunes installed recently, because she had changed the printer default, changed back - no help. The USB cable is not tight in the printer (or both cables, I tried), but AFAIK it's not new (?) And when I try to configure the port, I get the error message "an error occurred during port configuration. This operation is not supported"I have no idea what it means.  Can someone help me with this? I have to return a new printer? The USB port on the printer is repairable if this is the problem? How will I know? Who would do that?

    Thanks, I'd appreciate any help.

    It is always useful to have the complete error message without paraphrase.

    It also helps to identify the version of Windows you have, including service pack.

    And it helps to give the manufacturer of the printer in addition to the model.  In your case, I guess you have a Dell printer.  I know that some Dell printers are rebadged Lexmarks, but I don't know if it's a.

    Why you try to configure the USB port?  It cannot be configured - you've discovered.  It's normal.

    It's quite strange that an iTunes installation would have had something to do with the printers.  What printer was made by default after installing iTunes?

    You say you have tried another USB cable.  Have you tried using a different USB port on the computer? Have you checked in the Device Manager (start > run > devmgmt.msc > OK) to see if there is all the warning icons in the category "controllers of Bus USB?

    I suggest you uninstall the printer software and driver completely and reinstall by following the directions in Its first Article.

    Don't skip step 4.  After step 4 and step 5, follow these steps:

    Important: If you have a Lexmark printer, skip the following

    Open a command prompt window (start > run > cmd > OK)
    type the following in the black command prompt window, and then press ENTER after each line

    net stop spooler
    dependent on the spooler of sc config = RPCSS
    net start spooler

    Note that there is no space before the = and there is a space after it.

    The Windows XP driver for the Dell Photo AIO 964 printer is here-->

Maybe you are looking for