Running labview program as system service

I was wondering if anyone has done this before.  I need a compiled Labview program to start up as a system service with windows XP. I'm using Labview 8.6.1. How do I do it? Thanks!

Sorry, I think I wasn't clear in my last post.
I'm
developing a program in LabVIEW that run continuosly without user
interface, so I want to convert this program to a windows service. I
took a look at http://zone.ni.com/devzone/cda/tut/p/id/3185 but I think
this method does not provide a gracefully stop. Instead, I'm trying to
follow the Kuan Chen's method, about to "create a Windows Service with
LabVIEW" (http://members.cox.net/kuanchen/lvservice/index.html).
At
the end of step 1 says "Build all the server code into a DLL". I did
this: creating a "Shared Library" in "Build Specifications" Project
Manager menu on LabVIEW. This procedure create a dll (LabVIEW.dll) with
2 functions BeginService and EndService.
In Step 2 Chen
says "...Link
AnyService.dll to the LabVIEW dll created in Step 1. Be sure to also
link to labview.lib as it is very likely the LabVIEW DLL will use it.".
I think it means link a dll to dll (AnyService.dll to LabVIEW.dll).
Where do I do that? Is It posible link AnyService.dll to LabVIEW.dll in
LabVIEW? or, Do I need do it from Visual C++?. And How to link
labview.lib?
I
know that if the "link dll to dll" procedure must be done in Visual
C++, then I've been searching in the wrong forum, so let me know.

