Launch particular labview VI from VB

I want to launch a particular Vi when I start Labview. This is done by passing an argument to the Labview executable which launches an 'Untitled.vi'. I want to launch a particular VI instead of the 'Untitled.vi'

You can get better control over this if you use the LabVIEW automation interface. For example, create a new VB application, go to the Project/References menu item, and check "LabVIEW 6.0 Type Library". Add a button to the form, double-click on the button, and try the following code:
Dim app As labview.Application
Set app = New labview.Application
Dim path As String
path = app.ApplicationDirectory & "\examples\dll\hostname\hostname.vi"
Dim vi As labview.VirtualInstrument
Set vi = app.GetVIReference(path)
vi.FPWinOpen = True
vi.FPWinIsFrontMost = True
vi.Run
Check out the other properties and methods in the LabVIEW automation interface to see other interesting things that you can do. Hope this he
lps.
- Elton

Similar Messages

  • Control a usb missle launcher with Labview

    I have bought a toy named "usb missle launcher"
    The control software have a dll named "hiddog.dll"
    how coul i use the hiddog.dll with labview  
    that is mean
    how coul i control the usb missle launcher with labview
    Attachments:
    Missile Launcher.zip ‏2384 KB

    The Call Library Function Node will allow you to call a DLL. To do so, you need the documentation on the DLL. This documentation would list the functions as well as the arguments for those functions (i.e., inputs and outputs). There does not seem to be any documentation in what you uploaded. Actually, I have no idea what you uploaded, aside from the fact that one of those files was the actual DLL.

  • Error launching the 'LabVIEW.A​pplication [Error Code: -18001]

    Hello,
    i have a TS 3.4 Sequence wit LabView 8.21-Teststeps.
    The Sequence is called from an Labview-OperatorInterface.
    In a step which run before 100 times without problems i suddenly get the error-message:
    ErrorMessage: Error executing substep 'Run'.Unable to launch the 'LabVIEW.Application' ActiveX automation server [Error Code: -18001]
    After a restart of al NI-Software everything is working normal again.
    What does this error mean and what should i do with it?
    Should i ignore the error and try to execute the step again or does this mean tht the ActiveX-Server was lost forever?
    How can this problem happen?
    Thanks for your help
    Solved!
    Go to Solution.

    Hi,
    Its difficult to know what the problems is that causes this. I am guessing you are using either the RTE or Runtime Server rather than LabVIEW Developement system.
    Once you get this error you can't ignore it and hope that repeating the step will regain the link to the server. (well that's what I've noticed).
    There is a patch for labview 8.2.1 http://joule.ni.com/nidu/cds/view/p/id/906/lang/en that you might what to try.
    And there is TS version 4.0.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Hide Particular Item Group from Selection Criteria of Sales Analysis Report

    Hello Experts,
    Is this possible to Hide Particular Item Group from Selection Criteria of Sales Analysis Report?
    I have one Item Group as 'Special Items'.
    Now, when I open  Item wise sales analysis report, I want to hide above mentioned group from selection criteria.
    Thanks in advance.
    Best Regards,
    Pankit Sheth

    Hi,
    1. Not possible to put validation for selection criteria windows.
    2. In standard, I don't think it is possible to hide only one item group.
    3. Alternatively don't give authorization to user for running sales reports. If still need create customized query and ask user run every month.
    Thanks & Regards,
    Nagarajan

  • Launching Web Start Program from an Applet?

    Hi,
    I need to launch web start program from an applet.
    How can I do that?
    I have tried opening a new web page pointing to the jnlp file from an applet. But, that does not seem to start the web start.
    Thanks in advance
    rg

    I am new to this so may be my questions will appear stupid to a pro, but this is an erro I am getting at compile:
    Can't make static reference to method java.lang.Process exec(java.lang.String) in class java.lang.Runtime.
         Runtime.exec("test.exe");
    What could be the problem?
         ^

  • Is it possible to call a VI that is inside a LabVIEW executable from a TestStand sequence?

    I have created a custom TestStand operator interface and have modified the default sequential process model to display a UUT information dialog that prompts for more information than just the UUT serial number.  This UUT information dialog is a LabVIEW VI.  To distribute the operator interface, I build it into an executable.  As part of the build process, I make a copy of the UUT information dialog VI (which is part of my operator interface project) and place it in the same folder as the executable.  I have then configured the sequential process model to call the dialog VI from this location.  It would be really nice if I could embed the UUT information dialog VI inside the operator interface executable so that I could distribute just an executable instead of an executable and separate VIs.  Is this possible?  In other words, is it possible to call a VI that is inside a LabVIEW executable from a TestStand sequence just like a standard LabVIEW VI call?

    Ryan,
    The dialog that you've created isn't being directly called by the OI at all and shouldn't need to be included in the same directory as the OI for distribution. Since you are modifying the PreUUT of the default process model, you will give the path to the VI in that step, create a deployment and then manually copy the VI to the directory referenced in the step. The VI is considered a support file for the process model and is not related to the OI at all.
    Test Engineer - CTA

  • How to exclude stock of a particular storage type from collective availabil

    How to exclude stock of a particular storage type from collective availability check in MDVP.

    you can set the storage location as 'Storage location stock excluded from MRP' value '1' in the field
    Sloc MRP indicator , in MRP view $ when you enter a storage location accessing the material master.
    Thsi is the only way to exclude the storage location, you have to do it per each material and also it is excluded from the MRP.
    With this option the stock is not considered in ATP.
    IF you need the storage location in the MRP, then you should consider the use of MRP Areas.
    With the MRP Areas you define which plants/storage locations belong to each MRP area and the ATP is performed for eah area with the stocks that exist in each of them.
    Please if the issue is solved set the thread  as answered and provide the points to the useful replies.
    thanks for your cooperation

  • How can I call a LabVIEW executable from within another LabVIEW executable?

    I have a customer requirement for two LabVIEW executables. Based on their current setup, they need to run executable "A" or "B", both of which are under independent revision control. I have created a third "selection" executable that allows the operator to choose between one of the two, but I am receiving errors when I attempt to call a LabVIEW executable from within a LabVIEW executable using either the "System exec" VI or the "Run Application" VI. If I call a non-LabVIEW executable (such as Windows Explorer) everything works fine.

    > I have a customer requirement for two LabVIEW executables. Based on
    > their current setup, they need to run executable "A" or "B", both of
    > which are under independent revision control. I have created a third
    > "selection" executable that allows the operator to choose between one
    > of the two, but I am receiving errors when I attempt to call a LabVIEW
    > executable from within a LabVIEW executable using either the "System
    > exec" VI or the "Run Application" VI. If I call a non-LabVIEW
    > executable (such as Windows Explorer) everything works fine.
    As with the other poster, I suspect a path problem. You might try the
    path out in a shell window, and if it works, copy the complete absolute
    path to LV to see if that works. LV is basically passing the comma
    nd to
    the OS and doesn't even know what is in it, so you should be able to get
    it to work.
    The other poster commented on subpanels, which is a good suggestion, but
    without going to LV7, an EXE can have open more than one VI. You can
    use the VI Server and the Run method to fire up another top-level VI.
    The decision is whether you want both to be in unique processes.
    Greg McKaskle

  • How to call a labview dll from excel-VBA?

    How to call a simple Labview DLL from Excel VBA?
    I have seen examples of DLL calls from VB but does it work the same way for VBA? I have 2000 excel and Labview 8.5. I created the DLL and tried to call it from VBA using the same type of code as in NI's website example(ofcourse its a bit diff with 8.5)
    http://zone.ni.com/devzone/cda/tut/p/id/...
    BUT it errors out when called from excel
    ERROR: The object invoked has disconnected from its client

    You would need to provide more details about the LabVIEW DLL, such as the prototypes of the functions (VIs) that you're trying to call, and your actual VBA code. Specifically, what object you're trying to create. You should also make sure the Run-Time Enginer is installed, as well as any required libraries such as the VISA Run-Time if you're using VISA. Have you made sure to enable the ActiveX server for the DLL?
    A search yielded the following items that you may wish to peruse:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=261345&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=170&message.id=45099&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=170&message.id=299209&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=170&message.id=195846&requireLogin=False

  • Restrict PR/PO/GR for a particular company code from particular date

    Hi Experts
    How we can restrict PR/PO/GR for a particular company code from a particular date?
    I know PR is not directly linked with company code
    PO can be restricted by deactivating the assignment between company code & plant
    GR- we can use posting period option.?
    Suggest me the best solution for the above requirment.
    Thanks/karthik

    hi
    Obvoiyusly , you can stop the company code posting by not activating the month end closing of periods (MMPV) in MM and similarly in FI ( OB52).
    By removing the assignment you can stop PO creation for the company code but you need to ensure that all the old, un-finished PO/SA and other related activities are taken care off before that.
    Regards

  • HT201272 My You Tube launcher app has disappeared from the home page and can't be found. How do I reinstate it?

    The You Tube launcher app has disappeared from my home screen. How can I reinstate it?

    The YouTube app is not included in iOS 6. You will either need to try one of the YouTube apps from the store (there is an iPhone optimised app from google, and other people have said that they are working on an iPad version and there is Jasmine), or try accessing the mobile version via Safari : http://m.youtube.com (you can create a home screen shortcut for the site)

  • How to get Manager name of a particular BP/User from territory management

    Hi Guys,
    I want to retrieve the Manager name of a particular BP/User from territory management. The manager might be in any territory hierarchy level above the user.
    Please guide.
    Regards,
    Shaili

    Hi Shailip,
    Basically Territory hierarchy is customized based on client's business, from your reply if i understood properly i think your territory has 3 levels and 
    First level : District
    Second level: Area
    Third level: Branch
    when an employee at third level is passed, you need employees assigned to area and district levelwhich are above Branch(in your case managers)
    Solution:  Example
    First level : District - territory length(2 char)
    Second level: Area - - territory length(4 char)
    Third level: Branch- territory length(4 char)
    1. Read the territory hierarchy(which is customized to meet clients requirement) using function module
        CRM_TERRMAN_TERRLEVEL_READ ehich gives territory levels with territory length and territory offset
    2. pass employee(business partner number) to FM  CRM_TERRMAN_TERR_EMP_DETERMINE  and get the branch path id.
    3. Based on territory length for above levels drill down to Area's path id and District's path id and pass those path id's to
    FM CRM_TERRMAN_EMPLOYEE_DETERMINE  to get managers.
    Hope this helps.
    Thanks,
    Priyanka

  • How to ignore a particular Aborted Job from CCMS Alerts

    Hello All,
    I am trying to ignore a  particular Aborted job from reporting in CCMS alerts. Any one can suggest how can I achieve this ?
    Regards
    Amit

    Johan Stf wrote:
    Writing the script would take longer time than just drop the users manually. :)True, if there weren't that many databases and the operation didn't have to be done very often. Given the OP's description of 40 databases and frequent execution, I'd definitely write a script. The script could have the list of databases baked in, and pass the username as a command line parameter. There would be no need to check to see if the user exists .. just issue the DROP. If it exists, it gets dropped. If it doesn't exist, so what?

  • How can I EXCLUDE particular folders/files from being included in the Lightroom 5 catalog?

    How can I EXCLUDE particular folders/files from being included in the Lightroom 5 catalog?
    I want to be able to specify paths and/or filename patterns that should NEVER be indexed in the catalog: not that they don't show up under certain circumstances, just that they are NOT THERE (in the catalog) to begin with!!
    I also do NOT want to have to respecify these criteria when "synching" the catalog; criteria should be PERMANENT (or at least 'til they're changed in LR preferences).
    I cannot be the only person in the world with this problem--but it sure seems like it, because I've spent an inordinate amount of time doing online searches & I can't find anything that addresses this issue.
    Can anyone PLEASE HELP me?
    BTW, Adobe employees (if there are any of you out there), I'm simply trying out LR now.  If I can't get this (seemingly fundamental) thing worked out (with relatively little effort), Adobe is going to LOSE A SALE of LR, because it's useless to me without this feature.
    Thanks,
    -t

    Thanks for the info... but how to you TELL LR to EXCLUDE images in a particular directory/directory structure?  The intuitive place to indicate this would be a right-click on the folder itself (or particular images), but no such option exists..  "???"  Thanks again, -pt
    The same way that you avoid buying things in your local convenience store. You don't stick a lot of labels on certain shelves, slap a credit card down on the counter each week, and announce you are buying everything that doesn't have a label on its shelf. You just choose the things you want to buy.
    Your mention of "synching the catalog" suggests that you are expecting the LR library, to mirror the total images in the computer by default. This is not IMO a useful way to think about it. LR contains no images at all, by default: the Catalog starts out empty.
    Then you Add just those selected images that you want to import, among those already in the computer. That's a one-off process which is IMO best achieved controllably in batches - which you can keyword and otherwise organise in LR terms as you go. For new incoming images, ongoing, it is a question of Copying, Moving or Adding these in defined batches as they occur - from the relevant location only - there is no need to re-consider the import of a wider body of images. And one would not want to repeat that whole task anyway: one's prior investment in achieving the right selectivity, has a positive value.
    RP

  • Unable to load LabVIEW RT from drive

    Trying to boot RT on PXI-8187 controller with original setup, what ever RT boot selection is used either hardware switch or BIOS RT boot option, the terminal will show the following:
    Unable to load LabVIEW RT from drive!
    Booting safe mode from ROM...
    mount: Mounting /dev/Ma1 on /home/ftp/c failed: Invalid argument
    Entering safe mode.
    IP address is: 0.0.0.0
    Of course after that you can't do any thing to configure the RT target from the MAX on the host computer.
    Please Help.

    Hi,
    I used the recovery CD to change the file system to NTFS, it took a while and it installed windows XP from scratch differently from FirstWare that ghosts it (I think). And it didn't install any NI stuff what so ever.
    At the end I got the same result as with using the remote system format disk option.
    i.e. The RT controller boots in safe mode displaying the previous message without the mount error but this time I can configure the IP address.
    Still I can't install software to it, I get the list of features to install, I select them and press next, then I get a dialog saying:
    Cannot process install because other dependencies are required:
    LabVIEW RT 1.0.1
    LabVIEW RT 6.0.1
    LabVIEW RT 6.1.0
    LabVIEW RT 7.0.0
    LabVIEW RT 7.1
    Is this a host or RT Controller issue now?
    What's next? Thanks for the help

Maybe you are looking for