Close HyperTerminal Application using LabVIEW

I have a client who wants LabVIEW to close the HyperTerminal Application automatically is it has the serial port open.
Detecting that the serial port is already in use is simple.  I already have a popup that tells the operator to close any communication application because the port is already in use; however, they want it done automatically.
HyperTerminal does not have ActiveX support and they will not go to the more professional version which does.
A long time ago, I had read a thread where it was possible to close (or open?) and application that did not have ActiveX support.  I was hoping to use this similar approach..  Opening the app is simpler, but closing it is a different story.  You need some sort of reference to that application to tell Windows which one to close.  The OS in Win-XP.
Suggestions are welcomed.
R
Solved!
Go to Solution.

http://www.howtogeek.com/howto/windows/kill-processes-from-the-windows-command-line/ 
OR
Taskkill  (command line as well)  http://technet.microsoft.com/en-us/library/bb491009.aspx
taskkill /IM hyperterm.exe
will kill all hyperterm windows open, BUT it will ask you if you want to close any open sessions, which I think you don't want. 
taskkill /F /IM hyperterm.exe
does the trick (without chewing up the com port, I just tried)

Similar Messages

  • Develop a command-line application using LabVIEW

    Hi,
             Is it possible to generate a command line(CLI) executable using LabVIEW? This CLI exe will be called with certain command line arguments by another application (written in Visual Basic). The LabVIEW Run time engine can be installed separately on the host PC.
    Thanks for your help
    Siddharth 
    Solved!
    Go to Solution.

    There is an example that ships with LabVIEW that shows how to read the command line arguements from an application. THe name of the VI is CommandLine.vi. It is extremely basic though. The power of command line arguements really comes from how you define and parse them. I recommend allowing your command line arguements to be order independent and that they require a label. For comand lines I prefer to use a single letter for the label. Full words are nice but then your command line gets very long. For the applications that we write we allow both the '/' (DOS/Windows style) and the '-' (Unix/Linux style) to designate a command line label.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Close the application using the camera, then try opening!!!

    i use my built in isight everymorning with iMovie and iChat. I used it again this morning. Throught out the day, for some reasons i had to reinstall quicktime and another video file exporter software "ffmpegx". now i don't know if this has to do anything with it, but now if i open my ichat, imovie, phoneboot, anyway, all of them, they keep saying that the camera is being used by another application!!! there is NO application using the camera!!! i tried to restart, shut it down, even deleted the video file export software, even reinstalled quicktime another time, yet the message keeps popping up. i am travelling and don't have my restore or reboot cd with me. i need my camera to work, it is part of my work. i need some help.

    300 pmTool root 0.90 1 1.20 MB 36.46 MB Intel
    299 Activity Monitor danielbelanger 4.60 2 9.47 MB 345.03 MB Intel
    286 Database Daemon danielbelanger 0.00 3 15.01 MB 448.61 MB PowerP
    285 Word danielbelanger 3.40 6 81.95 MB 696.12 MB PowerPC
    281 Mail danielbelanger 0.00 6 20.00 MB 362.41 MB Intel
    276 Address Book danielbelanger 0.00 1 11.57 MB 346.98 MB Intel
    274 AppleSpell danielbelanger 0.00 1 1.91 MB 37.75 MB Intel
    272 Safari danielbelanger 1.50 9 171.56 MB 668.81 MB PowerPC
    270 iTunes danielbelanger 7.30 4 33.47 MB 378.62 MB Intel
    267 mdimport unknown 0.00 4 2.46 MB 39.55 MB Intel
    266 iChatAgent danielbelanger 0.00 3 5.41 MB 298.09 MB Intel
    261 System Events danielbelanger 0.00 1 3.52 MB 328.50 MB Intel
    260 Plazer danielbelanger 0.00 4 7.86 MB 344.36 MB Intel
    259 Temperature Monitor danielbelanger 0.00 6 9.21 MB 377.50 MB Intel
    257 Alarm Clock danielbelanger 0.00 1 5.06 MB 335.72 MB Intel
    256 mdimport danielbelanger 0.00 4 4.38 MB 40.16 MB Intel
    249 Finder danielbelanger 0.00 4 12.48 MB 355.98 MB Intel
    247 SystemUIServer danielbelanger 0.00 2 10.50 MB 348.57 MB Intel
    246 Dock danielbelanger 0.00 2 4.15 MB 310.77 MB Intel
    241 pbs danielbelanger 0.00 2 2.02 MB 54.99 MB Intel
    234 WindowServer windowserver 2.50 3 58.66 MB 383.14 MB Intel
    233 mdimport ibrido 0.00 3 2.42 MB 38.42 MB Intel
    231 loginwindow danielbelanger 0.00 4 5.51 MB 335.82 MB Intel
    229 mdimport nobody 0.00 4 2.41 MB 39.25 MB Intel
    194 slpd root 0.00 6 1,008.00 KB 30.16 MB Intel
    169 ntpd root 0.00 1 404.00 KB 27.07 MB Intel
    165 automount root 0.00 3 1.07 MB 28.72 MB Intel
    160 mds root 0.00 9 4.78 MB 43.91 MB Intel
    154 AppleFileServer root 0.00 2 2.20 MB 33.68 MB Intel
    145 automount root 0.00 5 1.32 MB 29.77 MB Intel
    142 rpc.lockd root 0.00 1 188.00 KB 26.66 MB Intel
    133 nfsiod root 0.00 5 184.00 KB 28.61 MB Intel
    110 translated root 0.00 1 248.00 KB 35.93 MB Intel
    108 lookupd root 0.00 2 1.52 MB 28.50 MB Intel
    106 integod root 0.00 2 17.54 MB 121.01 MB PowerPC
    82 crashreporterd root 0.00 1 204.00 KB 26.60 MB Intel
    68 ATSServer danielbelanger 0.00 2 9.13 MB 66.61 MB Intel
    64 coreservicesd root 0.00 3 12.75 MB 43.35 MB Intel
    63 blued root 0.00 1 1.98 MB 37.04 MB Intel
    51 DirectoryService root 0.00 3 2.96 MB 30.25 MB Intel
    49 update root 0.20 1 220.00 KB 26.60 MB Intel
    48 distnoted root 0.00 1 832.00 KB 27.01 MB Intel
    42 notifyd root 0.00 2 464.00 KB 27.20 MB Intel
    41 securityd root 0.00 1 2.25 MB 28.68 MB Intel
    40 memberd root 0.00 3 648.00 KB 27.64 MB Intel
    39 diskarbitrationd root 0.00 1 1.13 MB 27.14 MB Intel
    38 coreaudiod root 0.00 1 1.11 MB 28.32 MB Intel
    37 configd root 0.00 3 1.91 MB 29.13 MB Intel
    35 syslogd root 0.00 1 420.00 KB 26.63 MB Intel
    34 netinfod root 0.00 1 568.00 KB 26.92 MB Intel
    33 mDNSResponder root 0.00 3 1.11 MB 27.88 MB Intel
    32 KernelEventAgent root 0.00 2 628.00 KB 27.18 MB Intel
    27 kextd root 0.00 2 1.02 MB 27.54 MB Intel
    23 dynamic_pager root 0.00 1 168.00 KB 26.61 MB Intel
    1 launchd root 0.00 3 524.00 KB 27.67 MB Intel
    0 kernel_task root 2.60 45 65.02 MB 947.15 MB Intel

  • Close windows application by Labview 2009

    hi,
    i would like to close a windows application (ie : scientific calculator) automatically by LabView 2009
    i've read on differents posts that we must use API Win32 with the user32.dll, i have followed recommandations and procedures.
    i have written the vi in attached file and tested it but unfortunatly it doesn't work, the windows "calculator" remains open without error message in the error cluster
    Could you help me?
    thaks a lot
    Attachments:
    FermetureApp.vi ‏10 KB

    Hi Pimpon,
    As you already got an answer on the French forum, I just place a link to it here for english talking people.
    There were two suggestions :
    Use Windows API Function Utilities (32-bit) for LabVIEW
    Use .NET (see VI Snippet in the other forum post)
    Regards,
    Mathieu P. | Certified LabVIEW Associate Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Journées techniques : des fondamentaux aux dernières technologies pour la mesure et le contrôle/comm...

  • How can I detect open applications using LabView 6i

    I am using ActiveX to open and write data to an Excell spreadsheet. I open a Template sheet, fill in the new data, then save the spreadsheet under a new name.
    I have discovered that if excell is already open when the VI starts, the spread sheet does not get saved under the new name, and the data ends up being saved with my template worksheet.
    I need a method of determining if Excell is open and if so close as part of the VI's startup routine.

    You can use the "ActiveWindow" method on the "_Application" node to see if it returns a valid refnum or not.
    A valid refnum tells you Excel is open, an invalid says it's not.
    Sample attached.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
    Attachments:
    Excel_Open.vi ‏14 KB

  • Closing an application using ios4

    Is there a way to close an application using ios4 without double tapping the home button and closing the application by holding down on the application and waiting for the red minus sign?
    Before you just had to hit the home button to exit the application, and now I'm not sure.
    Not sure it makes a difference if the applications are open, but I thought I'd like to know if there is a simple step to exit and close the application.
    Thanks in advance.

    I actually have noticed my battery is depleting faster since upgrading to iOS4. Basically I've noticed that every time I look at the battery sensor, it's gone down 1% from the last time I looked, and I'm checking it quite frequently. A test I ran was I had Facebook & TweetDeck open at the same time (just 2 apps). I posted a tweet on TweetDeck and found my battery was down 1% in the time it took to draft a small 140 character message. I don't know if that is something to do with the new OS but I do know writing a tweet didn't use up 1 whole percent of my battery before. I think the new OS was really meant for the iPhone 4 and the 3GS was just like an afterthought. Maybe its not the multitasking per se, maybe it's just the new OS eats through more battery naturally but either way, it kind of ***** for those of us who live on our 3GS iPhones and are not eligible to upgrade.

  • Javascript to close an application

    I'm trying to close my application using 'button'. Here's the
    steps which I followed
    http://kb.adobe.com/selfservice/viewContent.do?externalId=238f7842
    but when I publish and view the .swf file it opens Adobe
    Flash Player Security dialog box and when I click on settings it
    takes me to this page
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.ht ml
    Even after making this particular file to be trusted always,
    it doesn't work.
    Is there any other settings which I have to set???

    I am not an expert but this topic has been around the forums
    for a while but in the General Discussion area. Try this link.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=67&catid=464&threadid =1269800&highlight_key=y&keyword1=javascript%20to%20close
    You can also do a search in General discussion and there are
    several topics for this issue that may give another answer. It is
    always a good idea to search for the topic before posting one.
    From my perspective if you want a captivate project to close
    when it is done just go to the Edit menu, Preferences, Project,
    Start and End and select the way you want the project to
    end.

  • Program PIC Controller Using Labview

    Dear Team
          I have created an application using LABview, in which i'm testing an Electronic Hardware before and after programming the Microcontroller available in the hardware.I've almost completed the project expect the auto programming Of Microcontroller using LABview.
     I have to use PIC2kit or PIC3kit to fuse the c code.It would be helpfull ,if i get any support or clarification in the above mentioned auto programming using labview.
    My Client requirement is to call the pic2 standalone application used for programming PIC controller Via LABview and program it..Let me know if there is any possibility.. 
    Solved!
    Go to Solution.

    You could use System Exec.vi to run your standalone application.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • Is it possible to develope an applicatio​n in Atmel AT91SAM926​3 using Labview

    Hi friends,
     I have exp in labview automation but totally new in Embedded applications . I have one Atmel AT91SAM9263 EK (including touch screen disply) borad with m. is it possible to develop applications using labview. for this purpose which module we required. From where i can start. please help me for that.
    thanks,
    niks

    You have multiple options:
    Since, it is supported by Keil (Atmel AT91SAM9263) you can follow the LabVIEW for ARM Microcontrollers porting guide (http://zone.ni.com/devzone/cda/tut/p/id/6994). You may be especially interested how Phytec board has been ported.
    Also, if you want other RTOS, you can use Microprocessor SDK and read again about Phytec (http://digital.ni.com/manuals.nsf/websearch/AB597F​3FD5D9011886257448005F4A0C).
    Eiso-risky:
    Even if you posted two times, I shouldn't click the button because this is a ARM926EJ-S and not Cortex-M3.
    Would it were a Stellaris or SAM3U ..., but where is such a button?

  • I have developed one application software using Labview 8.5 in which i am collecting data from 5 temprature controllers on serial line.

    I have developed one application software using Labview 8.5 in which i am collecting data from 5 temprature controllers on serial line.
    This software is done and successfully installed on customer side.
    Now the customer want this software to be run on server and some fixed number of clients should access this with some login security.
    Is this fascility available with National Instruments in which i can installed this standalone application in server and allow some clients to access this with
    proper login?
    Regards,
    Vaibhav

    Yes, that is possible. Multiple clients can access the VI using Web Publishing tool and control the VI operation. However, only one client has the control of the VI at one instance. The client needs to right click on the web page displaying the front panel of the running VI and ask for control and then release control after the execution to let other clients to ask for the control subsequently. The LabVIEW VI needs to be running upon the server computer since closing LabVIEW also closes the Web Publishing server and disconnects the currently connected clients. 
    Please check this link http://zone.ni.com/devzone/cda/epd/p/id/3797
    You might want to create a stand alone executable for the same and then publish it over the internet for access by your desired clients. In that case, check this link http://digital.ni.com/public.nsf/allkb/3A0087DBE9D31F9286256B19000A2DAE?OpenDocument

  • Advantages of using labview in embedded application when compared to c ?

    Hello all,
    I am looking to develop embedded application with help of labview programming
    Started with Lm3s8962 evaluation board.
    So i would like to know
    1 Advantages of using labview in embedded application when compared to c ?
    2 Can we deploy the code in any kind of  controller by writting drivers for it ?

    hello, the LM3S8962 microcontroller is a good sispositivos for developing applications of medium complexity, according to your questions:
    1. if you work applications with embedded systems will save labview time in prototyping, we know that if you work with a company specific microcontroller, you must learn the language with which you are working Asm, Basic, C, then if you change hardware again start adapting your code in the libraries of the new compiler. Labview does not happen. 
    2. Labview only works with some microcontroller manufacturers and specific models.
    Atom
    Certified LabVIEW Associate Developer

  • What are the limitations of using labview 8.5.1 developers suite verses a real-time module in field point applications?

    What are the limitations of using labview 8.5.1 developers suite verses a real-time module in field point applications? Can an exe. be loaded onto a field point controller or does the controlling program have to reside on a PC for example?

    centerbolt is correct, you can't load a .exe or even run a program on the fieldPoint controller unless you have the Real Time module.  However, that does not mean you can't use your FieldPoint bank without the Real Time module. 
    From LabVIEW for windows you can make calls to the fieldpoint IO using the fieldpoint read/write functions. 
    This program runs on the PC not the FieldPoint controller.  If you loose network connection to the fieldpoint, your program will loose connection to the IO.  For many data logging applications this type of arrangement can work just fine.  However, if this is the only type of application you are ever going to run, then you may as well not buy the Real Time controller for your fieldpoint but the network controller only. 
    If your application requires more reliability, and/or greater determinism than can be achieved by running a program on windows, then you should use the LabVIEW Real Time module and develop a program that can run down on the FieldPoint controller independent of windows.
    Message Edited by StevenA on 07-22-2008 04:14 PM
    SteveA
    CLD
    FPGA/RT/PDA/TP/DSC
    Attachments:
    fp pallet.PNG ‏6 KB

  • For the iPad, using OS  7.02, how do you now close an application?

    For the iPad, using OS  7.02, how do you now close an application?  When I double click, go to the task bar and touch on the icon, it no longer gives me the option to close the application.  Do you no longer need to quite an application?

    Double tap the home button and swipe upwards on the preview of the App (not the App Icon)

  • Starting applications remotely using LabView activeX server

    I want to
    make a program that enables me to start applications on a remote computer. I
    made a program that starts applications using either System exec.vi or .NET and
    both methods work find on my local computer. I built it with activeX server
    enabled and copied it to my remote computer. After struggling with DCOM
    settings and Security settings for a couple of days!! I’m now able to start the
    program from my local computer. The thing is that I can’t see either the
    LabView program or the started application. When opening the Windows Task
    Manager, I can see both the programs under the Process tab so they have
    started, but obviously as a “background” process and not as an application.
    Does anyone
    have an idea on how to start the programs as applications?

    Why not just use PsExec?
    http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

  • How do you make third party application window backmost using labview

    Hi Guys
    I know i can do whatever i want on labview windows.i can make third party application window frontmost.
    But How to make third party applicaiton window backmost using labview.
    Thanks

    Hi wenjie1wang,
    I have attached an example that uses the "Call Library Function Node" that accesses the "user32.dll" file that is responsible for manipulating with the windows such as minimising it. 
    After opening the VI you have to enter the name of the window you want to minimise, you can hard code that as a constant. Also on the front panel the control "nCmdShow" can be changed to dictate the action you want to do with the window. 
    Furthermore, please look at the Microsoft Developers Network to find more useful ways to use the property node in your project.
    http://msdn.microsoft.com/en-US/
    Let me know if this works.
    Regards
    Art
    Applications Engineer
    National Instruments
    Attachments:
    Minimise Window in Win7.vi ‏14 KB

Maybe you are looking for

  • My iPhone4 is unable to start, and will not connect to iTunes. Please help!

    I've had my phone for about 3 months now, and I've already had to have it replaced. I got a new one about 3 weeks ago, and until last night it has worked perfectly fine. Last night, it turned off, and will not turn back on. I've reset it countless ti

  • When you order your Zen Micro, make sure you know what you're getti

    I recently about a 5gb Zen Micro Mp3 player and went through a lot of trouble to get it, but I learned a lot. Read on: First, there are two types of packaging for Zen Micros, one that includes only the player, the cords, the manual, the software, a p

  • Ternary Operator Question (with regex).

    Hi, I was learning regex in java and wrote a program which tests a string to see if it is an email address. import javax.swing.*; public class IsEmailAddress      public static void main(String[] args)           String address = JOptionPane.showInput

  • Satellite L40 - Wifi doesn't work properly

    Hi, when i want to connect my L40 to some network near me, it doesn't connect, or whenn it connects, is says that my access is limited or doesn't work, or need a network adress, something like that... is the problem with my notebook, or else??? thx

  • Joining Domain kills Remote Mgmt?

    We are primarily an eDir shop with AD as part of our infrastructure. Vast majority of workstations are configured for eDir/ZCM environments with Remote Management working normally. However, the moment I join a given box to our AD domain, Remote Manag