INMOVILIZAR CONTROLES EN EL PANEL FRONTAL
Saludos....
La razon de querer realizar esta operacion es por qu een mi aplicacion tengo muchos controles, los cuales por estetica he colocado con poca separacion, lo qu eme ha llevado a preguntar si es posible fijar los controles en el panel frontal de manera que el operador del programa no pueda alterar la apariencia.. Si es posible realizar esta operacion, se les agradeceria qu epudieran ayudarme gracias..
Que tal REOC
Gracias por utilizar el foro de National Instruments.
Contestando a tu pregunta una forma sencilla de controlar la posicion de los objetos dentro de tu panel frontal es mediante property nodes (nodos de propiedad).
Te hice un ejemplo pequeño que espero te ayude a ver su funcionalidad.
También espero que esto te sea util para que puedas correr exitosamente tu aplicacion.
saludos cordiales
Erwin Franz R.
Adjuntos:
reoc.vi 8 KB
Similar Messages
-
How can I use the button in one panel to control the other panel's appearing and disappearing?
How can I use the button in one panel to control the other panel's
appearing and disappearing? What I want is when I push the button on
one button . another panel appears to display something and when I
push it again, that the second panel disappears.> How can I use the button in one panel to control the other panel's
> appearing and disappearing? What I want is when I push the button on
> one button . another panel appears to display something and when I
> push it again, that the second panel disappears.
>
You want to use a combination of three features, a button on the panel,
code to notice value changes using either polling in a state machine of
some sort or an event structure, and a VI Server property node to set
the Visible property of the VI being opened and closed.
The button exists on the controlling panel. The code to notice value
changes is probably on the controlling panel's diagram, and this diagram
sets the Visible property node of a VI class property node to FALSE or
TRUE to show or
hide the panel. To get the VI reference to wire to the
property node, you probably want to use the Open VI Reference node with
the VI name.
Greg McKaskle -
Parallel use remote control and touch panel.
Hi.
Cisco TelePresence SX20 with firmware TC7.1.4.908e4a9 and was synchronized with touch panel. Can I use remote control when touch panel is enabled. Now remote control is locked.
Thank's.Hi
No. When a codec is paired with a Touch controller it is not possible to use the remote control.
You question number 677 in link bellow
http://www.cisco.com/c/dam/en/us/td/docs/telepresence/endpoint/articles_doc/telepresence_endpoints_knowledge_base_articles.pdf
br Oleksandr -
A Control in a panel sometimes cannot show
In my panel, there are some tables using Zplane to arrange, there is another control, a ring control in the panel, when loading and display panel, sometimes the ring control can be displayed, sometimes it can not be displayed, but I can see an imprint of the ring. In this case, is there a way to redraw the panel or the control?
DavidThis is a big project, it is difficult to get the all code phase. Just simplly describe the architecture of the app. as follows:
Arragged some picture button in the main panel, using RunUserInterface () to maintain the running and events. all of the panel color are (R:49, G:55, B:38). Of course, in the main function initializing stage, it will also do some works such as spawn threads, install control callback etc. Then the app run a monitor process in a child panel and wait user interact. PS---All the child panels' style is the classic, hidden mode. Once user pressed a button (picture button) in the main frame panel, it will load the relative child panel. In the child panel, it is placed a table, a ring and a tree control using UIR editor. The child panel will be manipulated by the main function, so it just returns its panel handle to the main panel, but not using RunUserInterface() individually. The Pseudo-code can be this:
//main frame:
int main()
mainpanel = loadpanel();
//initialize something
//wat user press button
RunUserinterface();
ButtonPressCallback()
if (pressed)
childPanel = loadChild();
insertTableitem;
insertTreeitems;
DisplayChild(childPanel);
if (hideFlag)
HidePanel(childPanel);
So, sometimes the child panel can not show controls fully, but in most cases it can show controls fully. I don't know why it will appear such a problem.
David -
How to show or hide a control in front panel
Hi All, I am revising the code from someone else, and a control in front panel seems to be hidden until you click something to make it show. I tried to use right click in front panel and it did not work by clicking something related to show or hide. Since I don't quite familiar with property nodes, this hidden setting may be related to that.
In the picture it shows the front panel and its two property nodes, could anyone advise me how to change the setting to show this control? Thank you!
Solved!
Go to Solution.If you right-click on the the control's terminal, you will see an option to "Hide Control" or "Show Control". This is what you should use when editing the code. The property nodes set to Visible are for when the application is running.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
change visible state.png 3 KB -
Hi,
I am trying to update the value of a control on one panel when the value of another control on a different panel is changed. The two panels are saved in two different .uir files, so there are two associated .h files generated by CVI. The problem is that, inside the callback function for the control that is being modified (Ctrl_Id_A on Panel_A), when I call SetCtrlVal(Panel_B, Ctrl_Id_B, Value); 'Panel_B' and 'Ctrl_Id_B' (which have the same numeric values as Panel_A = 1 and Ctrl_Id_A = 2 in their respective .h files) are being interpreted as Panel_A and Ctrl_Id_A. I never understood how CVI makes this distinction, eg. knowing which of PANEL_A = 1 and PANEL_B = 1 is being referred to, but didn't worry about it since I never needed cross-communication between panels until now. Any help on how to implement this would be greatly appreciated. Thanks!
Solved!
Go to Solution.This is a basic issue on which you can find tons of forum posts
The online help for the function recitates:
int SetCtrlVal (int panelHandle, int controlID, ...);
Parameters
Input
Name
Type
Description
panelHandle
int
Specifier for a particular panel that is currently in memory. You obtain this
handle from LoadPanel, NewPanel, or DuplicatePanel.
controlID
int
The defined constant, located in the .uir header file, that you assigned to the control in the User Interface Editor, or the ID returned by NewCtrl or DuplicateCtrl.
value
New value of the control. The data type of value must match the data type of the control.
That is, you must not use the panel constant name in the first parameter of SetCtrlVal, use the panel handle instead. The system guarantees that all panel handles are unique throughout the whole application whichever is the number of panels used in every moment.
int SetCtrlVal (int panelHandle, int controlID, ...);
Purpose
Sets the value of a control to a value you specify.
When you call SetCtrlVal on a list box or a ring control, SetCtrlVal
sets the current list item to the first item that has the value you
specify. To set the current list item through a zero-based index, use SetCtrlIndex.
When you call SetCtrlVal on a text box, SetCtrlVal appends value to the contents of the text box and scrolls the text box to display value. Use ResetTextBox to replace the contents of the text box with value.
Note This function updates the displayed value immediately. Use SetCtrlAttribute with ATTR_CTRL_VAL to set the control value without immediately updating the displayed value. For this reason, SetCtrlAttribute with ATTR_CTRL_VAL is generally faster than SetCtrlVal. However, if the control in which you are setting the value is the active control in the panel, SetCtrlAttribute with ATTR_CTRL_VAL displays the value immediately.
Note This function is not valid for graph and strip chart controls.
Parameters
Input
Name
Type
Description
panelHandle
int
Specifier for a particular panel that is currently in memory. You obtain this
handle from LoadPanel, NewPanel, or DuplicatePanel.
controlID
int
The defined constant, located in the .uir header file, that you assigned to the control in the User Interface Editor, or the ID returned by NewCtrl or DuplicateCtrl.
value
New value of the control. The data type of value must match the data type of the control.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
Seguridad en panel frontal remoto
Hola a todos, tengo un VI que quiero publicar a traves de internet (esto ya lo logro hacer), mi problema esta en que quiero hacer que al momento de que alguien ingrese a la direccion de mi panel frontal le pida una contraseña para poder ver y/o manejar el panel, como puedo lograr esto?
Saludos!!Hola, buenas tardes.
Aqui te dejo dos links que te pueden servir:
http://digital.ni.com/public.nsf/allkb/427FE409FB11575686256DFF0008BBE4
http://digital.ni.com/public.nsf/allkb/C235CAE151607DF3862575DA0050EA1F
Saludos y suerte. -
I am trying to get user color inputs from front panel and use it in IMAQ Draw. I need to draw an oval of a certain color in a background of another color. Both these color values are user input. The problem is IMAQ Draw requires SGL color value and the color controls of front panel give U32. I have tried conversion VI's which hasn't worked. HELP !!!
Jake,
I think the color control can be wired directly to the input, but I am not positive. I don't know of any color conversions that would help.
Make sure your image is a color image. You can't draw colors on a grayscale image.
You might want to consider using overlays, which appear on top of the image but are not part of the image.
Bruce
Bruce Ammons
Ammons Engineering -
Como publicar un panel frontal teneindo una IP publica?
necesito publicar el panel frontal de un VI, y cuento con una IP publica, pero tambien necesito que este se actualice periodicamente, por favor necesito apoyo.
Hola sonst,
Le anexo unos enlaces a tutoriales a como general un panel frontal remoto, para que pueda pueda controlar su aplicacion por medio de un navegador
http://zone.ni.com/devzone/conceptd.nsf/webmain/e789515b9976253786256b1f007e039b
http://zone.ni.com/devzone/learningcenter.nsf/webmain/2ad405a06ebed71586256c4e00621c73
Y lo que va a requerir para que lo puead accesar a traves de internet y no solamente de una red local, es que esa direccion IP este dada de alta en un servidor DNS.
Saludos!
Tania Lozoya
Ing. de Aplicaciones
National Instruments -
Abrir panel frontal subvi clone
Hola a Todos,
Estoy implementando un SCADA para una planta deshidratadora de gas, en el momento estoy creando las HMI para el operador. el inconveniente que tengo es el siguiente:
Tengo un vi que funciona como una ventana emergente que visuliza la informacion pertienente de un instrumento transmisor cada vez que se da click sobre el instrumento desde la HMI principal. pero el problema es al dar click sobre otro instrumento porque la informacion se traslapa. la idea es poder abrir dos paneles frontales del mismo vi con la informacion correspondiente a cada instrumento, sin nececidad de hacer una copia del VI por cada instrumento
Estoy intentando con las propiedades de Reentrant Execution del VI, y es asi como soluciono que la informacion no se traslape, pero no se como hacer que se abra el panel frontal de cada Clone que se crea del VI.
Con un Invoke Node solo abre el panel frontal original pero no muestra ninguna informacion.
Probe con la opcion Open Front Panel When Called, y funciona abriendo los paneles de cada clone, pero las ventanas quedan intermitentes y no se dejan manipular.
Gracias por la informacion y sugerencias o un ejemplo que puedan brindarme de como se podria implementar esta solucion
Solved!
Go to Solution.Hola Irenuka, Gracias por tu comentario
Ya encontre la forma de abrir y cerrar el front panel de un subVI clone programaticamente como una ventana emergente, con un property node y un invoke node, el cual se hace de la misma forma que con un VI normal, la diferencia es que hay que crear una referencia para el subVI Clone usando el nombre del subVI clone asi: "subVIclone.vi:1", luego con la funcion "open VI reference" se crea la referencia y se conecta al "invoke node" de abrir o cerrar el front panel.
LabView crea un numero consecutivo por cada clone que se haga del VI que es el numero que esta despues de los " : " que siguen al nombre del VI, para esto usamos un "property node" con la funcion "CloneName" la cual devuelve en un string el nombre correcto y el consecutivo del subVI clone asi "subVIclone.vi:1".
Adjunto una imagen con el modelo del codigo que debe estar contenido dentro del codigo del subVI clone
De esta forma puedo usar un mismo VI como modelo de ventana emergente, usarlo cuantas veces sea necesario y llamar varias ventanas emergentes del VI al mismo tiempo desplegando diferente informacion
Los subVI emergentes podran estar ejecutandoce, realizando operaciones especificas y solo se abre el Panel Frontal cuando el usuario haga click en un boton, asi puedo pasar informacion a otros VIs sin tener que esperar a salir del ciclo del subVI emergente.
Attachments:
Open_Close_FP.png 14 KB -
Como visualizar un programa adicional en el panel frontal de labview
como visualizar un programa adicional en el panel frontal de labview.
este programa es un DVR y quiero que aparezca en labview....
como lo puedo hacer???
Help me!!!Hola
Para que tengas un mejor soporte, por favor haga su pregunta en la comunidad en Español.
Saludos Cordiales -
Hola mi probelma es el siguiente: creo un programa en labview pero luego ese programa no lo ejecuto como independiente sino que lo cargo como plugin en otro programa, pues bien el programa "general" tiene su propia pantalla y no puedo hacer nada con el puesto que no dispongo de su codigo fuente y me gustaria que mi plugin no generase un panel frontal, puesto que no lo necesito y ademas no es muy util tener las dos ventanas abiertas. Para resumir quisiera saber si labview me permite crear un programa el cual no tenga panel frontal y si puede ser en labview 6.1 mejor.
GRACIASPor defecto, los vis que se usan como subvis dentro de un programa principal no abren su panel frontal automaticamente sino que permanece cerrado a no ser que se indique lo contrario.
En las versiones 7.0 y superiores, esto se puede controlar a traves de las propiedades del vi, en File>VI Properties>Window Appearance clicando la opcion Custom>Show Front Panel When Called.
Como digo, por defecto esta sin seleccionar.
En la version 6.1 no lo se, aunque imagino que existira esa misma opcion. -
Incorporar aplicación externa en el panel frontal
Saludos
Tengo una aplicación creada utilizando Visual Studio, quisiera ver si esta aplicación se puede incorporar dentro del panel frontal al estilo de los Flash Players.
Gracias
Javier Viniegra
Javier Viniegra Bribiesca
LabVIEW 8.5.1Hola Javierviniegra!
La forma de realizar la incorporación de las aplicaciones es similar. Necesitas generar el programa, tienes dos opciones despues de eso, puedes utilizar un contenedor de activeX o un contenedor de .net y seleccionar una aplicación de Visual Basic. Posteriormente puedes accesar a la aplicación que tu creaste.
Algo importante es que cuando generes la aplicación en Visual Basic te asegures de que tenga habilitada la posibilidad de activeX o de .net.
Espero que esta información te sea útil, trataré de generar un ejemplo y publicarlo.
Que tengas un excelente día!! -
TABbing between controls inside a panel to controls outside a Panel
Hi,
I have a C# winform with few controls inside a Panel control and few outside it.The TABbing order traverse from controls inside a panel to controls outside a panel.
Do we have any way to accomplish this.
Thanks,
samiIf you set the TabIndex of the Panel control itself to for example 77, the outside control with TabIndex 78 will be focused when you tab out from the control within the Panel with the highest TabIndex. Also make sure that you set the Tabstop property
of the Panel to true.
So basically the controls inside the Panel have their own TabIndex series (starting from 0) and the Panel itself is part of the Form's (or parent control's) TabIndex series.
It is just a matter of setting the values of the TabIndex properties correctly (and setting the Tabstop property to true for the Panel control).
The other option is to replace the Panel with a UserControl.
Please remember to close your threads by marking helpful as answer and then start a new thread if you have a new question. -
hola, denuevo quisiera poder cambiar el fonde de mi panel frontal, si me pudieran decir donde configuro esa opcion se los agredeseria muchismo
1. Abre la barra de herramientas (Window --> Show Tools Palette)
2. En la parte inferior de la barra hay una imagen de un pincel a lado de dos cuadros uno sobre otro.
3. Da click en el cuadro de la derecha (el más próximo al pincel) y selecciona el color de fondo que prefieras (el cursor debe cambiar a un pincel)
4. Da click en el fondo del panel frontal.
Maybe you are looking for
-
Hi All, I have a requirement where the user can writeback to a field. The table has two columns COMBI and SERVICE_REV. COMBI is the key cloumn . Below is the code in the writeback template. <?xml version="1.0" encoding="utf-8"?> <WebMessageTables xml
-
How can i pay my remaining itunes balance if its not accepting my new card details
I recently changed my card but because theres a remaining balance its not accepting my new card but how do i clear this balance if not accepting new card
-
How to change metadata database after OIM/OAM install?
Hi everyone We need to change the metadata/schema database for our OIM/OAM installation. What I plan to do is: 1. Create the new db 2. Run the RCU utility for both OID and OAM. 3. Change the connection pool data source in the OAM Weblogic console. Is
-
Enterprise SOA & Solution Manager - any particular skills to be learnt ?
Hi all, I have 8+ yrs exp in SAP, across MM WM & SolMan areas, all as Functional Consultant. I have made some basic readings about SOA and am very glad to see a lot of strides being made by SAP in this area. I am keen to know what are the exact tang
-
How can I download only Camera Raw 7.3 for Elements 9?
I have a Canon G-15 and want to download Camera Raw 7.3 so that I can open my raw files. I downloaded DNG but this requires converting my raw files to DNG.