Best way to create a Windows service from a LabVIEW executable​?

What would be the best way to run a LabVIEW executable as a service? I needed this recently and I think I have set up such a service using srvany.exe from the Windows 2003 Resource Kit, but that seems like a bit of a hack. The Kit is not offically supported in Server 2008, but seems to work. I don't know about Server 2012 or beyond.
So what would be the "proper" way of going about creating a Windows service from a headless LabVIEW application?

The proper way is to interface to the according Windows service control API. That is however not a trivial task to do. We used to sell a LabVIEW toolkit which supported a full interface to this, but it's not currently actively marketed.
srvany.exe is sort of a hack but works reasonably well for most use cases, as long as you do not need any further interaction with the service manager interface in Windows than to start and stop your service.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • What is the best way to create a database schema from XML

    What is the best way to create a database schema from XML?
    i have  a complex XML file that I want to create a database from and consistently import new XML files of the same schema type. Currently I have started off by mapping the XSD into Excel and using Mysql for Excel to push into MySQL.
    There must be a more .net microsoft solution for this but I cannot locate the topic and tools by searching. What are the best tools and way to manage this?
    Taking my C# further

    Hi Saythj,
    When mentioning "a database schema from XML", do you mean the
    XML Schema Collections? If that is what you mean, when trying to import XML files of the same schema type, you may take the below approach.
    Create an XML Schema Collection basing on your complex XML, you can find
    many generating tools online to do that.
    Create a Table with the above created schema typed XML column as below.
    CREATE TABLE youTable( Col1 int, Col2 xml (yourXMLSchemaCollection))
    Load your XML files and try to insert the xml content into the table above from C# or some other approaches. The XMLs that can't pass the validation fail inserting into that table.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Best way to create a conact list from the user profile properties

    We have a customer looking for a phone book utility, starting with a table showing main user information and with some search options. We would like o base it on the user profile properties and not to create an indipendent studion record browser porlet.
    What is best way to create a conact list from the user profile properties ?

    I did something like this using search.  It can get messy, so you need to take care with it.
    * Identify the properties you want to make accessible to search (ex: name, etc.)
            - add them to the user property map
            - flag them as searchable
    * I broke down and used the native server API.  I'd still suggest this approach.
    * Write some simple code to do vcard export if you like
    (my code is all in vb.net)
    I really believe this is the "right" approach, but honestly, this was a bit painful and has been
    messy for us given some other business issues.  (to my chagrin we have users with 2-letter last
    names...)
    I have code you're welcome to poke at, but it's more or less slapped together and has various
    different search methods commented out so you can see how I tinkered w/ the remote vs. server
    API.
    If you'd like it mail me at [email protected] and I'll send you a zipped copy w/ a
    readme.  I hope it may be useful to you as both a starting reference.

  • Best way to create multiple windows

    Just for a learning experience i am trying to make an application that starts out as a window with a button.When you click the button it creates another window of the same size but with the no decorations. What would the best way to go about this be?
    I tried making a class which extends Stage, but i cannot set the style property in it.

    Just for a learning experience i am trying to make an application that starts out as a window with a button.When you click the button it creates another window of the same size but with the no decorations. What would the best way to go about this be?
    I tried making a class which extends Stage, but i cannot set the style property in it.

  • Best way to create nice, wide vocals from a 2 part harmony?

    I know there's no "best" way. But I have a chorus line I've written with a two part harmony. I want it to sound wide and full. What's a good approach to take right now. How many passes of each vocal line should I record? What approach should I take with panning all the parts? And, how might I possibly the whole vocal mix fill a wide frequency range?
    I've tried a LOT of things but I feel like I'm wandering in the dark because I'm quite novice when it comes to mixing vocals (besides having 2 part vocals where both takes are basically EQd the same but jut panned differently). It's time I break outside of the box!
    Any help is appreciated. Thanks!
    Message was edited by: eMagnus

    This is where you get to choose, as mix engineer/producer. No matter how many tracks we put down, comp, mult etc, there comes a time to make decisions.
    What is more important, more prominent, aids the song in it's entirety. Basically, you're talking about overlapping frequencies. So where the vocals and the synths are together in your chorus you are getting a lot of frequencies in one range.... lets say the lower mids (always a tricky area) 200 - 300Hz.
    You have two basic tools instantly to hand. Volume and frequency. I am simplifying. You can get your levels in the right ballpark (of course you can fine tune with volume automation) and you can tailor with EQ. If there is too much 250hz in the chorus, you need to cut something. One thing makes room for another thing. What this thing is, is entirely up to you. There are no rules for this. If all your sources in the chorus cover the whole frequency spectrum and the whole stereo field you are going to have to decide.
    In one song I mixed recently, the lead vocal was doubled. The intro was sung over a fairly clean picked guitar. I had the two vocals panned just narrow of 9 and 3 o clock. When the verse burst in there are 14 distorted guitars filling the stereo spectrum from hard panned left and right to about 10 and 2 o clock positions. I automated the vocal to become much narrower, 5 points either side of centre for this part of the song. It doesn't sound odd on playback or as drastic as you may think. What it does is make room for these massive guitars and it worked well on this particular song. What it also did was make room for the odd backing vocal that sporadically appear in the song.
    So in this case it was making room on the stereo spread that helped the mix and no eq was changed. That was my decision.
    So basically, if there's too much of everything you need to turn something down or move it out of the way. This can be in frequency, volume or stereo field.

  • Best Way to Create Array of Values From ArrayCollection

    I often use Arrays of values from ArrayCollections in my
    application in order to facilitate faster performance when
    filtering other Collections.
    For instance, let's say I have an ArrayCollection of Objects
    with the properties "id", "name", "label", and "isActive". What
    would be the best way to get an Array of all the "id" values?
    Right now, I am looping over the ArrayCollection, and adding
    the value of the property I need to an Array using Array.push().
    For larger Collections, this seems like overkill. I was wondering
    if anyone knew of some quicker way to get an Array of values of one
    property from an Array Collection.
    My current method for doing this is attached below...
    Thanks.

    No, that won't work - toArray() simply returns the entire
    Collection as an Array.

  • What's the best way to create multiple windows?

    I'm trying to write a program with Text fields and buttons on it which will open a completely different window with Text Fields and Buttons. The best thing I can find is JInternalFrame which creates a Frame inside of the window I'm working with. What do I need to use in order to make them separate?

    Exception occurred during event dispatching:
    java.lang.IllegalArgumentException: adding a window to a container
         at java.awt.Container.addImpl(Container.java:336)
         at java.awt.Container.add(Container.java:228)
         at beve.Frame5.actionPerformed(Frame5.java:181)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
         at java.awt.Component.processMouseEvent(Component.java:3715)
         at java.awt.Component.processEvent(Component.java:3544)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2593)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
         at java.awt.Container.dispatchEventImpl(Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:914)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
    I need to take off now but I'll check back later tonight. Thanks for the help everyone :)

  • Best way to create a popup spreadsheet from a button or hyperlink? Perhaps even without macros?

    So the spreadsheet would be contained within the popup above the initial workbook worksheet and could be
    closed/dismissed.
    What are the best options?

    Hi,
    If I understanding correctly, you want to click the button or hyperlink and then a new worksheet popup from the initial workbook, right? If it is, there is no Excel feature like this, we may need to add a command button and use a macro.
    Sample code:
    Dim WS as Worksheet
    Set WS = Sheets.Add
    If I misunderstand, please let me know.
    Regards,
    George Zhao
    TechNet Community Support

  • What is the best way to monitor a windows service on a domain controller?

    +1 for SW
    as another solution you can use this Tool “Total Network Monitor”
    http://community.spiceworks.com/how_to/show/2471
    look at #5 to monitor the service and restart, if it is not running
    a notification is also included #3

    We have a need in the office to monitor a specific service running on our domain controller
    Just wondering who else has implemented such a system out there? 
    Our SpiceWorks helpdesk does not run on the domain controller but is in the same domain incase it makes a difference  
    This topic first appeared in the Spiceworks Community

  • Best way to create SVG file from drawing application?

    I am developing a drawing application that allow the users to draw and edit static two dimensional images such as Rectangles, Ellipses and Text. I have a superclass SVGShape that contains all the common features of a shape such as x1, x2, color etc. I then have SVGRectangle as a subclass of SVGShape.
    I want to know what would be the best way to create an SVG file from this? An idea I have at the minute is to have an abstract method getSVG() in the SVGShape class, and then implement the method in the subclasses. I will then create a new class called SVGManager which iterates through the list of shapes (Btw I'm using MVC, my shapes are stored in a Collection) and uses the getSVG() mehtod in each shape to build up a SVG file.
    What do you think of this? Any better ideas?
    Thanks guys

    I used a visitor for this in a similar project, so that when the svg library is used in a applet or browser and the writing functionality isn't required, it may be omitted from the bundle.
    Pete

  • What is the best way to create Aperture book from Pages '09 document?

    What is the best way to create Aperture book from Pages '09 document?

    There is no way to import pages documents to Aperture and convert them to an Aperture book. Aperture books can only be created by manually adding images and text to the pages of a book, and using the layout of the predefined templates.
    The best you could do, would be to print your pages document to pdf and import the resulting pdf file into Aperture as a new project. This will create one image for each page. Then select the page images all at once and  create a new book. Select a theme with fullsize page images, like "picture Book", and then add the images of the pages to the empty pages of the book.
    But probably would you get a much better quality and layout, when you recreate your pages document in Aperture, by starting with an empty book and copying and pasting the text from your Pages document. But don't paste the photos from the document - try to use the originals of those photos.

  • Best way to create a Keynote presentation for use in Windows Powerpoint?

    Hi all, as mac users, I know we have all been here,  I am being forced to use Powerpoint and a Windows machine for a presentation.   I am wondering what is the best way to create a keynote presentation (on my mac), and export it to powerpoint (on a windows machine). The goal here is try to get as few errors and missing components of the presentation as possible. I frequently have to export and import documents through Microsoft word and pages, and everytime I open a doc I get a message saying that some things couldn't be imported. This cannot happen in this situation! This is a very important presentation that needs to go as smooth as possible. I am going to be presenting this presentation on a windows 7 machine running microsoft office 2010.
    What extra steps should I take (if any) to make sure everything gets exported and imported correctly?
    Thanks in advance,
    - A Mac user under Windows Oppression

    Thanks, the presentation went well. I just had to try out different transitions and animations to see which ones worked with Pp. But I'm going full keynote next time!
    Happy Computing,
    - A Mac user no longer under windows oppression

  • Best way to create an html from application

    I need connect to an Oracle database and generate a static report from the result Query.
    Do you know what can be the best way to create this html file ?
    There is exists some html library to use?
    Thanks in advance

    you don't need a library. html is verry easy to use. you only have to write text to a file with html-tags.
    hope it helps

  • What's the best way to create a panorama from a series of images?

    What's the best way to create a panorama from a series of images?

    This is PhotoMerge result
    This is WLPG
    This is a manual merge
    Before anyone comments on the poor image quality, I know. Its not my photography.
    The beach huts were in an arc which doesn't help.
    You can see that the photomerged image has not 'understood' the image and has bad destortion on the doors of some huts. The blend lines are also visible

  • Please introduce the best way to create education in share point

    Hi
    I want to use chm in share point. but i suppose that there are better ways for training because i think chm is suit for software that are windows-based not web based.
    please introduce the best way to create education in share point
    thanks

    Hi
    these are some directions which will help to create a project for your needs
    Record and share grades with students and parents electronically.
    Create online communities for teachers, administrators, and students to collaborate.
    Facilitate sharing of best practices among teachers and administrators.
    Enable students, parents, faculty, and administrators to access your institution's resources anytime from any connected device.
    Post lesson plans, research content, coursework, and more to online document libraries.
    Provide Web-based class registration, lunch ordering, and other services.
    Create dashboards that show up-to-date student performance data to inform instruction and decisions.
    Share information with your district personnel, school board, parents, and community members.
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

Maybe you are looking for