Accessing front Panel in VB

Hello
I want to access the LabVIEW front panel in VB how it is possible ?

There's an Excel example that ships with LabVIEW that you can take a look at. It's in the "C:\Program Files\National Instruments\LabVIEW 7.1\examples\comm" directory. Open the spreadsheet called "freqresp.xls".
Also, attached is a crude VB example done is VS.NET 2003 (you didn't specify which VB version)
Attachments:
LabVIEW Test.zip ‏58 KB

Similar Messages

  • Error 1032 accessing Front panel reference on 6.1 EXE from 7.1.1f2

    I am installing a Data Acquisition system developed in 7.1.1f2 (.net 2.0 patched).  The system has 4 device drivers reading data from different components (SCXI DAQ, OPC/DSTP, DLL Library, and a Labview 6.1 executable)  When I got on site, I modified the 6.1 EXE's INI file to allow TCP access to * and export * on a specified port.  The driver accessing the 6.1 EXE was reading the digital values correctly but I also needed to read XY Graphs along with the plot configurations and coloration.  I then wrote a simple debug VI that Connects to the 6.1 EXE's Win 2000 Machine the Application reference succeeded, I open a reference to the exported main vi and seem to access all the properties and methods of the VI except the Front Panel calls.  Some of the calls return invalid data (read this is the default result if an error is encountered)and when I try to get the Front panel reference I get error 1032.  I need to get this working in order to get the control references of the waveform graphs, in order to get the plot information. 
    Things I tried:
    1 - I have tried accessing the FP reference from a different machine running LV 7.1 but still get the same error.
    2 - The 6.1 EXE belongs to our client and we cannot modify it, but I have reinstalled it from the backups with no change.
    I don't have any idea how to proceed..
    What else can I verify on the remote VI server,  Is there another way to read the plot data from a graph?  (VI ref --> Get control value mostly works untill the fill color changes on the plots)
    Any Help / guidance would be appreciated.
    Darcy

    Hello Darcy-
    It sounds like you are running into a common problem when trying to access a front panel on a remote executabel. The following KB gve a  bit more clarification on teh nature of the problem adn a possible workaround. The workaround will require modification of the EXE you wish to control, and it sounds like that may not be an option for you.
    http://digital.ni.com/public.nsf/websearch/B36BCCBFEBECF4F486256C69005D49C3?OpenDocument
    If the Vi you wish to communicate with is not written to share its data in any way, it is going to be difficult/impossible to read the the waveform vales from that VI.
    Xaq
    Message Edited by Xaq on 11-21-2006 03:29 PM

  • Accessing front panel LEDs in several subVIs

    Hi, I'm new to LabVIEW! Ok, what I'm trying to do is create a front panel with 9 LEDs. Then I have a Menu Ring, with three different options. These options determine the order in which the LEDs are lit. So what I was planning on doing was creating three subVIs, one for each of the options...but how can I do that when I only have one boolean for each LED? So basically how can I relate the LEDs on the front panel into the subVIs? I tried using globals - but it seemed like that just passed on the state of the boolean instead of allowing me to actually change the boolean in the subVI. I hope this makes sense...I'm really confused! Thanks for any help!

    > Hi, I'm new to LabVIEW! Ok, what I'm trying to do is create a front
    > panel with 9 LEDs. Then I have a Menu Ring, with three different
    > options. These options determine the order in which the LEDs are lit.
    > So what I was planning on doing was creating three subVIs, one for
    > each of the options...but how can I do that when I only have one
    > boolean for each LED? So basically how can I relate the LEDs on the
    > front panel into the subVIs? I tried using globals - but it seemed
    > like that just passed on the state of the boolean instead of allowing
    > me to actually change the boolean in the subVI. I hope this makes
    > sense...I'm really confused! Thanks for any help!
    Initially, you might just hook your ring to a case structure to
    determine which frame exe
    cutes. You can put the terminals for the
    Booleans in the different diagrams and about the only other thing to
    keep in mind is that you probably want a delay in the loop.
    Greg McKaskle

  • How statechart can access front panel dynamic input

    How can I get the value of a control (as set by the user) on a calling VI Front Panel to evaulate/use within a state Exit while loop in of a called StateChart?

    I started with the async statechart example -- contains trigger loop and a statechart loop.  Inside the statechart loop there is a Run Statechart.  Also in this loop are my inputs to the Statechart. Everything is good so far. As each state is entered, the correct input is obtained.  Then I added a PID.vi inside a loop to one of the state action tabs.  When that particular state is entered and the PID loop runs, I no longer get updated input values.  I've tried to copy and reference the Inputs onto the action tab diagram to no avail.
    I've attached my VI and lvsc for some hopeful assistance.
    Attachments:
    BrewLab.vi ‏86 KB
    BrewLab.lvsc ‏496 KB

  • My iPhone is split from front panel on top, and back cover of my is swollen too. I am not able to use my phone and I cannot access my data in the phone. Please suggest what could be the cause of this problem?

    My iPhone is split from front panel on top, and back cover of my is swollen too. I am not able to use my phone and I cannot access my data in the phone. Please suggest what could be the cause of this problem?

    It sounds like the battery might have gone bad, and is swelling and causing the symptoms you describe.  Do not attempt to use the phone, but take it to Apple for evaluation.

  • Express VI - access to POP-UP front panel?

    Hi:
    Some of the express VI pop-up front panels have an excellent layout and would be similar to some of the front panels that I might have to create (see example for wavelet denoise in latest digital filter design toolkit).  Rather than having to recreate one, is there a way to gain access to it as a VI with the existing front panel controls and indicators?
    Sincerely,
    Don
    Attachments:
    express.png ‏33 KB

    Hello Don,
    I don't see any reason why you can't use shipping components as a template provided they ship without a password.  Most LabVIEW "core" shipping Express VIs are located in [LabVIEW]\vi.lib\express, in various folders roughly matching the palette layout.  The main config page VI is usually the top-level VI in an LLB containing the word "config".  Most of these VIs are not password-protected.
    The ones you're referring to are probably going to be located in [LabVIEW]\vi.lib\addons\... for the toolkit that this Express VI ships with.  Hopefully it is easy enough to find from there.  I can't say whether or not the particular Express VI you pictured ships password-protected or not.  If it does, there is probably good reason for it, and you won't be able to use that one for a template.
    Another thing that might be a little difficult is that some things on the diagram are Express VI-specific (which you probably don't want), while others are for handling the UI (which you probably do want).
    Good luck!
    P.S.  Please keep in mind that most of the "core" shipping Express VIs that I referred to initially were created well before LabVIEW 7.0's release, and some haven't been updated much since then, so they might not be the best example of UI handling in today's LabVIEW (a few don't even use the event structure).  I believe the one you referenced is significantly newer, so it's probably pretty good, provided it's not password-protected.
    Message Edited by Jeff B on 12-22-2006 11:35 AM

  • How can i access remote front panel in RT with LabVIEW run time engine in client PC

    Hi to all,
    I have developed the RT application with cRIO 9075 integrated chassis. And i have access its remote front panel in client PC. Now i want to access the remote panel in the client PC without having LabVIEW runtime engine. If i connect the remote panel with that client, it shows only the vi border. i doesn't downloads the  front panel.
    How Can i access its remote front panel without LabVIEW runtime engine in the client PC?

    You cannot view a remote front panel without the LabVIEW runtime - the LabVIEW runtime is what makes the remote front panel possible.  What you will want to do instead is likely create a Web Service that you can access from a remote PC without requiring the LabVIEW runtime.  However, this will require you to develop a web-based HTML or similar UI to interact with the VIs running on your system - NI hasn't yet created a way to export a LabVIEW front panel as an HTML'ish page.  
    -Danny

  • Error accessing Remote Front Panel on RT Target after upgrade to LV2011

    I'm upgrading a real-time application (target is a desktop PC running the LabVIEW real-time) from LabVIEW 2009 to 2011.  Under 2009, it was possible the view the main VI remotely by browsing to a static HTML page that embedded the front panel.  After upgrading to LabVIEW 2011, instead of the front panel image I get an error saying "Server does not support Remote Panels."  I have already gone through the list of possible causes from "Server Does Not Support Remote Panels" Error When Connecting to Remote Front Panel, and none of these resolved the problem.  I am using the standard LabVIEW web server, there is a direct ethernet cable connecting my computer with the real-time system, and I have recreated the web page to reference the correct plug-in version.  I reformatted the RT system and then did a clean install of the components from LabVIEW 2011 (using the Add/Remove Software feature in Measurement and Automation Explorer).  I also created a new test project with a new simple VI; I was able to access that VI remotely on port 8000, but not on the default port 80 (which used to work under LabVIEW 2009).  What changed in the web server between LabVIEW 2009 and 2011?  Can I use the standard HTTP port 80 to serve a static page with an embedded VI, or does this now only work on other ports (and if so, why)?  Will I need to recreate my entire project in LabVIEW 2011 in order to get this working at all?

    Got it working, after much experimentation.  Seems to require installing exactly the right combination of items on the RT target, as some items (web services? web configuration? the "application web server"?) apparently run a separate web server - or instance of the web server - on port 80, which prevents remote front panels from being served on that port.

  • Can't access format & precision menu from front panel

    Labview 7 seems to have stopped allowing me to access the format and precision, data range, and properties menus from the front panel. I create a blank VI, drop a numeric control onto the front panel, right click and select format and precision... nothing happens. I can hear the computer thinking about it but no menu pops up. Same for the data range and properties menus. Other front panel objects with different pop-up menus are also not working.
    Anyone else run into this problem before? I keep thinking I must be missing something obvious but I can't figure out what it might be.
    Thanks,
    JW

    Problem is fixed. May have been the result of very low available disk space on my system partition. I was down to a few megs. Took off a couple of unused programs and it seems to have corrected the problem.
    JW

  • Hp p6367c front panel usb ports: how do I access these?

    There is a button in front along the side that I assume is supposed to open the expansion bay and provide access to front panel usb ports, but nothing happens when I press this button.

    Please look the upgrade and service manual page 13. You will notice the DVD drive, the empty 2nd CD/DVD bay, maybe the pocket drive (if so equipped). Below that is the mystery USB ports, and audio ports.
    The panel likely has a small tab, and the access panel flips up, or slides up/down. Without knowing the exact face plate design, it's difficult to know. But if you look at the manual, the mystery will be exposed.
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • DVR accessing a Front Panel Control

    Can somebody explain to me why this does not work or how to make something like this work.
    Thanks in advance,
    Eldon
     

    Your definitely trying to optimize the wrong thing here. There is no way to get a free and cheap reference access to a user interface control on the front panel.
    The DVR doesn't link to an UI control for one thing, so it falls off your list already.
    The Control Refnum has to deal with race condition protection and all that, so it is indeed slow.
    The local indicator is not available in a subVI.
    The User Event Refnum is the logical choice here, but you don't like it.
    Leaves no other option than abandoning LabVIEW and start programminig in assembly again 
    Even in C you can't just go and access a GUI at will through a pointer reference. Any well designed GUI framework will require you to call object methods passing the data explicitedly, or sendinig some form of message to the control. Such is life. GUIs are not meant to update Megabtyes of data several times every second anyhow. Humans are only able to grasp a very small number of data points per second so any GUI trying to transport more data to a user is usually pretty misdesigned.

  • How can I access the member of a cluster on the front panel by selecting the label?

    I have a cluster of Controls. i would like to choose the element of the cluster by his label on the front panel and then show the value. Does anyone have an idea?

    I think I understand what you are trying to do. I've whipped up an example that uses property nodes, see if it helps...
    Brian
    Attachments:
    ClusterSelect.vi ‏35 KB

  • What is the most efficient way to have full access to the front panel on RT Labview?

    I have a RT machine that needs to do its job and also port the front panel to an external machine over the network. What is the most efficient way to do it? Using as little of the RT time as possible but providing full functionality to the RT front panel.
    So far I have been using it directly from Labview - running the VI on a remote (RT) and have the front panel on local Labview (WINDOWS). I know I can do it with also through WWW (not very happy with that though).
    LV2009 SP1.
    Thanks

    Running a compiled executable on the RT target, rather than running it within the development environment, is probably slightly more efficient but limits you to the web interface.  If you're running within the LabVIEW environment, I doubt there's a noticeable difference in efficiency from the RT perspective between the web server and the LabVIEW front panel, although that's mostly a guess (I would expect the RT system to send identical data in each case, once the front panel is loaded).  Those are your only options in modern LabVIEW versions.  In LabVIEW 7.1 you could build an executable that acted as the front panel for an RT system, but that feature does not exist in recent versions.  However, a quick search turned up this document with code to approximately duplicate that behavior, perhaps it will work for you?

  • Reading main VI front panel in SubVI

    Hi,
    I'm trying to create a subVI that writes a header text file containing info on essential parameters in my measurements. My mainVI front panel has a few dozen controls, some of them contained in a handful of clusters. 
    What I'd want is just to be able to access and read the values at the subVI to construct the string I want to write to the file.
    I wouldn't like to proceed the dumb way, i.e., building an array of clusters or individual controls or references to them and passing that to my subVI (and, obviously not passing each individual control/cluster as a subVI input).
    I figured I'd like to have some kind of refnum of the mainVI frontpanel passed to my subVI and dig use a big pile of property nodes to dig out the info that i need, inside the SubVI. Is this a feasible solution and if so, what's the way to conduct it? If not, what would be a better way?
    As before, I'm using LV7 so in case you answer with block diagram examples, I'd appreciate screenshots of them.
    Thanks,
    Lauri

    Vostokki wrote:
    I'm trying to create a subVI that writes a header text file containing info on essential parameters in my measurements. My mainVI front panel has a few dozen controls, some of them contained in a handful of clusters. 
    What I'd want is just to be able to access and read the values at the subVI to construct the string I want to write to the file.
    I wouldn't like to proceed the dumb way, i.e., building an array of clusters or individual controls or references to them and passing that to my subVI (and, obviously not passing each individual control/cluster as a subVI input).
    Lauri
    Actually that is the preferred way to do. Why you may ask? It is because you decouple the functionality (creating your log file header) from your specific user interface. By doing so you can reuse this VI in other places or applications. By using the references directly this ties the subVI to the calling VI. Unless the subVI is specifically doing something to the UI itself a subVI should avoid accessing data it needs via direct references. It should require the data to be wired in with the appropriate clusters, arrays or whatever your data needs are.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How to open remote front panel of vi's within an executable from an executable.

    How do I remotely open front panels of subvi's contained within an executable, where both computers just have LabVIEW Real Time loaded (programs are run as executables)? I want to use the Method: Remote Panel Open Connection to Server to make this work. I have been getting error 1032 "VI Server Access Denied". I do not want to use the web page method (connection is too slow when controlling front panel objects and I can not programmatically exit out (release control of vi) of the web page).
    Ex. 
    PC1: Has executable1 using Remote Panel Open Connection to Server Method etc. code inside. This program will make a call to executable2 (on PC2) to open up different vi front panels (within executable2), so the controls can be changed from PC1. I want to be able to make changes to the vi's running on PC2 from PC1.
    PC2: Has executable2 containing several subvi's.

    Not sure if this is what you are looking for but here is how to launch executables that can interact
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

Maybe you are looking for