Similar Messages

  • How to run labview program in debugging mode in windows 95 version

    Respected all,
    I am facing probelm while running probe.vi.
    I received this command "connection to acquisition board was not found" when i run labview program.
    I  am using labview 5.1, fieldpoint FP 1000, NI-DAQ 6.5, Field point explorer version 1.6, Measurement and Automation Explorer 1.0.1.
    I would kindly request you please help me how to run my program probe.vi in debugging mode in windows 95 version, so that i can locate where error occurs.
    Thanking You
    Yours faithfully
    M.Vijay

    Respected Norbert,
    Thank you very much to for your help.
    Norbert : Possible reasons are e.g. wrong IDs for measurement devices. If the error is connect to the FieldPoint, it is possible that it isn't configured correctly.
     I am using Field point explorer 1.6, The Field point instrument FP 1000 and RS-232 port is using. It is confirmed that the field point instrument is working properly by LED light indication test.
    Norbert: It sound like you are using DAQ devices (like PCI MIO 6952E) in the application. Are you sure that you select the correct device ID for this?
    I am asking you to know, If i using Labview and  Fieldpoint instrument FP 1000 to monitor my parameter interms of All, Channel 0, Channel 1, Channel 2, Channel 3, Channel 4, Channel 5, Channel 6, Channel 7 for my measurement.
    But now i need to solve the command connection to acquisition board was not found, The expert say this command is due to there was no AT-AO-10 Analog Output board was present in CPU.
    I do not find AT-AO-10 Analog Output board in my CPU, Previously the instrument was worked perfectly by other person who assembled everthing to measure temperature.
    The only aswer know send by previous person is if my task does not imply the use of a DAQ you probably have to locate where the DAQ driver is called and exclude it from the program. try to run the program in debugging mode so that you can locate where the error occurs.
    I do not know how to proceed his instruction. So i would kindly request you to please help me to solve my probelm.
    I also removed AT-AO-10 software from device manager >> Data Acquisition system >>  AT-AO-10 just now.
    I also find GPIB version 1.30, when i remove in add or remove program, it say that Error removing the GPIB.
    I am eagerly waiting for your help.
    Thanking You
    Yours faithfully
    M.vijay

  • Run Labview program on Windows 7 Ultimate

    Has anyone run labview program (built application) on Windows 7 Ultimate? Is there any issues? I'm trying to define the system requirement for my application installation and run time. Windows 7 Ultimate was required by my coworker for another application and I want to make sure this requirement won't affect my labview application.
    Thanks very much!

    I'm sorry to say you're screwed, it only works on W7 Home Premium.
    Nah! Just kidding, from a programming point there's no noticable difference between the different W7 versions.
    /Y 
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Can't run some programs after system restore to remove virus

    Hi,
    My duaghter's Toshiba had a nasty virus that pretended to be an antivirus software product, that snuck in, between the time her default Norton service expired and I had the time to install Trend.
    Could not remove it using Trend, so upon advice from a friend, decided to do a windows system restore to a point prior to the infection. This worked successfully, and the virus is gone, but now she can't run some programs, I have tried to install Trend again, but that fails as it says that you have to uninstall Norton first. But I can't run Norton, or uninstall it, and some folders on C: are no longer accessible.
    Should I do a complete Toshiba system restore (ie back tofactory settings? This seems a drastic measure, but the issue is beyond my meagre PC skills.
    Thanks,
    Graeme

    Thanks for your reply.
    The main issue is that we cannot run the Norton Anitvirus that came prepackaged with the laptop, and we can't uninstall it either. If you try to perform either action, nothing happens.
    However, when we try to install a new antivirus software, Trend, the install fails because it detects that Norton is installed, and indicates that we must uninstall Norton before we can complete the Trend installation. But we cannot unistall Norton for some reason.
    I am getting my daughter to check what else doesn't work, but Microsoft Office works OK, and most of the games she installed seem to work. I just don't understand why Norton won't work now, and why we cannot uninstall it. I don't know if its due solely to the system restore, or some combination of events. The introductory 3 mont Norton licence has expired some time ago, but it should still let us uninstall. I have also tried to unistall through the Control panel, but nothing happens when I try that either.
    Is there any way to force the uninstall of Norton? Or is a factory reset the only viable option now?
    Thanks,
    Graeme

  • Run labview program without necessity of labview license . is it possible?

    Hi
    I wonder is it possible to have a labview program that can be run without of necessity for labview license?
    now we can produce executable labview programs but they need labview licences.
    Best regards
    s Farashi
    Solved!
    Go to Solution.

    That does not make any sense. You have a license for the development system. You can create an exe and distribute as many copies as you want without further licenses. The only thing you have to distribute with the exe is the runtime engine. Where did you get the idea you needed a license for each exe?
    Message Edited by Dennis Knutson on 01-30-2010 12:11 PM

  • Run a program as a service

    Hi
    What should I do in order to run program I wrote as a service ?
    I am using version 2
    Thanks
    Oren

    Run a program as a service for the local machine that runs on boot, or a service to the web that binds to a port?

  • Run a program with system exec.vi

    hi
    I've got a problem with system exec.
    When I launch a simple program like :  c:\windows\notepad.exe it works very well.
    But when I launch a program with parameters, it doesn't.
    here is the command line:   c:\bmd.exe a.bmd a.txt ffffffff ffffffff  
    When I put this command line in a cmd windows it works perfectly. It don't understand...
    Any idea?
    Attachments:
    Sans titre1.JPG ‏22 KB

    Hi Julesjay,
    I found out that if the command string didn't include the path of the executable (start) the program would fail (at least with matlab executables) So make sure the path of the exe is included in the command string.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Show an Indicator from the frontpanel when a running labview program is minimized?

    Hi Folks
    When a labview program is finish and is made to an executeable program, I want when the program is running to press a  minimize button,
    and whenthe program window is minimized, i want a certain data indicator from the front panel of the minimized Progr. w. to be visible in the minimized program in the Windows XP's Processline . Is it long out or is it possible to solve??
    Regards
    Zamzam
    HFZ

    Gerdw wrote
    Hello Zamzam,
    i think you cannot have an indicator in the Windows process bar.
    But:
    You can change the window title to something meaningful (like: "value= 123.45"). So you can read the actual value of your indicator in the process bar. The property you need is called "Front Panel Window:Title".
    I don't think I understand what you mean by changing the window title. What window are you talking about?  About the Front Panel Window: Title.
     An example for my program  is , if I got a random generator plotted out on a graph or chart, Then i got an indicator for the  values that are been plottet on the graph, and i still need to see this indicator values, even if  i minimize the running VI. That means when i minimize the Running VI. it goes down to the windows process line. There  I need to see the Random nr. generator values.! I dont think its possible in labview. But meaby there's is some methode where I meaby can implement a C program that can manage that! What do you think??
    Regards
    Zamzam  
    HFZ

  • Running labview program every five minutes

    I am very inexperienced with Labview, but I am attempting to build a program.  This program is to get measurements of frequency (can be used to determine strain) and resistance (can be used to measure temperature).  I got the program to work when I push a button on the front panel to start the process and then process data when I push another button.  I need to get this process to be automated because it needs to run for a long time.  I want to take measurements (frequency and temperature) every five minutes. Also, I need to have some delay (maybe 10 sec) before the data is processed because it take time for the data to be received.  Any help is appreciated. I attached the .vi Thanks! 
    Attachments:
    VW DAQ.vi ‏266 KB

    GerdW wrote:
    Hi laplanmd,
    well, you didn't read the style guide before?
    That is the understatement of the year!    Hidden wires everywhere.  I would love to see the tracing with highlite execution on.  SampleCount is a race condition just waiting to happen.
    To the OP:  Please think of us poor volunteers that have to waddle through this mess to try to help you.  We can't decipher code that has hidden wires, right to left wires, structures put on top of controls/indicators.  Please try to clean things up before posting.  In your case, a total re-write using a state machine is very appropriate.
    - tbob
    Inventor of the WORM Global

  • PC Running LabView Program Looses connection with the FieldPoint FP1600 4.11

    If works for a while and looses communication with the PC. I tried to ping the module but it is timing out. If I reset the Power on the modules it starts working again. Any remedy of this problem

    I had a similar problem. I checked and tried lots of things. I finally solved it by: 1) moving the FP1600 to a different location and 2) putting a ferrite bead on the network cable. I think it is 2) that solved the problem. These devices are apparently very sensitive to EMI. You can read more about EMI protection in the knowledge base article:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/2758edc0fb26d27a86256a6b0073b5d4?OpenDocument
    Another suggestion was to run the FP1600 with no modules attached to see if the problem was coming from the modules. They could then be added one-by-one to see which one, if any, was causing the problem. The solution might again be EMI protection.
    Rich

  • Running Java Programm as a Service

    i am using java service wrapper to run my program as a service
    i am getting this error i run the process by saying ./JSWrapper console
    this is my
    wrapper.conf
    # Wrapper License Properties (Ignored by Community Edition)
    # Include file problems can be debugged by removing the first '#'
    # from the following line:
    ##include.debug
    #include ../conf/wrapper-license.conf
    # Wrapper Java Properties
    # Java Application
    wrapper.java.command=/usr/java/j2sdk1.4.2_16/bin/java
    # Java Main class. This class must implement the WrapperListener interface
    # or guarantee that the WrapperManager class is initialized. Helper
    # classes are provided to do this for you. See the Integration section
    # of the documentation for details.
    wrapper.java.mainclass=jswrapper.Main
    set.JAVA_HOME=usr/java/j2sdk1.4.2_16
    # Java Classpath (include wrapper.jar) Add class path elements as
    # needed starting from 1
    wrapper.java.classpath.1=../lib/JSWrapper.jar
    wrapper.java.classpath.2=../lib/wrapper.jar
    wrapper.java.classpath.3=../lib/postgresql-8.0.309.jdbc3.jar
    # Java Library Path (location of Wrapper.DLL or libwrapper.so)
    wrapper.java.library.path.1=../lib
    # Java Additional Parameters
    #wrapper.java.additional.1=
    # Initial Java Heap Size (in MB)
    #wrapper.java.initmemory=300
    # Maximum Java Heap Size (in MB)
    #wrapper.java.maxmemory=64
    # Application parameters. Add parameters as needed starting from 1
    #wrapper.app.parameter.1=jswrapper.Main
    # Wrapper Logging Properties
    # Format of output for the console. (See docs for formats)
    wrapper.console.format=PM
    # Log Level for console output. (See docs for log levels)
    wrapper.console.loglevel=INFO
    # Log file to use for wrapper output logging.
    wrapper.logfile=../logs/wrapper.log
    # Format of output for the log file. (See docs for formats)
    wrapper.logfile.format=LPTM
    # Log Level for log file output. (See docs for log levels)
    wrapper.logfile.loglevel=INFO
    # Maximum size that the log file will be allowed to grow to before
    # the log is rolled. Size is specified in bytes. The default value
    # of 0, disables log rolling. May abbreviate with the 'k' (kb) or
    # 'm' (mb) suffix. For example: 10m = 10 megabytes.
    wrapper.logfile.maxsize=0
    # Maximum number of rolled log files which will be allowed before old
    # files are deleted. The default value of 0 implies no limit.
    wrapper.logfile.maxfiles=0
    # Log Level for sys/event log output. (See docs for log levels)
    wrapper.syslog.loglevel=NONE
    # Wrapper Windows Properties
    # Title to use when running as a console
    wrapper.console.title=Test Wrapper Sample Application
    # Wrapper Windows NT/2000/XP Service Properties
    # WARNING - Do not modify any of these properties when an application
    # using this configuration file has been installed as a service.
    # Please uninstall the service before modifying this section. The
    # service can then be reinstalled.
    # Name of the service
    wrapper.ntservice.name=testwrapper
    # Display name of the service
    wrapper.ntservice.displayname=Test Wrapper Sample Application
    # Description of the service
    wrapper.ntservice.description=Test Wrapper Sample Application Description
    # Service dependencies. Add dependencies as needed starting from 1
    wrapper.ntservice.dependency.1=
    # Mode in which the service is installed. AUTO_START or DEMAND_START
    wrapper.ntservice.starttype=AUTO_START
    # Allow the service to interact with the desktop.
    wrapper.ntservice.interactive=false
    after searching and doing google
    i decided to change wrapper.java.mainclass=jswrapper.Main
    this line to
    wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
    this line which didnt solve my problem, i am getting this error
    wrapper | JVM did not exit on request, terminated
    wrapper | JVM received a signal SIGKILL (9).
    wrapper | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
    wrapper | There may be a configuration problem: please check the logs.
    wrapper | <-- Wrapper Stopped

    See the Java Service Wrapper at
    http://wrapper.tanukisoftware.org/doc/english/introduction.html
    It's really good and easy to use.
    Bye.

  • Run java program in background

    I want to run a java program in background in windowsXP...can anyone help please......can anyone suggest an easy software for running java program as windows service...i tried one but without any success

    How many of the links here have you tried while you were waiting for an answer?
    http://www.google.com/search?q=running+java+program+as+windows+service
    (Note that the query is a direct copy/paste from your post.)

  • Run java program overnight

    Hey,
    I left my office yesterday evening leaving my macbook on
    while it was running a java program that it's supposed to requires between 2 and 3 hrs.
    This morning not only the program was still running (hard to believe it takes more than 12 hrs!)
    but when I typed in the shell the 'ps -all' command
    it says the program has been running for around 30 mins, and now it's still running!
    Is it possible that with certain settings the mac stops its processes after a while?
    What should I check?
    Thanks for helping, I'm actually a newbie in the mac world:)
    g

    How many of the links here have you tried while you were waiting for an answer?
    http://www.google.com/search?q=running+java+program+as+windows+service
    (Note that the query is a direct copy/paste from your post.)

  • Can Labview Programs run from the Windows System Tray?

    Does anyone know if Labview Runtime executables can be run in the Windows System tray? Any help would be appreciated.
    I'm creating a program that I want to run in the background, not visible on the desktop or taskbar.
    Thanks,
    Tom

    Requirements    Price: $29.95
     Application Software:
    LabVIEW 7.0+
     Toolkits Software:
     Additional Software:
     Language's:
    LabVIEW
    INVtray LabVIEW Toolkit allows the programmer to create a LabVIEW program that can be hidden from the task bar and accessed through the System Tray.  Comes with a sample VI that demonstrates all the features of the toolkit.

  • Problem with running a program under Labview 8.6

    Hello,
    I am writing you this to ask for your technical support to fix the problem I am facing at our Lab at University of California, Irvine.
    Ms. Vanessa Trujillo has kindly come to our lab a couple of times and tried different things to resolve the issue, but unfortunately the issue is not resolved yet. Here is a summary of the problem:
    We used to use Labview 6.1 for our fatigue testing and data acquisition.
    Our
    program worked just fine under the 6.1 version We recently upgraded our software to Labview 8.6. We have also purchased a new computer that has higher capacity than what your website requires for Labview 8.6. The new computer has Windows Vista We transferred our old program/subprograms from the old computer under Labview
    6.1 to the new computer with labview 8.6. However our program that worked fine with the 6.1 version is not working with the updated version (ver 8.6).
    There
    are 6 errors in the error list. It appears there are six files of my program missing under the new version, even though we transferred all files.
    The software searches for those files but can't find them.
            For example one the box pops up indicates:
            loading:
                        <vlib>:\Daq\lvdaq.dll
            searching:
                        C:\Program Files\National Instrument\LabVIEW 8.6\instr.lib\Agilent34401\public\utility
            I get several message like this. I have to cancel/ignore them all to be able to open the program.
    When we go to VI's under Measurement I/O there is nothing (empty).
    We use a PCI-MIO-16XE-50 for our data acquisition During Labview installation on the new computer, I was asked if I wanted to install the device drivers. I had two options, "Now" or "Later", I picked Now but I didn't have the DVD's/CD's for the device drivers. Therefore I had to select later to complete my software installation Later after Labview 8.6 installation, we installed the device drivers (traditional Ni DAQ and Ni DAQmx) from the two old CD's we had in our lab from a couple of years ago (the CD's were Ni DAQ 7). after installation, the PCI board on the computer was recognized by the device driver. However we still could not run our program under the new version of Labview (same situation and the same messages) I called 1-866-275-6964 on 9/2/08 and talked to Grant (service number:
    1228841). He recommended that I download and install the updated version of device drivers.
    Since I didn't have the DVD/CD for updated device drivers, I contacted Vanessa Trujillo. She gave me the DVD for the updated Ni DAQ (Traditional and mx).
    But
    when I tried to install the updated device drivers I got a message something like "some unsupported filed have been detected,..." so the updated device
    drivers were not installed. It should be noted that up to here we still had the Ni DAQ (traditional and mx) installed on the computer from our old CD's (Ni DAQ 7).
    Vanessa and I talked to Tom at the technical support department. He recommended that we download and install the Beta xx version for Ni DAQ since we were using Windows Vista. Mike put the Beta software on the Ni website/outgoing so I could download and install it. He asked me to uninstall the traditional Ni DAQ that we had on our computer from the older CD's. He
    asked me not to un-install the Ni DAQmx (that we had installed from the old
    CD). I was able to download the Beta software, however I could not install it since I got a similar message that some unsupported files were detected.
    Right now we don't have any version of traditional Ni DAQ installed on the
    computer but the NI DAQmx (from old Ni DAQ 7) is still installed on the computer. Vanessa let me borrow her new Ni DAQ DVD but as I explained I am not able to install the device drivers.
    Vanessa - Did I miss anything?
    Please advise. My cell number is 619-778-2033. I will be at our lab at UC,
    Irvine at 2:00pm (CA/Pacific time). Please call if you have any questions.
    Thank you

    To me, it looks like you are missing some of the drivers and subVI's used in your program.
    Whatever device you are using to measure fatigue or any other device probably came with a driver.
    You need all of these drivers installed on this new computer.
    Also, any subVI's and libraries you use in the program must also be installed on the new computer.
    Whenever you get a message that says you are missing some component (the ones that you said you press 'ignore'),
    see if you can find that library or subVI on the older computer. If so, save it to something so you can transfer them to the new computer. 
    Cory K

Maybe you are looking for

  • Sync apps bought on Phone to iTunes

    I bought several apps on my phone, and I am unable to sync them back to iTunes (I'm on v7.7, iPhone 2.0). They work great on my phone, but they have not copied to iTunes. I get a prompt on sync about "purchased items on your phone not in iTunes libra

  • APP V 4.6 Issue in XLA parameter

    Dear All, I request your kind attention to one of the critical issue which I am currently in. I checked with couple of folks in Microsoft and tried all suggested troubleshooting steps suggested by them. Below is the brief description of client requir

  • Dreaded blue question mark

    I am running Mail 2.0.5 and have a problem with just one person who sends me messages with images imbedded that won't open and aren't listed as attachments. All I get is the blue question mark which seems akin to the red X in Windows. Attempts to cop

  • Inbound idoc  error in the source system

    HI,experts I manually configurate the idoc type ,message type ,etc between the BW system and r/3 source system when the automatic program encouters errors. And the communication between BW and source sysyem  seems ok since the source system is activa

  • What program can I touchup 3D Acrobat pdf files with?

    I used to use Illustrator but it doesn't show the 3D data. How do I touchup 3D Acrobat files now? Glen Charles Rowell P.S. I don't own Powerpoint