DLL front panel display

Hi all
I need to interface to an existing program via a DLL.
The existing program loads custom "drivers" for hardware these "drivers" can display a debug screen that is docked in the calling program.
How do I write my dll for the calling application to be able to call a display panel function in my dll and return to the main program with out closing the dll displayed panel.
Currently when the app calls the dll it will wait for me to close the displayed panel before continuing. I will try to solve the docking problem later.
Solved!
Go to Solution.

Thanks Mike
I tried that. It works if the vi si run seporate from the DLL, ie I ref it from the location on the disk.  Is this the only/best way to do this?
It opens a new ap on the windows task bar. I don't like that. I might have 20 dll's running at a time.
Attachments:
Code.JPG ‏14 KB

Similar Messages

  • Leaving the front panel displayed on a subpanel after stopping

    I have a tab control.
    Each tab control has a subpanel.
    Each subpanel has a static vi reference attached to it for launching.
    I would like the image of the front panel displayed in the subpanel after the program has finished running so that any information that was displayed is still present.
    Is there a way to retain all the settings between run's?
    -Regards
    eximo
    UofL Bioengineering M.S.
    Neuronetrix
    "I had rather be right than be president" -Henry Clay
    Attachments:
    NeuroNetriX TestSet.vi ‏12 KB

    When you say settings, do you mean controls? If so, you can right click on them and select Data Operations >> Make Current Value Default. That will keep the settings initialized how ever you set them up.
    I believe you can use use the Get Front Panel Image VI Method node, similar to the way to run the VI. You can create one by right clicking on the VI reference wire and selecting Method for VI Class >> Front Panel >> Get Image. 
    I've attached a code snippet of the node. If you want you can just drag the file into your block diagram and it should turn into code. 
    Applications Engineer
    National Instruments
    CLD Certified

  • How to create a front panel display that lights up with different colours depending on its input signal?

    I am doing a project where I have this array which has different voltage outputs for each grid. How do I create a front panel object that lights up with different colours depending on the voltage input or is there already such a pre-built function?
    In addition, I wish to display these in an array on screen. Is there any pre-built function for this?

    Repulse wrote:
    I am doing a project where I have this array which has different voltage outputs for each grid. How do I create a front panel object that lights up with different colours depending on the voltage input or is there already such a pre-built function?
    The simplest way would be an intensity graph. It gives you a 2D grid where each grid point is colored according to the value of a 2D array. The Z axis color ramp determines the color.
    My second choice would be an array of colorboxes. (They could even be made to look like LEDs (see image, if course you can leave them square too), All you need is a scaling function thap maps voltages into a color ramp lookup table with an 8bit index)
    (Using booleans and color property nodes is relatively clumsy. Booleans are meant for two states because the value is boolean. Since array elements can only differ in value, and not in properties, it will not even work. Color boxes have a color data type which is much more appropriate for this case)
    LabVIEW Champion . Do more with less code and in less time .

  • How to control the size/posit​ion of LabVIEW DLL front panel in MFC applicatio​n?

    I would like to make a MFC application which loads a DLL generated by LabVIEW application builder. How can I control the size and position of the front panel in my MFC application? Thanks.

    Did you build the DLL from Labview yourself? If so, you just add another VI to the list. This VI accepts the Title of a front panel and top,left,right,bottom value of the front panel (VI property WindowBond). I'm not familiar with building DLLs using Labview so I really could not help you on how to build the DLL, but I believe it can be done (multiple VIs as multiple functions in a single DLL).
    To get the windows bonds for a vi, you need to use VI server property. Check out the examples under labview directory. There are plenty of them to demostrate how to use this feature.
    Joe

  • No Cellular network after front panel display replacement.

    Dear all
    I recently changed my broken front panel LCD display of iphone 4S. The phone works fine and no operating issues. However my SIM is not detected. I tried following
    1. Reset network settings: It did not help
    2. While phone is ON, I removed the SIM tray but no error message of "No SIM card installed" appeared. So is the hardware damaged?
    3. When I am turing location services ON, i do not see that in status bar too.
    3. In Reset options, following options are in grey: Reset all settings, and Erase all content and settings. --> does that mean I have to update the iOS is the only choice? Right now I am on 6.1.2 and my iphone is JB.
    Please kindly advise if you have any solutions.

    Sounds like the hardware is FBAR as well as an OS issue

  • Mobile VI Front Panel Display issue

    I am not sure whether I should report this as a big of Mobile Module, so post it here and see if anybody else encounters the same issue. 
    When create a mobile VI, if you put a TCP Connection control and String array on the front panel the same time, it won't run. It compiles and deploys all fine, but when you try to run it, it doesn't. And if you put it as a subVI, it will stuck when it is called. 
    Guess I am lucky. Just so happened that I needed to put both controls on the front panel and ran it as a subVI. Every time this subVI was called, the whole program stopped. It is a simple subVI call, but maybe it is so simple that it becomes so hard to debug. I started to check if the memory was full, then subVI property, and then put all kinds of breakpoints to debug. Finally, just when I ran out of debugging ideas, I was looking at all the controls on the front panel. Is it possible that one of those controls has some sort of conflicts with others, or the mobile module simply cannot load the type of control(s). So, I took one out at a time.
    It took me a whole morning, but that's how I found this bug. I hope after I post it here, it can save your time to debug this type of bugs.  
    Attachments:
    TCP Control.vi ‏10 KB

    Hi, Paul, 
    This could be another bug of Mobile Module if you can repeat what I did. 
    Here is the issue. When I transfer time stamp from PC (time stamp flattened to string) to the palm (then unflattened back to time stamp), the time stamp on the palm is always plus one hour. Don't know if this is a bug or a programming error?
    Thanks. 

  • How do I re-size a front panel display so that it fits on a smaller monitor?

    My labview front panel looks grate on my desktop, but if I send it to one of the user's laptops it's much smaller.  Is there a way I can scale the hole GUI to make it bigger?

    Hi Over_Nyquest,
                                You can try auto adjust
    Thanks as kudos only

  • Display and interact with a vi front panel on remote C++ app

    Hello:
    I am new to LV and need a little advice.  I need to display a LabVIEW VI front panel in my C++ .Net application that users can interact with to view real-time spectrum data.  The C++ app (client) must reside on a separate computer(s) from the VI so that the client can connect from anywhere around the world and interact with the VI. 
    I am not sure about the basic architecture that should accompany a good solution.  We want to use TCP/IP but not DataSocket.  I do not have access to Measurement Studio but I do have access to LabVIEW Professional Development System v 8.2.  Can anyone provide suggestions on what I need to do in order to
    1.  Connect to my TCP server using my C++ client app - I have already written TCP client and server code which communicate but now I need to integrate LV
    2.  Get access to the VI sitting on that server
    3.  Send the VI front panel to the client for display
    4.  Allow the user to modify parameters on the front panel displayed on the C++ client, send those changes back to the server, and refresh the front panel displayed in the C++ client given the new parameters (I would like a real-time display of the spectrum to always be available)
    Is this possible?  Has anyone done this using C++ .NET in VS2005?  Are there examples I can mimic or references that will help direct me?  I have searched and searched through NI's help and found a lot of good stuff but I'm still feeling confused about the best way to utilize LV.
    Thank you in advance!

    One more question ... what if I could use Measurement Studio?  The documentation seems to indicate that it's easy to create network applications and therefore it would be easy for me to re-create our VI's front panel using Measurement Studio components in my C++ app and then simply connect those components to the networked hardware (TCP/IP or DataSocket) that could be located anywhere in the world.
    Depending on what components you are using in your LabVIEW panel, it is probably pretty easy to build a Measurment Studio application to look like a LV panel.
    Given that, you could use network shared variables to move data across the network, no TCP programming necessary -- I think that this is pretty easy to do, but I don't know the specifics about variable programming in that environment.  Also, you will probably need to add some smarts to the server side to make sure that it is reading to and writing from variables in an appropriate manner.
    Question: why can't you just use LabVIEW for the client application also?

  • How do i display my labview front panel on a web-page and update it say eyery 5 seconds, I think i need Lookout?

    My front panel display updates every 20secs. I want to be able to view the Labview front panel on a web-page which updates itself continuously. Will Lookout do this?

    LabVIEW will do this with it's built in web server. Full control of a LabVIEW front panel is possilbe with version 6.1. Older versions have the ability to publish a panel with no control. What version do you have? Lookout is a completely different software package for HMI/SCADA applications and has no relationship to LabVIEW except that they're sold by the same company.

  • How to identify "front panel coordinates" of a marker on a 2d picture( google static Api map) in labview ?

    Hello
    I am working on a project which requires me to obtain the front panel coordinate of a marker placed on a 2d picture of a map. The map is being obtained by sending http request to google. I am using static google maps to obtain the map. Below is a picture of front panel with the marker pointing at a location on the map.The position of the marker keeps on varying around the picture as i change the input location. Hence i need a way to record the changes in position of the marker on the map.
    Thank you
    Attachments:
    front panel display.png ‏84 KB
    front panel 2.png ‏207 KB

    try this
    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3DF1156A4E034080020E74861&p_node=DZ52505&p_submitted=N&p_rank=&p_answer=&p_source=External

  • LV 8.0.1 'NOT RESPONDING' and/or 'split' and unusable front panel while scrolling

    Hello,
    Is anyone aware of any display or front-panel glitches and bugs with LV 8.0.1?  I have been using LV for years, but I have never seen the front panel tear itself (literally) in sections while I use the standard scoll bars at the edges of teh screen, then become completely unusable and go into [NOT RESPONDING] mode (???). In other words, my front panel displays have always moved as one continuous piece when scrolling.  During these recent episodes, I would use the scroll bars and parts of my front panel displays would not move while the other section(s) tore away and scrolled as I commanded.  When this happens, my entire PC would slow down, the CPU usage would rise and a approach 100%, and the VI was unusable.  I have been writing a particular VI for several months, starting in LV 6.1, then LV 8.0 PRO-DEV, and recently upgraded to the LV 8.0.1 'maintenance' release.  The problem that  I describe here began to occur within two weeks of the maintenance upgrade.  The problem seemed to be propagating to my back-up version after I opened each VI in unsuccessful attempts to find a VI that did not appear corrupted.  It seemed as if any VI that I opened was going to be plagued by the bug that I described above and I thought that I was going to lose months of expensive work and my job!!!!.  In a last ditch effort ( and a stroke of pure genius) I started saving some of these coorupt version as 'PREVIOUS' in LV7.1 format.  This seems to have turned the situation around, for now, and saved my VIs from becoming corrupted and completely unusable. 
    Please let me know if anyone else has seen this.  Also, please let me know how to avoid this, in the future.  Does this indicate corruption of my LV 8.0.1 PRO-DEV environment or the VI files (or both)?  Does NI have tools to correct these corruptions?
    Thank you.

    Thank you. I can only point to the following events/ techniques that were somewhat different from my previous experiences/ techniques:
    1) Performed 'SAVE AS... ' new file name to these files over several months and several times a day using similar filenames with only one number character different between them
    2) Logging long data files to the root C: drive and closing in on less < 5GB HDD remaining (could this be overwriting soem temp files that LV uses to manag graphics???)
    3) After saving to LV 7.1 and re-opening with LV 8.0, I get a message that is new to me that explained something about wiring a Boolean constant to a case structure and how LV 7.1 or previous used this to keep a sub-vi in memory (???).  Unfortunately for me, I did not capture the exact syntax of this message and I do not wish to intentionally repeat this graphical feature.
    4) I copied a small block of code that contained a 'cloned' sub-vi from one block diagram to the a similar VI that , shortly afterward, exhibited the front-panle 'tearing' feature.  This is something that I usually do not do, and, again, is one of the only new actions from anything that I have done in LV for the past several years.
    5) After the message described in (3), above, the rescued LV 7.1 version had moved a handful of the most recently added indicators to a very remote location, about 30 seconds of edge-scrolling time, to the left of my front panel graphics.  I perfromed a 'drag' operation by selecting these and bumping them to the right edge of the screen for about 30 seconds to get them back to the vicinity of my front-panel graphics.  I have never experienced a VI that shifted inidcators so far off the edge of the screen.
    These are the only ' unique' events that I can recall before the 'tear; effect.
    Thank you.

  • Can I control front panel items from a sub VI?

    Hi all,
    After taking the Intermediate I class, I have been trying to follow the methods of using modular programming, but there's one thing I haven't quite figured out how to do. How can I change a front panel display from within a sub VI? I have a menu selection that I wish to change - can I simply input a reference to it or something like that?
    Thanks much,
    Jason

    All you need to do is to pass a control reference to the subvi, and then, in the subvi, to use a property node to modify whatever you want (well, almost...) on your control. Ask if you have more trouble and need an axample...
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Modifying a front panel decorative box

    Hi
    I have an application whose front panel has several decorative boxes
    (smooth and lowered style) used for aesthetic purposes. When my
    application starts I would like to adapt my front panel display to
    match varying screen dimensions. How would I go about dynamically
    changing these objects? Do the boxes have any properties that are
    modifiable?
    Thanks
    John

    You can access references to the decorations via a front panel reference. Wire the front panel reference to a property node and select the controls property, it will give you references to all the decorations. You now need to know the indexes of the references you want, get those indexes and you can read and write the size property of the decoration(s). I have attached a simple example that resizes two decorations when the front panel is rescaled, just run it and resize the window...the properties will rescale accordingly.
    In the example the rescaling is curde; it just finds how large a percentage the window has changed and change the size of the decorations approx. the same. In real life you may want to put in logic that controls the size in a more refine
    d way.
    Mads
    MTO
    Attachments:
    DecorationRescaling.vi ‏52 KB

  • I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?

    I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?
    Attachments:
    try2.txt ‏2 KB
    read_array.vi ‏21 KB

    The problem is in the delimiters in your text file. By default, Read From Spreadsheet File.vi expects a tab delimited file. You can specify a delimiter (like a space), but Read From Spreadsheet File.vi has a problem with repeated delimiters: if you specify a single space as a delimiter and Read From Spreadsheet File.vi finds two spaces back-to-back, it stops reading that line. Your file (as I got it from your earlier post) is delimited by 4 spaces.
    Here are some of your choices to fix your problem.
    1. Change the source file to a tab delimited file. Your VI will then run as is.
    2. Change the source file to be delimited by a single space (rather than 4), then wire a string constant containing one space to the delimiter input of Read From Spreadsheet File.vi.
    3. Wire a string constant containing 4 spaces to the delimiter input of Read From Spreadsheet File.vi. Then your text file will run as is.
    Depending on where your text file comes from (see more comments below), I'd vote for choice 1: a tab delimited text file. It's the most common text output of spreadsheet programs.
    Comments for choices 1 and 2: Where does the text file come from? Is it automatically generated or manually generated? Will it be generated multiple times or just once? If it's manually generated or generated just once, you can use any text editor to change 4 spaces to a tab or to a single space. Note: if you want to change it to a tab delimited file, you can't enter a tab directly into a box in the search & replace dialog of many programs like notepad, but you can do a cut and paste. Before you start your search and replace (just in the text window of the editor), press tab. A tab character will be entered. Press Shift-LeftArrow (not Backspace) to highlight the tab character. Press Ctrl-X to cut the tab character. Start your search and replace (Ctrl-H in notepad in Windows 2000). Click into the Find What box. Enter four spaces. Click into the Replace With box. Press Ctrl-V to paste the tab character. And another thing: older versions of notepad don't have search and replace. Use any editor or word processor that does.

  • How can I display only the Data Logging pull down menu on my LV front panel?

    Is it possible to hide all unused pull down menu on my front panel vi like File, Edit, View etc.. and only
    display the pull down menu for the Data logging?!
    best regards
                          Norick

    Hey,
    You can build your own runtime menu (Edit>runtime menu) and then e.g. only display the application items you want to.
    Christian

Maybe you are looking for