Q:How to trim a VI's front panel at runtime?

The occupied front panel space can be obtained by calling
"GetPanelImage" via an invoke node. The resulting cluster "bounds"
describes the union of all front panel objects. The front panel can then
be resized to fit these bounds. The content of the front panel can be
repositioned by manipulating "FrontPanelWindow.Origin". This "...Origin"
points with an _unknown_ _offset_ (which varies with the FP´s layout) to
the upper left corner of the front panel content.
How to exactly calculate the origin from other front panel values?
Thanks,
TC

You can use a VI Server to position the front panel of your subVI. Look at the Ghost in the Machine.vi example that ships with LabView.
To see where to position the subVI, you need to know the position of the calling VI or of something on it. You could use a property node of the Get Details button.
1. On the front panel on Panel.vi, right-click on Get Details and select Create >> Property Node
2. Right-click on the Property Node and select Properties >> Position >> Left.
3. Point to the bottom edge of the property node and pull it down to add another element. That element should default to Top.
That will give you the coordinates of the Get Details button. Now use a VI server (based on Ghost in the Machine.vi) to place the subVI front panel the desired distance
from the Get Details button.

Similar Messages

  • How can i use the same front panel graph in more than one events in an event structure?

    i want to display the signals from my sensorDAQ in a graph.but i have more than one event in the event structure to acquire the signal and display it in the graph.the first event is to acquire the threshold signals and its displayed in the graph as a feedback.after the first event is executed, i will call the second event,where the further signals are acuired and compared with the threshold signals from the event 1.my question is how can i use the same front panel control in more than two events in the event structure?please answer me i'm stuck.
    Solved!
    Go to Solution.

    Hi,
    I have attached here an example of doing the same using shift registers and local variables. Take a look. Shift register is always a better option than local variables.
    Regards,
    Nitzz
    (Give kudos to good answers, Mark it as a solution if your problem is Solved) 
    Attachments:
    Graph and shift registers.vi ‏12 KB
    graph and local variables.vi ‏12 KB

  • How can I save an EXE front panel image to a file?

    The methods to save a VI front panel image to a file don't work on executable applications. How can I save an EXE front panel image to a file? (LabVIEW 6.1)

    Hi,
    i wrote some vi that save FP to image and created exe and it works fine. How do you save FP to image in VI?
    If you use VI server method "Get Panel Image" and use "Write JPG file" ( or BPM) it works fine.
    Attachments:
    fp.zip ‏40 KB

  • Show front panel in runtime

    I want to show front panel in runtime( or when called) without all the
    menus, tool bars and scroll bar, just as a ordinary control panel only
    with window title.
    any suggest will be appreciated.
    Jacob
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    [email protected] wrote:
    > I want to show front panel in runtime( or when called) without all the
    > menus, tool bars and scroll bar, just as a ordinary control panel only
    > with window title.
    >
    > any suggest will be appreciated.
    >
    > Jacob
    >
    > Sent via Deja.com http://www.deja.com/
    > Share what you know. Learn what you don't.
    These are options you can setup using the Sub-VI Setup.
    You can also access these through the VI Server.
    If you look on NI's web site and get the Splash Screen VI
    you can see how to do this.
    I can't get to LAbview right now or I would be more specific.

  • How to pop up another VI front panel and run this in the main VI?

    Hi all,
    I want to create a VI, which contain several buttons: like "RUN ANALYSIS 1" and "RUN ANALYSIS 2".
    When I click one of them, another front panel of VI jump out and run automatically. When I click on "Finish" button on this VI (the one jump out), this front panel close.
    How to complete it?
    Thanks,

    Hi Osso,
    The ability to click on other VIs is also controlled by the Window Appearance. If you follow Dennis' instructions above, but this time change the Window Behavior to modal.  You can find more information about the different selections in the LabVIEW Help: Customize Window Appearance Dialog Box.
    Regards,
    Elizabeth K. 
    National Instruments | Applications Engineer | www.ni.com/support 

  • How can I close a remote front panel by closing only the browser window?

    I control a remote front panel in a browser (from the client PC). If I don't use the 'close' - button in my program to end the remote front panel, but instead of this the 'x' of the browser window (in the right bottom corner), my program won't be close, it continues on the server. Do you know how to end a VI by closing only the browser windows?
    Thanks for any help!
    wolfe

    I found the examples. Thanks.
    But I could not find a solution yet. Now I know how to end a VI by clicking on the x of the VIwindow.
    My problem is, to end a VI by clicking on the x of the BROWSER window after I loaded and controlled a remote panel VI in a browser (e.g. IE).
    If you have any ideas ... I'd be happy.
    Thanks for your help.

  • How to save settings in the front panel to different files and retrieve it later?

    How to save the front-panel controllers' settings to different files and retrieve it later?
    What I've archived is the "Save Settings" function, but when trying to "Reload Settings", I can only retrieve the saved data to front-panel indicators, but not the controllers!
    Can anybody give me some advises?
    Thanks in advanced!
    Charles Lu

    Hi
    Just write the retrieved data to a local variable (but make it writable first) or property node of the controls.
    Hope this helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • How to make some part of front panel transparent?

    There is a property node to make a front panel completly transparent...but is there anything that only makes some part of the vi transparent like if I define a decorative block in the vi which takes 1 quardant of front panel and I have a control to make it transparent during runtime...
    And moreover the frontpanel transparent property makes the whole window transparent, is there any way to retain toolbar of window like stop, run button when front panel is transparent??

    Hi,
    Have a look at this VI (attached). To make it work you need to create an image mask as a .png (open paint, colour in the areas that you want to become invisible and save it as a .png). The VI diffentiates between white areas and black areas of the mask you create, the black areas will become transparent and the white areas will remain the same- this will be implemented on your front panel. I've included an example of a possible paint image in "mask2.png".
    You may also want to play around with the resolution of the mask created in paint, this will effect how the program works (I advise you use a lower resolution than your display- I used 500x300)
    NT: If the front panel controls disappear, go into the block diagram window and attach a false constant instead of a control. Let me know if this works
    Cheers, Tom
    Attachments:
    custom window.zip ‏107 KB

  • How can I hide the main front panel when I run from the executable?

    Hopefully this is an easy question. I have an application where the front panel is not the main GUI and I would like to hide it when the program runs, but only when it runs from the executable. How can I do this?

    NIquist wrote:
    Yeah, don't do that. Executables built in LV require at least one front panel to be open. If it isn't, the run-time engine automatically closes the executable. I haven't checked recently, but I assume this is still the case.
    Instead, you can set the FP state to minimized (as suggested earlier) or (better) to hidden.
    P.S. one side point - the property and invoke nodes have a shortcut - if you use the Application or VI classes and don't connect a reference, they default to the current app or VI. That means you don't have to open the reference.
    Try to take over the world!

  • How do I create tabs on front panels

    Hi everyone. I want to create multiple front panels on the same project. How do I go about this?
    Also, I needed to analyze noise from a thermocouple signal in terms of Probability  Density Function and power spectral density and I don't have a clue yet. Any body any useful info should pls reply.
    Thanks. 

    Well said Lynn..
    I do realize that the discussion has moved away from the original topic
    Are you trying to resolve a problem that would normally be solved using signal conditioning?
    Are you seeing artifacts from 50/60Hz ?
    Did you mention what your thermocouples were connected to or in proximity of?  ie: do you need shielding?

  • How to synchronize presentation on the front panel to the start of a 75Hz monitor's retrace cycle?

    How to synchronize front panel presentation with the start of a retrace cycle of a 75Hz Monitor, so when a bitmap is presented 100ms, its duration is indeed 100ms on the monitor?

    Hi,
    In the old days (late 90's), we used in port and out port to wait for
    vertical retraces (or even horizontal retraces).
    I searched the web (vertical retrace), and there seem to be lots of
    infromation and tools, like
    http://www.compuphase.com/vretrace.htm
    It uses a simple routine:
    mov dx, 3dah ; VGA input status register
    vretrace_loop:
    in al, dx
    test al, 8 ; bit 3 set?
    jz vretrace_loop ; no, continue waiting
    But to get it working, you need a VxD. Good news is you can download it.
    The also suggest you use WaitForVerticalBlank(), but dx could be hard to get
    working under LabVIEW.
    Please let us know how (and if) you got it working with LabVIEW!
    Regards,
    Wiebe.
    "Vinci HK" wrote in message
    news:[email protected]...
    > Hi Robert,
    > I am so excited to have received a response! Sorry that I didn't reply
    > earlier as I have been out of town. You are understanding the problem,
    > so good!
    >
    > I just want to know the exact duration a stimuli in the front panel is
    > presented. I can make it to last for 13 frames, but the problem is to
    > ask LabView to synchronize with the start of a frame.
    >
    > The crucial thing is that I want a trial of presenting 700ms blank
    > screen + 1300ms bitmap will add up to 2000ms on the front panel. And
    > in the next 2000ms, a different bitmap will be used for the 1300ms.
    > The start of a trial is initiated by a pulse from the parallel port. I
    > need the 2000ms on the front panel to be really 2000ms+/-5ms.
    >
    > My worry is that even if I buy the external clock and the RealTime
    > system of LabView, I won't be able to get the front panel to
    > synchronise with the refresh cycle of the monitor, so that the trial
    > length as it appears on the front panel is 2000ms +/- 5ms.
    >
    > What do u think?
    >
    > I am using LabView for my fMRI experiment, and I wonder if you know
    > anyone from the fMRI community who are using LabView for stimulus
    > presentation and synchronization with MRI data acquisition?
    >
    > Thanks,
    > Vinci

  • How to add ASCII symbol to Front Panel

    Hello,
    I am trying to add an ASCII character to the front panel but I cannot figure out or find out how to do it. It should be ALT key plus the decimal code I thought.
    Any help would be appreciaited.
    John

    you can enter an "e", select the character, and change to symbol font.
    LabVIEW Champion . Do more with less code and in less time .

  • How to delete hidden Control on Front Panel

    I have deleted the Attribute Node setting a control in a cluster to
    invisible. So now I'm not able to delete this control on the Front
    Panel. How to do this?
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    Gert,
    Just right-click on the control's terminal and select ->show control. You
    will then be able to delete the control as usual.
    James
    "Gert" wrote in message
    news:8uto76$r8v$[email protected]..
    > I have deleted the Attribute Node setting a control in a cluster to
    > invisible. So now I'm not able to delete this control on the Front
    > Panel. How to do this?
    >
    >
    > Sent via Deja.com http://www.deja.com/
    > Before you buy.

  • How do I create a soft front panel in LabVIEW?

    I am experienced with creating VXIPlug&Play drivers for test and measurement equipment. Now I need to create one with a soft front panel. Is there a tutorial that explains how to create the soft front panel? Or could you point me in the right direction? Thanks, Susan

    I did a search on google and came up with this link:
    http://www.vxipnp.org/vpp7.pdf
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • Sound Blaster Z - how set autodetect connected headphones (into front panel connector)

    Hello,
    how can I set autodetect connected headphones into front panel on my new Sound Blaster Z?
    I have used to use my onboard soundcard (only to my headphones) together with AMD R290X soundcard (via HDMI to Onkyo receiver).
    Onboard soundcard was set as default audio device in Windows. So If I connected my headphones into front pannel connector, play only my headphones. If I disconnect headphones, onboard soundcard was disabled and soundcard on R290X was now only active audio device, so music playing only from my speaker (receiver Onky via HDMI on AMD R290X).
    Now if I connect my headphones, I have to manualy switch audio device unit in Windows control panel between "SoundBlasterZ" and "R290X HDMI".
    It is very annoying. Is there any way to figure it out?
    Sorry for my bad english, I hope you understand my problem.
    Thank you!

    Originally Posted by prachart
    Hello,
    how can I set autodetect connected headphones into front panel on my new Sound Blaster Z?
    I have used to use my onboard soundcard (only to my headphones) together with AMD R290X soundcard (via HDMI to Onkyo receiver).
    Onboard soundcard was set as default audio device in Windows. So If I connected my headphones into front pannel connector, play only my headphones. If I disconnect headphones, onboard soundcard was disabled and soundcard on R290X was now only active audio device, so music playing only from my speaker (receiver Onky via HDMI on AMD R290X).
    Now if I connect my headphones, I have to manualy switch audio device unit in Windows control panel between "SoundBlasterZ" and "R290X HDMI".
    It is very annoying. Is there any way to figure it out?
    Sorry for my bad english, I hope you understand my problem.
    Thank you!
    Hi prachart,
    You will need to set Sound Blaster Z as the default playback audio device in the window control panel -> sound -> playback. Make sure you connect the physical connector from the front panel to the Sound Blaster Z card. This will let you plug into the headphone and able to playback. However, the AMD R290X HDMI port will not be able to have any sound as the default playback device set to Sound Blaster Z and it will not automatically release control and toggle to the available plug-in device.
    You will need to go to control panel to toggle again if you want to have the sound from the HDMI port.
    I am sorry if the above are not much help but this is the design implementation of the sound card so that there is no compromise in the sound quality.

Maybe you are looking for

  • How do I copy a dvd movie to my iphone

    How do I download a DVD movie I own to my iphone?

  • How to avoid the null values from xml publisher.

    I am creating a report which have the claim numbers with the values CLA001,CLA111,null, null . when i preview my report it is showing some spaces for null values also. How can i avoid the spaces from the report. I am giving for loop for the claim num

  • My apps on my MacBook Pro 15" keep crashing.What to do to solve the problem?

    I get things like: Google Chrome quit unexpectedly. Click Reopen to open the application again. Click Report to see more detailed information and send a report to Apple. Here's the Problem Details and System Configuration Process:         Google Chro

  • Business products photos in Photoshop Elements 11

    I am a beginner with Photoshop Elements 11 but not with working with photo editing. At the moment I am at the beginning of an Adobe tutorial on Elements Organizer. There are four views: Media, People, Places and Events. I purchased Photoshop Elements

  • Connecting to other computers

    I'm sure this has already been covered, but I couldn't find anything about it. Is there any way to connect my Ipod to a different computer. I have some music on my desktop that I would like to put on my Ipod but I'm afraid it would wipe out my entire