How do I call a LabView VI via dll to display its control panel in a tab of my uir in LabWindows

Hi User Community,
I am trying to build a LabWindows Top Level Control Panel to call individual LabView VI's, which have been compiled into a dll.
I have no problem using the CmtScheduleThreadPoolFunction to start a new thread that calls these VI's however, I'm having trouble trying to get the display that comes up in it's own window to display in a tab of my existing UIR.
I've compiled the DLLs to always display the VI Control Panel window when running - and usually it covers the whole screen you can't see the LabWindows window until the VI completes.
Is there a definitive guide to LabWindows Windows/Panels/Tabs? Or does anyone have experience with this? Any help would be appreciated.

Hello,
I would suggest reviewing the Programming with Panels and Programming with Tabs CVI Help documents.  I think that this can be done with the LoadPanelEx function.  Let me know how it goes!
As well, I found some example code to get you started.
How to access individual controls within multiple tabs in CVI
http://decibel.ni.com/content/docs/DOC-14187
Regards,
Shawn S. | NIC
Instrument Driver/IVI PSE
National Instruments

Similar Messages

  • How would I call a method inside a dll?

    How would I call a method inside a dll? Is it even possible in Java? Like in VB you would do something like this: XXX.dll --> XXX.Activate()... I have already loaded the dll like this:
    String xxx = "C:/WINDOWS/system32/xxx.dll";
    System.load(xxx);
    Please help?
    THX

    I've got another question.
    I've gone through the link you posted and a couple others that I found.
    I am able to create an interface using the windows kernel32.dll and go through an example I found.
    But when I try to use a dll that I have from another application, I have problems.
    Here is what I have for the interface.
    public interface IAiCamDeviceControl extends StdCallLibrary {
         public IAiCamDeviceControl INSTANCE=(IAiCamDeviceControl)Native.loadLibrary("D:\\IAiCamDeviceControl.dll",IAiCamDeviceControl.class);   
    //        public long GetVersion( String s );
    //        public long Close();
    }The interface that works looks like this:
    public interface Kernel32 extends StdCallLibrary {
         public Kernel32 INSTANCE=(Kernel32)Native.loadLibrary("Kernel32",Kernel32.class);I thought that the problem might be using the path name for the library, so I copied it into the system32 directory.
    Still get the same error:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'D:\IAiCamDeviceControl.dll': The specified module could not be found.
    My main looks like
    public class Main {
        public static void main(String[] args) {
    //          Kernel32 lib=Kernel32.INSTANCE;
    //          Kernel32.SYSTEM_POWER_STATUS batteryStatus=new Kernel32.SYSTEM_POWER_STATUS();
    //          lib.GetSystemPowerStatus(batteryStatus);
    //          System.out.println(batteryStatus);
                IAiCamDeviceControl camDev = IAiCamDeviceControl.INSTANCE;
    }The commented part is from the version that worked.
    All I attempted to do here was just create an instance of the interface.
    Any idea why I can't access the dll?
    The dll is the same one that is used successfully in VB, C#, and C++ demo programs, so I suspect it is a good dll.

  • Why Internet Explorer 8 is appared when Internet Explorer 11 is removed via "Programs and Features" on Control panel?

    Hello everyone,
    I always want to thank you for usefule information from this forum.
    My issue like this subject is that I got a symptom, when I removed Internet Explorer 11 via "Programs and Features" on Control panel and I get reaponse and Internet Explorer 9 is appered directry throught "Programs and Features"
    under Windows Server 2008R2.
    However under another environment, I performed just same task under Windows Server2008R2 and then Internet Explorer 10 as previous IE via "Programs and Features".
    Could any one let me know why this symptom had been happen, what issue caused this?
    Also method to investigation for this issue is welcome and helpful.
    Thanks.....

    Hi,
     I checked IE11_main.log at the server and rearise basically, previous version 9 of one server and for another server previous version 10.
    I wonder why upgrade path is different between two environment of server.
    Anyway could anyone let me know how to investigate?
    Thanks lots.
    I would say, it depends on how you manage patching/updating, in your environment.
    Do you use automatic updating, in your environment?
    e.g., WSUS ? or ConfigMgr?
    Or, do you use windowsupdate.com and manually perform updating?
    An example, if you login to a machine, and are prompted for an update/upgrade to IE, do you just do it on that machine?
    Or, do you have a plan or method, where you ensure all machines are maintained/updated in the same way, by a certain person or team?
    Probably, the difference in these two machines, is due to human actions :)
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • How and where can I get intel hd 4000 graphics drivers and controll panel to 3d settings ... I want to turn off my vertical sync! please someone has to help me with this problem!

    How and where can I get intel hd 4000 graphics drivers and controll panel to 3d settings ... I want to turn off my vertical sync! please someone has to help me with this problem!

    So are there any other ways to get there, or to change options there?
    And is it plausible to use 3d vision (like nvidia its one) but than without an nvidia graphics card. for watching movie's and gaming etc.
    Thank you!

  • 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 do I call a LabVIEW created DLL from within Microsoft Excel (VBA)?

    Hi,
    I'm trying to get Microsoft Excel 2003 to call a function stored in a dll that I created using LabVIEW 7.1.  The function is very simple and is called "binary_file_to_ascii".  Basically it just reads a LabVIEW created binary spreadsheet file and outputs the columns as float arrays.
    The function arguments are as follows:
    INPUT : String that contains the path to the binary spreadsheet file
    OUTPUT : Number of rows in the spreadsheet
    OUTPUT : Number of columns in the spreadsheet
    OUTPUT : Float array containing the elements in column 1
    OUTPUT : Float array containing the elements in column 2..
    OUTPUT : Float array containing the elements in column 11
    However, for some reason there is something wrong with my VBA code and/or the way I created the DLL in LabVIEW because Excel crashes when it loads my DLL.
    What do I need to change in my VBA code or my LabVIEW DLL build settings to fix this?
    I've attached to this post a ZIP file that contains all my code and a sample binary file.
    Your help with this will be much appreciated.  Thanks!
    Richard
    P.S.  Here is the VBA code I'm using:
    Private Declare Function binary_file_to_ascii Lib "C:\temp\binary_file_to_ascii\binary_to_ascii.dll" _
    (ByVal binaryFile As String, ByVal nrows As Long, ByVal ncols As Long, ByVal column1 As Variant, _
    ByVal column2 As Variant, ByVal column3 As Variant, _
    ByVal column4 As Variant, ByVal column5 As Variant, _
    ByVal column6 As Variant, ByVal column7 As Variant, _
    ByVal column8 As Variant, ByVal column9 As Variant, _
    ByVal column10 As Variant, ByVal column11 As Variant)
    Private Sub load_binary_spectra()
      Dim nrows, ncols As Long
      Dim col1(), col2(), col3(), col4(), col5(), col6(), _
          col7(), col8(), col9(), col10(), col11() As Variant
      Dim lRetVal As Long
      Dim spectra_path As String
        spectra_path = "C:\temp\binary_file_to_ascii\sample_binary_file\sample_binary_file.dat"
        lRetVal = binary_file_to_ascii(spectra_path, nrows, ncols, _
                  col1(), col2(), col3(), col4(), col5(), col6(), _
                  col7(), col8(), col9(), col10(), col11())
        MsgBox (spectra_path)
    End Sub
    Message Edited by Richard Ballantyne on 07-25-2007 02:39 PM
    Message Edited by Richard Ballantyne on 07-25-2007 02:39 PM
    Attachments:
    binary_file_to_ascii.zip ‏192 KB

    Hi,
    I don't know anything about Visual Basic, but here's my guess.
    When you load the DLL with this line of code
    Private Declare Function binary_file_to_ascii Lib "C:\temp\binary_file_to_ascii\binary_to_ascii.dll" _
    (ByVal binaryFile As String, ByVal nrows As Long, ByVal ncols As Long, ByVal column1 As Variant, _
    You are defining how the parameters are sent. It seems that all are sent by value (ByVal), but in the DLL header, some of the function's
    parameters are defined as pointers(see the function prototype below, look for asterisk(*))
    void __stdcall binary_file_to_ascii(PStr binaryFile,
                                                    long *numberOfRows,
                                                    long *numberOfColumns,
                                                    float column1[],
                                                    float column2[],
                                                    float column3[],
                                                    float column4[],
                                                    float column5[],
                                                    float column6[],
                                                    float column7[],
                                                    float column8[],
                                                    float column9[],
                                                    float column10[],
                                                    float column11[]);
    Can you define in VBA that you want to use pointer instead? Maybe by using ByRef (as by reference).
    Hope this helps.

  • How can I call a web service via Adobe Reader XI?

    Hi all,
    I have created a document using LiveCycle (Trial) to get something from my custom web service, using Adobe Pro to open the file and its success to call the web service when clicking the call button, however, when I try to do the same thing using Adobe Reader XI, seems not work. Please help!
    Best Regards,
    Black Leong

    The only way it can work with Reader is if the document is Reader-enabled with LiveCycle Reader Extensions or the similar product from Datalogics. Acrobat is not able to add the corresponding usage right.

  • How can get the touchpad turned off when my logitech mouse is plugged via usb. when I used control panel to turn off tp it says it is disabled.

    both touchpad and mouse are active even though the touchpad is disabled

    I am saying that the touch pad still is active/turned on/ works, even though it is disabled according to the menu screen that I reach through control panel. It works all the time, in any program I am using. My latest attempt is to delete the software (Alps vers. 7.1207.101.225) but I see that has not worked either. I'm a poor typist and need to watch the keyboard and my thumbs touch the pad and send the cursor and current words somewhere other than the line on which I am trying to write. Very frustrating.[

  • How to uninstall "ghostery" that is not listed in add ons or control panel on win 7?

    There have been a fewf popup windows occurring on my computer that I have no knowledge of consenting to. Two of them just pop up; one is in video format and the other two are advertizing windows. The only one that I was able to glean an I.D. from is "ghosty" or something like that. I looked in my add on's and it's not listed in there or my add/remove list. I have no idea how they entered, but I want them off of my computer. I did find one add on that I did not recognize and I disabled that. My greatest pet peeve about Firefox and/or Adobe updates etc is that the spyware virus-like junk creeps in somehow. I know how to keep the obvious ones out like McAfee on Adobe but the others sneak in somehow. My home (google) changes with the regularity, and I'm so frustrated with this crap. I have Win XP on my desktop and Win 7 on my laptop, How do I get rid of these maddening pop ups? I do very few downloads and only from trusted sites, ie Big Fish. My desktop has slowed down so much! I have Norton 2014 9n both computers and have had it on longer than the current slow down so I know it's not Norton.
    Thank you,
    T

    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • How the heck does one change one's email address in the Control Panel

    I know this is the wrong place to post this but I don't know where the right place is!
    In about a week I am changing to a different broadband provider and the email address I have associated with these forums will no longer be valid. Obviously very easy to deal with - just go to "Your Control Panel" and change the email address ! I must be missing something because I can see my email address but cannot see any way to change it ! What am I missing?

    sabre150 wrote:
    Thanks for that! I tried to use an old email address of mine but it won't let me because 'that account already exists' . Had to create a new one!
    What a wonderful bit of software this forum software is.My +5k post count did not make it through the migration;
    When the migration guidelines said you have to use the same email address in the old and the new account I just changed the email address in the old java forum account to be a current email address, then signed up to the new forums with that... They could have said it must be the email address you used when you originally signed up in the old java forum - but that was back in '98 and I probably did not have access to that when the migration happened...
    I don't particularly care about the post count, but as my old posts are not linked to my account it makes it difficult to search through them...

  • How to remove the redundant input English (United States) in the Language Control Panel on Windows 8?

    I have English (Australia) and English (United States) in the same order installed in the Language panel.
    I try to remove the redundant English (United States).  I click Options to open it.  I found the option Remove for the Input method is dimmed out and disabled.

    Hi,
    To uninstall language package try following steps:
    Type lpksetup.exe in search charm.
    Press enter to open Install and uninstall display languages wizard.
    Try to uninstall it.
    If there is any error happened, post back here.  
    Kate Li
    TechNet Community Support

  • How to open the JRE Control Panel from Firefox?

    I installed jdk1.5.7 and firefox and I also installed the jre plug-in in firefox. Now my firefox can display my applet now. But it still has a problem here. As we all know, in windows environment, when the applet has been loaded, a java control panel icon will display in the windows system tray area and I can open the control panel which I can monitor the output of my applet.
    My problem is how to do this in firefox environment? From where can I open the control panel window then I can monitor the output? By the way, I have opened the setting "Display the control panel" in advanced tab of jre's ControlPanel application.

    here is the easiest way to do what you asked...
    https://addons.mozilla.org/firefox/141/
    Ron_W

  • Call a static method via RFC

    Hello people,
    How can I call a static method via RFC?
    I am in SRM and would like to call a static method defined in ECC.
    What is necessary to be configured in this class/method?
    Thanks!!!

    You may need to write RFC in ECC and call it from SRM
    and write following code in RFC for call a static method
    reference_obj=>method_name
    EXPORTING

  • Calling a function from a dll written by using visual studio c++

    Hi, how can i call a function from a dll which is written by visual studio c++ in test stand?  Although the functions in dll are exported and i've chosen c/c++ adapter, i saw no function in test stand. Is there a different step while i'm calling a function from a dll written by c++ than calling a function from a dll written by cvi?

    Hey Sadik,
    Selecting the C/C++ DLL Adapter Module should be sufficient for this. When you drag an action step for this onto the Main Step and navigate to the location of the DLL, the function list should populate and you should be able to select the function you want to use. If this is not the case, would you be able to post this DLL so that we can test this on our end?
    Regards,
    Jackie
    DAQ Product Marketing Engineer
    National Instruments

  • What is Conexant D850 PCIV.92 Modem tv_confMgrErr35? How to fix it. Also how to get flash player to show up in control panel (not showing up)

    What is conexant D850PCIV.92 Modem tv_configMgrErr35? How to fix this.
    Why doest flash player show up in control panel --to clear cache--How to fix it also. Java doesnt show upn in the control panel since I updated it either.

    kestark
    This is Vista.
    Go to the Inspiron 1525 support page. Find the small blue "Change OS" and click on the arrow. Select Vista.Then download and install these 3 items with a restart between each one.
    1. Dell System Software in the System Utilities category.
    2. Intel Mobile Chipset in the Chipset category.
    3. Sigmatel audio driver in the Audio category.
    See if it works any better after you get the Sigmatel driver installed.

Maybe you are looking for