TPC-2006 Labview vi execution slows, then stops, forcing power cycle

I have a user interface vi comprising 4 while loops, each with a 100 ms "wait till next ms" timer.  There is a TCP/IP Tx loop, TCP/IP Rx loop, a loop to build the 2 bytes to be sent, and a loop to decode the 2 bytes received.
I added loop counters as a debug tool.  All 4 hum along more-or-less in sync for about 10 minutes, but then they all start  s l o w i n g  down, and while I watched, all 4 quit incrementing.  When this happens the TPC-2006 is utterly locked up, forcing a power cycle to recover.
I've attached the vi in hopes that somebody will see my error, or maybe there's a memory leak in the labview executable?
Jeff
Climbing the Labview learning curve!
Sanarus Medical
Pleasanton, CA
Attachments:
PDAplusRIO-PDA-03A-add loop counters.vi ‏127 KB

I also don't see anything directly that would cause the code to slow down over time. There are a couple things I might recommend, but I'm hesitant because the code looks so meticulously and exquisitely written!
There are a few places in your application where you use a local variable when a direct wire connection is possible. Direct wire connections are always preferable if possibe. Granted, this would only make a small difference in memory usage and performance and should NOT cause your code to slow down. For instance, in the second loop you write a value to PDA Lifter and then read the PDA Lifter value from a local variable. A direct wire connection here would be preferable. Also, in the third loop you are writing all your values to the LEDs (TestLED, HighLED, etc) using local variables. You could easily perform your logic inside the case structure that decides what values to send to the indicators, but then actually use direct terminal connections for the LEDs outside the case structure instead of using local variables.
Finally, if you are using the LabVIEW 8.0 or 8.0.1 PDA module, you might consider transitioning the second loop into an event structure that would only run if a user clicks on one of the buttons. That would save one of the loops from constantly polling six buttons and checking to see if a new value was registered. PDA applications are multi-tasked, not multi-threaded, so it would help to have less loops running concurrently.
I also agree with trying to put all the TCP communication in one loop. It obviously wouldn't make sense to have a TCP Write in the same loop as a TCP Read set to have infinite timeout, since that would slow down the write process if the 2 bytes weren't available at the port to read, but you could set a timeout of 0 or 100ms and then probe the error output to see if a timeout occured.
I've been trying to reproduce the slowdown on my computer with your code. I closed the loop by setting the target IP to localhost and setting the server and client loops to both use port 5555. This sets the app to just talk to itself. It's running fine with no errors, and so far on the PocketPC emulator I see no slowdown. This might be strictly related to TPC-2006 devices.
Jarrod S.
National Instruments

