HOW TO ADJUST MY FRONT PANEL & ITS OBJECTS ACCORDING TO SCREEN RESOLUTION.
Hai..
I want my fp to be visible in its standard form on all screen resolutions.I've used Maintain window prop for diff screen resolutions but it didnt work.Any Solution to this problem?
Did you also set the "Scale all objects..." setting?
For me mostly there had to be only 1 control to be scaled or changed in proportions, like a graph or listbox, the other controls (buttons, menu rings) should remain in size. This is best done by using splitters. You can lock them, stick them to one side of the window, make them invisible.
greets, Dave
Greets, Dave
Similar Messages
-
How to resize the front panel to fit different resolutions
I m using LabVIEW 8.2 on Windows XP SP2
I've tried both “maintain proportions of window for different monitor resolutions” and “scale all objects on front panel as the window resizes” selected but just messed up everything when i switched to another different resolution. It's annoying since I'm using 22 inch monitor to do the coding but the user supposed to run it on laptop or wince.
Any solutions to it?
Thx in advance.Thank you all. Following is the reply from NI support. I think the best way is to edit vi in low resolution.
One of the easiest ways to tackle varying screen resolutions is to design
the front panel to the lowest resolution that you expect it to run on. It
should then look acceptable on any screen larger than that.
However, you can get a bit more tricky by programmatically determining the
computer's screen resolution and then dynamically changing the size of your
front panel objects. Use an Application Property Node and select
Display>>All Monitors to return the current screen size. Then, according to
the screen size, you can size the control or indicator programmatically
using the Size property node for your front panel objects.
Ultimately, these issues have often been a result of font size issues.
Specifically, this can be a problem when two machines have different
desktop theme/font settings. If your objects are coming out in different
sizes on different computers, you can setup up LabVIEW to use the same font
on different systems by modifying the .INI file.
The easiest way is to do this: use Tools->Options->Fonts from the LabVIEW
GUI. You can then set the system fonts to anything you want. After you
have done this on one machine, open your INI file (it is in the same
directory as the LabVIEW executable) with any text editor and copy the
corresponding entries to another file. Add these entries to the INI files
on any machines you want to lock to font. You will probably run into
issues if you are supporting different platforms (Windows and Mac or Mac
and Linux, for example), since the fonts you want may not be available on
both platforms. There are Windows fonts available for both Mac and Linux
platforms, so this can be somewhat ameliorated.
This is all I can think of, but that's not to say these are the only
solutions. You might check the Discussion Forums, as many of our LabVIEW
Champions have tackled similar issues and offer their expertise as well.
Here's just a few threads that I'd like to refer you to:
How to make the size of VI and controls unchanged irrespective of the
resolution?
http://forums.ni.com/ni/board/message?board.id=170&message.id=273613&requireLogin=False
How to program the front panel size to fit different monitor resolution?
http://forums.ni.com/ni/board/message?board.id=170&message.id=87160&requireLogin=False
I hope this discussion helps you along the way in your application
development. Please let me know if you have any further questions/comments
and I would be happy to discuss them with you.
Otherwise, it was a pleasure assisting you and thank you for choosing
National Instruments. -
How to add silver front panel theme for labview 2010
how to add silver front panel theme for labview 2010
Mahisnair wrote:
yes i had tried this way but the vi built with silver theme doesnt look good in 2010 :-(
wish if there was a way to include silver theme in 2010
The only way I see to make it like that would be to recreate the theme in LabVIEW 2010 with external bitmap objects. Unfortunately it won't be as functional as the silver controls in various terms such scaling (bitmaps scale very badly) or transparency and click through functionality (a bitmap assigned to a control part will always catch all clicks and never allow a click to pass through anywhere to a lower layered part).
The silver controls are using special internal graphic objects that were added in LabVIEW 2011, so recreating silver controls with the same functionality in earlier LabVIEW versions is impossible.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
How to create two front panels
Hi in my application i am using two Monitors ..
so i like to use one monitor for Vision display and control operation (Front panel )
And another For Motion Control Front panel .. is it possible to do this ..
(In this case How to split my Front panel of my Vi ..)Hi
If we use Border Layout, the Panels which are added to the main panel are not displaying properly.
Solution is to use BoxLayout with AXIS parameter. Statement looks like this:
mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout(PAGE_AXIS));
Thank You for giving Reply, -
How to show the front panel when launching VI with Call by reference node??
Hello!
I just wonder how I make the front panel visible during execution when I launch the VI with CALL BY REFERENCE NODE.
Se example.
Could u also show me how to change different properties (window size ..) of the front panel??? (launched with CALL BY REFERENCE NODE)
Thank you!
Attachments:
test.vi 18 KBIn VI Properties>>Window Apperance>>Customize you can check "Show front panel when called". This will open the front panel on each call. It doesn't matter how the call was initiated.
You can set a lot of Front panel properties during runtime. Place a Property Node in the block diagram. Change the class from App to VI. Under properties select Front Panel window>>Panel bounds to set the position and size of the front panel.
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions -
How can i use the facetime, its appearing in the screen but i cannot use it.
http://support.apple.com/kb/ht4319
-
my wife changed start up somehow. Now 7 or 8 files open when restart. Have to close all to do anything. files, applications, internet, folders etc. How do adjust setting so that it open do normal screen with icons etc? before this, it started up and went to main screen with dock, save folders ICOns etc
-
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 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 -
How to Save & reload front panel position
I would like to save the front panel position into an ini file or registry, so that the next time the program is used, it comes up where the user left it.
With the Invode Method: Front Panel.Run-Time postition.Get positon
I can get all the position data I want:
left-top
state
monitor
However... How do I set the same information at startup?
There's no Front Panel.Run-Time Position.Set position. as far as I can see...
To set position, state and monitor values, it seems I need to first call FP.Open for the state, then FP.Run-Time Position.Centered to select the monitor, and then FP.Run-Time Position.Custom to set the position....
That looks weird and complicated... Am I missing something here? Is there a more elegant approach?NI explains the difference between Property nodes and Invoke nodes as this.
Property nodes access the properties of an object and allow you to read/write those properties.
Invoke nodes perform actions on an application or VI allowing you to get and sometimes set attributes of those actions.
Sometimes there is some overlap between Properties and Methods as you noticed with the "Get Position" method and the "Panel.Position" property. But most of the Methods do not have a similar Property. For instance, there is a Method you can use on a front panel item called "Get Image". This will return image data about the item that will let you save the items current visual appearance to a graphics file. (.bmp, .png, .jpg) There is no equivalent property to do this.
So it really depends on what you are trying to do as to which one you end up using.
Ed
Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences. -
How to display remote front panels of subvis that are already open
I inherited an RT project that uses remote front panels for nearly all the user interfaces. The host application opens a remote front panel the the top level RT vi, and there are several subvis on the RT system that are opened from that top level vi and thus displayed on the host (i.e. their "Show Front Panel When Called" properties are set TRUE).
If the Host loses its connection to the RT system when any subvi front panels are opened, and the host application is restarted, it can re-open the top level vi remote front panel, but all the RT subvis that are already open will not display their front panels. I am looking for a way to open the front panels to these subvis from the host application.
The kicker is, I need to know which subvis are actually running before I attempt to open remote front panels. Is there any way to determine what subvis are actively running (and not just in memory, such as subvis that won't get executed until the top level vi reaches a certain state)? I am thinking that I could create a list of the subvis that I need access to, check to see if any are actively running on the RT system, and then invoke a remote front panel connection with those that are running.
Does anyone have any ideas as to how I might be able to do so? Or any other suggestions? [and yes, I know that RFP communication is probably not the best way to go, but we're too entrenched in this software to start over with a new system!]TurboPhil wrote:
If the Host loses its connection to the RT system when any subvi front panels are opened, and the host application is restarted, it can re-open the top level vi remote front panel, but all the RT subvis that are already open will not display their front panels. I am looking for a way to open the front panels to these subvis from the host application.
It might be possible to work around this behavior by placing VI invoke nodes in your top level VI that reference each of your subvis and setting the Wait Until Done invoke method to false. This should cause the subvi to close when the top level VI closes even in the case of an unexpected restart.
You can access this invode node in the functions pallet by selecting Application Control » Invoke Node and also selecting Application Control » Static VI reference. Wire the Static VI Reference to the vi reference input node and double click the Static VI Reference and select the appropriate subvi in the dialog window. Left click on the Method section of the invoke node and select Run VI. Finally right click on the Wait Until Done invoke method and select Create Constant and ensure this constant is set to false.
TurboPhil wrote:
The kicker is, I need to know which subvis are actually running before I attempt to open remote front panels. Is there any way to determine what subvis are actively running (and not just in memory, such as subvis that won't get executed until the top level vi reaches a certain state)? I am thinking that I could create a list of the subvis that I need access to, check to see if any are actively running on the RT system, and then invoke a remote front panel connection with those that are running.
You can access this information by using the Real-Time System Manager (Tools » Real-Time Module » System Manager). This can be used to show what VIs and subvis are loaded into memory and which are running.
For more information on using this tool please referere to this Knowledge Base article.
Message Edited by BLAQmx on 02-18-2008 11:40 AM
Mark
LabVIEW R&D -
How to set the Front panel to "Set origin at top left"???
Hello all,
Whenever i run the program the position of controls and indicators in sub panel changes so i wish to set the front panel which i am calling in sub panel to set its origin at top left corner. but i dont know how to do that.
Can anyone help me in this???
Thanks in advance...
PalsHi All,
This is the sub vi which i need to call in sub panel.....
Scroll bar on mail vi is ok but to make all the controls ad indicators visible i need to keep on scroll of called vi also.
Thanks a lot...
pals
Attachments:
Untitled.jpg 80 KB -
How can i open front panel of a vi and run it
Hi
I have a vi that i call multiple times from another vi, however i want it to open the front panel on some calls and not on others. What is the best way to do this?
I have come up with a way and was wondering if this method was okay or is there another method that might work better escepcially since i am eventually going to create an application out of it and hope that no problems pop up then
Unititled 1 calls Untitled 2 where with one call it opens and runs Untitled 2 while with the other call it simply runs untitled 2.vi
What I did was i changed untitled 2.vi window appearance to dialog but i deselected the show front panel when called, so by simply calling the subvi form untitled 1 it works. Unititled 2 runs but does not open
Now with another call i want to open and run untitled 2.vi so by looking the attached vi you can see what i have done
Again if there is a better method that would make my vi's more efficient i would greatly appreciate it.
Reza Sed
Attachments:
Untitled 1.vi 24 KB
Untitled 2.vi 10 KBWhat you did, in theory, is the correct way to do it. However, you should move the front panel open and close into Untitled2.vi and have a boolean input as to whether to show the front panel or not. This way, your calling code is cleaner, and you don't have to reproduce the code everytime you want to call the subVI and show the panel.
If you were to use Untitled2 in another project, then you woud have to go back and look how to implement the showing of the front panel in your other code. If later, you were to decide you want that VI to be maximized, then you make one change in the VI, and not in every place you ever call it showing the front panel. -
How to keep a "front panel" open during another sequence?
Hello everybody,
I'm new on the TestStand forum and I have a question for my project.
I need to make a test sequence with several sub-steps: Barcode reading, Data reading, Data analysis etc... and all these steps in a "For" or "Do... while" loop under TestStand.
Before doing the loop, I want to create a "global HMI" step using labview, with on the front panel, the status of each sub-steps. I need to update the status of each sub-step after their execution.
The sequence TS is:
Step Action Labview: HMI.vi (display front panel when calling vi)
Loop for
Barcode reading
Data reading
Data analysis...
That's why I need to keep the front panel of "HMI.vi" always open to updated /display the status of each sub-step. (something like colors of a LED). I doner 't want to call the HMI.vi after each sub-step.
I understood it's a multi-threading process and the reference of HMI.vi should always be active during all the "for loop", but I don't how to keepthe reference.
Could you please kindly show me how to do it under TestStand (verstion 4.1) with LV (7.1).
Many thanks in advance,Hi zuzu,
A UIMessage is typically used as a method to alert and pass information from your sequence or code modules to the User Interface.
For a good discussion on this, refer to the section titled "Communication from the Test to the User Interface" here:
Developer Zone Tutorial: Best Practices for NI TestStand User Interface Development
However, you can register a callback to listen for these UIMessages in other parts of your code besides the UI as well. That's what we are doing in this case with the floating panel.
So basically, in your "Update HMI" step, you would post a UIMessage using RunState.Thread.PostUIMessage.
This posts the UIMessage, and you can pass whatever value you want from the "Update HMI" step to the HMI.vi.
For information on the function call, refer to:
NI TestStand Help: Thread.PostUIMessage
In this case, we are sending a UIMessage with message code 10200, along with 2 pieces of data, Locals.Progress (a numeric) and "TestProcedure" (a string).
Typically, you can pass a Number, a String, a Boolean and a Variant with each UI Message. If you need to send multiple pieces of data of the same type (your second question), then you should bundle them together into an array or cluster (container) and pass it via the ActiveX parameter.
See the following forum posts for more details:
reference a numeric array in PostUIMessageEX
HOW To pass more than one numeric data with ActiveX postUIMessage
Jervin Justin
NI TestStand Product Manager -
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
Maybe you are looking for
-
How to handle the OK button of the parameters prompt of a crystal report
Hi, how to handle the OK button of the parameters prompt of a crystal report in vba.NET? I want to use the parameter prompt from the crystal report itself and I want to know when the report is ready. I need to export programatically by sending email
-
It on, it asked for a four digit pass code. After several guess attempts, making me wait for an hour to try each time, I gave up. The next day, it asked me to connect to iTunes. I remain locked up with that request. I've re-booted several times and g
-
Iam trying to download data from a group in my address book into Numbers. When I click on the data to move and drag to Numbers nothing happens. Using OS X ver 10.9.2 iMac
-
God help us from 'improvements' to the service - B...
My computer has been running as if its been encased in glue for the last 2 days. It seems that BT Cloud has opted to back up 9,077 of my files (only 0.46 GB). I don't know why, I thought it had done most of them already and only needed to do a bit o
-
Faces-config.xml is the only configuration file or we can keep more
Hi All, 1) faces-config.xml is the only name specification allowed in JSF for configuration file or can we use another name for this configuration (like as struts) ? 2) can we have multiple configuration files in JSF like as struts contains multiple