Similar Messages

  • Start to import, but it slows then stops halfway through one song

    That's pretty much it. I put a (non-burned) CD in my disc drive, hit 'Import' and it starts to import it into iTunes, but then it slows and then stops importing. Then, when I try to stop it from importing, iTunes freezes and I have to force it to quit.

    I have been having this same problem for about 2 weeks. When it happens, I have to actually re-boot my computer to get it to rip files again. After that it will rip approximately 3 or so CDs before freezing up again. I have been searching the forums for any news on this and it seems a lot of people are having the problem, but no real good iTunes solution. I am not running Vista, and would prefer not to rip files in some other program to use them in iTunes.

  • Airport Extreme 802.11 B/G wireless periodically slows then stops ...

    Anyone seen this?
    I've had this Airport Extreme 802.11 B/G Base Station for awhile now. I have a Dr. Bott external Directional Antenna attached lighting up my 2 story home. Has worked great for literally years. A couple of  years ago, a couple things happened. Hulu and Netflix came alive and my family started watching them religiously. We also purchased 2 Internet Enabled Televisions with HuluPlus and Netflix. We also now have Tablets that can also stream content.
    Fairly soon after purchasing our first IE Television, I noticed that periodically the AX will simply lock up on the wireless side. The hard-line side still works, but traffic is stopped on the wireless "port." I can communicate to the AX via hard ethernet connections and see the configuration - it appears funcitonal. Resetting the AX makes the problem go away and will usually not return for several days. Today, this happens about once or twice a week.
    Today, I was downloading a S/W update on my Corp. Lenovo W520,when this happened. I like to monitor the internet B/W on my Lenovo laptop using Windows Task Manager. I only have a 1.5M DSL outgoing line, so the WTM shows 2.5% of a 54Mbps connection when I'm pulling full BW on the DSL line. All of a sudden, I noticed the wireless connection broke (Eclamation Mark over the Win7 Wireless Tray icon.) I brought up the Task Manager Netoworking display and what I saw was the BW start to fall off from 1.4Mbps down to about 300kpbs over a 30 second period of time, then it stopped altogehter.
    Here's a screenshot of the Windows Task Manager.
    This "smells" to me like a S/W issue inside the AX. Anyone else seen this?

    I can often see up to 3 other 2wire wireless routers (AT&T DSL) from my laptop. So can the other computers in my home. This does not prevent them from logging on to MY 2wire router, and they seem to network just fine.
    My Panasonic wireless phone system works on a diffrent band - 1.9GHz
    The Airport Express units are 6' and 13' from the 2wire wireless router.  The one that is 13' is in the same room but near the floor, with no walls blocking it from the 2wire, which is on the opposite side of the room, 6' off the ground, and right at the doorframe of an open door leading to the rest of the house. The one that is 6' away is literraly just the other side of that open doorway- on a shelf approxmatly 6' off the ground.
    I have computers that are working with the 2wire that are up to 50 ' away- and up to three rooms and a hall away. The laptops go anywhere in the house- or in the back yard, the garage, and the driveway- and all connect fine.
    I cant see this as an interference issue since it is just these two devices- which worked perfectly for years, and now neither will connect- both quitting at the same time.  What are the odds?
    I suspect it is an Airport softwear update that "broke" them, but I cant proove it.
    Also,  why is it that neither will even log on for a little while, or be intermittent?

  • OS X 10.8 time machine extremely slow, then stops working

    after upgrading to Mountain Lion yesterday, I decided to erase & reformated my external HD to use with Time Machine in order to start fresh.  It is the same HD I've used for Time Maching backups for the past 2 years and has worked flawlessly.  However, when I started the Time Machine backup, it was painfully slow indicating that it was going to take 37 days to backup by 49 GB.  I thought it might pickup speed after a while, but instead it just stopped working, displaying the message something to the effect that "no time machine drive was attached". 
    Anyone else having issues with Time Machine backups under Mountain Lion?  Any suggestions"
    Thanks.

    My problem resolved itself. Please see the link
    https://discussions.apple.com/message/19226237#19226237

  • Mirror/Smartware not working with 2 Win7 computers; ultra slow, then stops backing up files

    Have 2 Windows 7 Pro computers- HP EliteBook Laptop, custom built Desktop Have returned 2 WD MyCloud 2TB drives, & now this Mirror is having SAME PROBLEM- STOPS IN MIDDLE OF BACKUPS.  Same issue on BOTH COMPUTERS.Windows 7 Backup/Restore DOES WORK working with the Mirror! This is really confusing! HELP! After working with Level 2/Advanced WD Techs for about a week, last one found errors in Event Viewer which led HP tech to replace Motherboard- it didn't recognize either drive- a SolidState OS drive, & HDD(D:\) drive even though it was booting & working ok until I ran SMARTWARE & started backups. The backups stopping after 10-15% was the ONLY indication anything was wrong. A number of WD Lev2 techs have claimed that it MUST BE A SOFTWARE ISSUE THAT SMARTWARE HAS with installed software; BUT! the desktop was just recently WIPED & Win7 re-installed! DOES NOT MAKE SENSE. Anyone have same issues? Know what could be, is the problem or have a SOLUTION?  All WD techs are stummped- & do NOT support SMARTWARE problems to this extent, even though they did their best with what training they had, & what rules WD put on them, to do initial troubleshooting. They/WD is now saying I have to go out & purchase my own Backup software & try that. PURCHSE MY OWN BACKUP SOFTWARE? That was the reason I purchased WD NAS devices. Not 1 in 3 worked! 

    What is your network configuration and the specifications of your router? Do you encounter the same issue with WD SmartWare when using a hard-wired network connection?

  • Backup going slow, very slow then stops

    Since upgrading to Mountain Lion and being told that the backup neers to be redone, the backup has never finished.  Today I deleted the sparse bundle on the TC thinking that this might sort things out.  First attempt copied 456 files the cancelled the backup (according to the log). The next didn't get quite so far ...
      and I can't wait over 500 million days?
    Any ideas?
    (I've run disk verify on the TC disk and it says it's OK)

    This was a bug in Lion 10.7.5 and there was a supplement to fix it..
    http://support.apple.com/kb/DL1599
    The bug caused exactly this problem.
    As weird as it sounds I think you might have upgraded before applying the fix and left the bug behind.. although Mountain Lion has plenty of bugs with Time Machine it doesn't have the exact same ones.
    I would first of all consider just wiping the MBPr and do a clean install of ML.. sorry .. I know.. pain the rear.. but no upgrade IMHO works properly. You seem to end up with the worst of both.. accumulated bugs from both. Clean install.
    Otherwise..
    try deleting the Time Machine setup and start again.
    A4 here http://pondini.org/TM/Troubleshooting.html
    Try using an external drive instead of the TC.. and see if that speeds things up.
    Did you verify the MBP  disk as well as the TC??
    If you want to try again after the TM reset make sure you connect with ethernet.. that means of course you will have to buy a thunderbolt to ethernet or usb to ethernet adapter. Apple sell both of them.
    Often the issue is wireless.

  • My LabVIEW exe starts to run and then stops in Windows 7

    I have built an executable in LabVIEW 2010 on a Windows XP machine and set the properties to be built for Windows 7 or later but when I try to run the exe on the Windows 7 machine the application starts up briefly and then stops running with no error message. Has anyone seen this? I have disabled the firewall on the Windows 7 machine.

    Hi Wassa,
    It's very strange that your application window opens and then slowly fades away while "LabVIEW shuts down." Can you first verify that the VI itself runs properly on the development machine? Can you then build a .EXE and ensure that it too runs properly on the development machine? If we can get the .EXE working on the development machine you have two deployment methods:
    1. If you are deploying to a computer that already has the LabVIEW Run-Time Engine and any additional drivers required for your application, then you simply need to copy the .EXE to the deployment machine
    2. If you are deploying to a fresh computer that has no NI software, you'll need to create an installer. When creating the installer, you will need to look through the 'Additional Installers' sections and select any of the additional drivers etc. that are required for your application. By default, LabVIEW only includes the Run-Time Engine. If you are missing any of the 'Additional Installers,' the application will not run properly.
    Sanjay C.
    Embedded Software Product Manager| National Instruments

  • Premiere Pro CC slows down, then  stops working, then won't work, then it won't quit

    Premiere Pro CC slows down, then  stops working, then won't work, then it won't quit. So I have to force quit every time.
    It does not matter if I am working with HD or 4K - same thing happens.
    This began happening about a week ago. Nothing really new has changed. I tried to repair permissions and check this from a new admin account because I know that is what Adobe thinks the answer to every problem is. But it did not change anything.
    Mac 10.10.2
    3.5 ghz 6-core
    Dual D700
    16GB Ram
    CC 2014

    Used this tip from Adobe and it worked, all running quick and smooth again.
    Hope it works for you too.
    http://blogs.adobe.com/kevinmonahan/2014/09/10/premiere-pro-cc-freezing-on-startup-or-cras hing-while-working-mac-os-x-10-9-and-later/

  • Slide just slows and then stops

    I published an exe to view my movie to make sure it looks
    right and on once slide I see the progress bar just slow and then
    stop. I have to hit the "Forward" button in order to get it to go
    to the next slide. I've looked and can't seem to figure out why
    it's doing this. Any suggestions?
    Thanks in advance.
    Thom

    Hi Thom
    Have you examined the slide in question to see if it has
    perhaps one of the following objects?
    * Click Box
    * Button
    * Text Entry Box
    Look at the Timeline and make sure you are looking at all
    objects.
    Cheers... Rick

  • Using the NI TPC 2006 to control a solar tracker

    I have a NI TPC 2006 Panel and a solar tracker. The solar tracker is controled using a offline web page containing some javascript that uses a dll library. The web page is on a PC and i connect the tracker using a USB or a Com port and then make the modifications from the interface on the web page. My question is: is there a way to copy the offline web page to the NI TPC 2006 Panel and use it to connect to the solar tracker instead of connecting the PC to the solar tracker? Dose the NI TPC 2006 Panel suport javascript so that i don't have to always connect the tracker to the PC?
    Thx
    Best regards,
    Alex

    Alex,
    Are you going to try to integrate these dll calls into your LabVIEW program or will the communcation with the solar tracker just be limited to the javascript code?  If the communication is just going to be between the solar tracker and the html code, the question is essentially a Windows CE question.  Have you tried hosting the javascript from the NI TPC 2006?  If so, are you running into any issues with it?
    Zach C.
    Field Engineer
    Greater Los Angeles

  • TPC-2006 IP

        Hello, I have a little problem with one TPC-2006, I've already set up the ip address in the network connection and then executed a regsave, so the ip address, default gateway and subnet mask for the network connection have been saved in the system image. When I reboot the network connection still have the correct ip adress but the icon in the windows task bar appears with a red "X" over it, like if the ethernet cable were disconnected. When i double clic this icon the ip address it shows is 0.0.0.0. I have to enter to the "network and dial-up conecctions" window in the control panel and disable and then enable the network conection to get connected. After I do that, the icon in the windows task bar appears connected and when I double clic it, it shows the correct ip address of the network connection. I've to do that everytime I reboot the TPC.
    I don't know what is happening  so  if somebody knows how to fix this problem or what I am doing wrong please  tell me. Thank you.
    This is my first post in the forum, forget me if I've put it in a wrong place.
    Paul Arriz Tisoc
    Mechatronic engineer
    Paul
    Mechatronic engineer
    Lima-Perú

    The Touch Panel Module is not appearing under Measurement and Automation Explorer?  That is strange. 
    If it is not appearing, we need to verify that it was installed.  It will also show up under Add or Remove Programs >> National Instruments Software, and under the NI License Manager under Start >> National Instruments >> NI License Manager:
    If it is showing up here, than the installation may not have been registered with LabVIEW or MAX.  In that case, we will need to repair the installation of the Touch Panel Module 8.2.1 (Assuming you are using LabVIEW 8.2.1).  Also keep in mind that, you must have the same version of the module as your version of LabVIEW.  8.2 will install to LabVIEW 8.2, the TPC module 8.2.1 will install support for LabVIEW 8.2.1, 8.5 for 8.5, etc. 
    The TPC 2006 ships with Active Sync and some drivers from the manufacturer, which will allow you to see the TPC through Active Sync, this does not mean you can target it with LabVIEW.  For this we need the Touch Panel Module.  So I want to make sure that we have the correct version installed.  I hope that this makes sense.
    Message Edited by Coal Man on 08-23-2007 04:44 PM
    Brian Coalson
    Software Engineer
    National Instruments
    Attachments:
    MAX.Jpg ‏105 KB
    Add or Remove.Jpg ‏50 KB

  • Emac tried to start then stopped, finally after 3 attempts it started

    After a hard drive failure i run my emac on an external hard drive through a fire wire.
    That worked OK till yesterday when it tried to start but after a few seconds of the normal fan noise and before the screen lit up, it stopped. I hit the switch again and it did the same thing 3 times but on the 4th attempt it started but a white screen came on and told me to type "mac-boot" and hit return.
    It finally started.
    The external hard drive was still running OK at the time it had stopped, it was internally that it had stopped.
    I took the back off the emac and vacuumed the dust from inside and after that it has since started normally every time though it seems slower to start, but I could be mistaken about that as I can't now remember noticing how long it took to start before.
    Someone said the problem could be the power supply failing.
    Is there any way for me to diagnose what exactly is wrong, since an emac power supply is not same as a PC power supply?
    Could a PC power supply be modified to replace the emac power supply as I have a failed PC with a good power supply I could use if it would work?
    Any help or suggestions would be appreciated.
    Ann

    Hello and thanks for your reply.
    I neglected to mention that at the time of the hard disk failure I put a new hard disk inside too with the intention of using it as a back up to the External Hard Drive but I found it was easier in the end to get another external hard drive and now I use Time Machine to back up on to that 2nd external hard drive every few days.
    I disconnect the 2nd external hard drive when I'm not backing up data on to it.
    Most of the time when I boot up the emac it somehow knows to go straight to the 1st External Hard Drive instead of the Internal Hard Drive but occasionally it will go to the Internal Hard Drive and when it does that I have to go to System Preferences and then to Startup Disk and actually select the External Hard Drive icon and that's what I had to do every time when it was having that weird starting then stopping phase, ie, every time during the starting then stopping phase, when it did start it went to the Internal Hard Drive even after I would go into Startup Disk and select External Hard Drive it would start on the Internal Hard Drive, so in the end I didn't bother trying any more and I just connected to the internet through the Internal Hard Drive until I took the back off and vacuumed the dust out and ever since I did that it's been running normally, ie, it's always selecting the External Hard Drive again and running at what seems to be normal speed for everything too.
    I just don't know why it went into that starting then stopping phase.
    When it was in the starting then stopping phase the internal fan noise would stop but the little white light next to the DVD door would stay lit up so it was definitely getting some power from somewhere but it was failing to go on and boot up because the power to the internal fan had failed ie, I could clearly hear the fan stop only 3 or 4 seconds after hitting the start button.
    I've just had a look at the capacitors that you suggested and they look perfect, like new in fact, they have a shiny metallic top with a + indented in the top and they are flat and they show no sign of a dried up liquid or any bubbling up anywhere.
    Anyway, your reply was helpful since you ruled out the Power Supply and the capacitors, so thank you for those.
    The friend who advised me how to get going again after the initial hard disk failure, ie, via the External Hard Drive connected by fire wire, did warn me not to touch anything in the back that wasn't directly related to changing the hard drive but thanks for the heads up anyway.
    Ann

  • I have just started with apple tv. I rented and downloaded a movie from itunes on my macbook pro and tried to watch it. I got the movie up, but it only played a picture for about 3 seconds and then stopped, also no sound? What am I doing wrong?

    Please help me play a rented itunes video on apple tv. Have a pictue and movie runs for about three seconds, and then stops. No sound? But I can play any music from my library with sound?

    Is the movie still buffering? you may have a slow internet connection. Music files require far less bandwidth than movies.

  • How do I save my TPC-2006 app in nonvolatil​e flash

    I've used the TPC Configurator to run my user interface Labview code automatically after the TPC-2006 boots up, but the file is lost every time power is cycled.  How do I make it stick to the flash disk?
    Jeff
    Climbing the Labview learning curve!
    Sanarus Medical
    Pleasanton, CA

    Hi Jeff,
    I really don't know much about the TPC-2006, but have you seen this KnowledgeBase:  How To Make Executable Start Upon Boot Up of theTPC-60S?  Clearly you're familiar with the TPC Configurator Method, but I believe that the second method will work for you.  Taking my cue from this post I believe that you can move the file to the HardDisk folder to avoid losing them.
    Let me know how this goes for you!
    Best Regards,
    Megan B.
    National Instruments

  • Download starts but then stops...

    So I've read other forums and searched this website for one, but I still can't find the answer. Whenever I try to download the file it will start but then after some time get stuck on a percentage(different every time) and then stop all together. I've tried using different browsers and a download manager, I have plenty of storage space also. It still won't work
    I've heard that this may have something to do with my internet and secruity? Or something? Can someone tell me how to fix that? My technical skills are very very low and this is the first time I've used a mac.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in OS X 10.7 or later, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

Maybe you are looking for

  • Descriptions in field explorer on CR 2008

    Hi, We're opening a query by using SAP toolbar on Crystal Reports 2008 and on the fields explorer we can't see fields description, so we're not able to work with them (they only have a long character string as a name, we don't have neither BW Descrip

  • Exchange Server 2013 SP1 - Optimize for Single Server Use

    Hello, i've set up Exchange 2013 SP1 with at last CU6 - get exchangeserver says: AdminDisplayVersion             : Version 15.0 (Build 995.29) ExchangeVersion                 : 0.1 (8.0.535.0)              - - - funny number ;-) (is this an early ver

  • Sort table of objects by object attribute

    Hi all, I would like to write method for sorting table of objects. Sorting will be according selected attribute of object. My problem is that when I have dynamic data, I'm not able to access attributes of object. Here is example in code. Problematic

  • Report Amount Column Question

    This is a silly question I'm sure but in terms of calculating the amount column in a report should you just calculate it by taking all the debit / credit balances for all P&L accounts or is there some other method typically used?  Also can someone co

  • Replicate services for object functionality in my customised  program

    Hi I can see the "Services for object "functionality in ME23N transaction. I want to replicate the same functionality for my custom program.Is there any badi or Function Module . Please let me know if I can get any pointers for this. Regards Deesanth