Creating custom control

Hi everyone,
Is there a way to create a custom control with multiple controls and include the programming code together?  I've done a search and looked a creating a new control.  However, you can't create a custom control with multiple elements together (e.g., I need three combo boxes together) without using a cluster.  Once I put them on a cluster, the control can be included in my projects but I can't access the code normally (i.e., ctrl-E).   It would be really convenient to create custom controls with the internal logic in a drag-and-drag piece.  
BTW, how would you interface with this type of control since Vi's only have one set of inputs and outputs.  Would I have to control it (i.e., call multiple functions/methods using a flag)?  Thanks for your help since Labview is still new to me.
x9561 (148439)
7/8/2008 2:10:08 PM
comp.lang.labview 35213 articles. 1 followers. vasusachin24 (1) is leader. Post Follow

7 Replies

Similar Articles

[PageSpeed] 44

Search the LabVIEW help for "XControl". It is really not intended for use be noob's but if you pound at it hard enough, and don't give up, you'll learn a lot along the way.
Otherwise you may want to look for the radio buttons. :smileywink:
x9561 (148439)
7/8/2008 2:10:09 PM
A co-worker showed me a very simple method of simulating a control using a Sub Panel connected to a VI.  This allows the VI to be used 
The most significant drawback is the fact that each VI can only be used once, unlike XControls it would appear.  However, since we only need one control and this method simplifies the code, we'll probably use this method.  I'm still investigating the XControl -- which is exactly what I was originally looking for -- for future applications.
Thanks everyone.
x9561 (148439)
7/9/2008 2:10:13 PM
Hi, Additionally, please take a look at <a href="http://zone.ni.com/devzone/cda/tut/p/id/3198" target="_blank">this</a> DeveloperZone article, it is pretty comprehensive and it should be very helpful.
x9561 (148439)
7/9/2008 3:40:07 PM
Hi Will, it is possible to make your code reusable if you put all your manipulating code (property nodes, event handling) into a SubVi and wire a control reference for each control of that kind to this SubVi. If I find some time, I'll try to code and post an simple example of that.Felix
x9561 (148439)
7/9/2008 4:40:08 PM
I started working on a simple example for a XControl.&nbsp; What is method of controlling the output of an XControl?&nbsp; I've created a simple XControl with a slider and string.&nbsp; The code syncs the two contents together (slider numeric is converted into a string).&nbsp; I've tried connect the slider output to both data out and display state out (a cluster with one numeric) but the output always remains zero.&nbsp; 
x9561 (148439)
7/10/2008 2:40:09 PM
Can you post the code you have so I can take a look at it?
x9561 (148439)
7/14/2008 7:10:11 PM
Sorry for the delay.&nbsp; It's a busy time right now.
Here is an example code.&nbsp; I've set up a string and a slider to be syncronized.&nbsp; I would also like to be able to read the value of the slider, and in the future a specified cluster from the control.
Thanks for your help

x9561 (148439)
7/21/2008 8:10:06 PM

Similar Artilces:

How do I create an emergency stop custom control in LabVIEW that looks like an actual E-stop button
How can I find (or buy) a variety of custom controls for various applications that look better than the standard NI controls. This is very easy to do in labview.The way that you do it is by double clicking the control. This will bring up the customize window and from there you can make it look like you want it to by inserting pictures into the control of the way you want it to look at each state. Look at the shipping examples that come with labview and experiment with this a little bit. It makes for a great GUI feature when you do this. Hope this helps Joe All of the above is excellent adv...

Create my own Custom Controls
Hi, I want to create my own Custom Controls using MSVC++ 6.0 without MFC, I can't seem to find a good tutorial anywhere though, does anybody have experience on creating controls and could you give me some pointers on how to get started? Or do you know where I can find a good tutorial, where? Regards, Spikinsson On Fri, 11 Jul 2003 17:38:18 GMT, "Spikinsson" <not@gonna.tell.ya> wrote: >Hi, I want to create my own Custom Controls using MSVC++ 6.0 without MFC, I can't seem to >find a good tutorial anywhere though, does anybody have experience on cre...

How to create custom controls?
I have two custom controls I want to create: 1. Something like a wxBitmapButton, but it acts like a checkbox. It will look like a classic toggle switch, up for checked, down if not. 2. A rotary knob control. I guess it's functionally like a wxSlider but it looks like a volume control knob. Do either of these things exist? If not, what's the best way to go about creating them? Would I start from a wxCheckbox and wxSlider, then graft on the custom look? Or would it be better to go down a level, starting with wxControl? I notice that wxBitmapButton is deriv...

Creating custom trackbar control
Dear All, I would like to know how to create a custom trackbar control which uses our own thumb and trackbar channel while moving of thumb occurs.So please give the guidance which can help me a lot. Regards, Srinivasa Reddy Kalam. <srinu.445@gmail.com> wrote in message news:1167491142.090707.241050@a3g2000cwd.googlegroups.com... > Dear All, > > I would like to know how to create a custom trackbar > control which uses our own thumb and trackbar channel while moving of > thumb occurs.So please give the guidance which can help me...

Question about creating a custom control
Hi, I'm learning to use wxWidgets. Actually i'm reading some tutorial and i'm trying to code a simple app that serve as an introduction project. It seem promising :) I would eventualy like to code a chess interface, so I would have to code a custom control to display a chess board. I red this : http://wiki.wxwindows.org/wiki.pl?Subclassing_WxControl It seem really easy to me, but I don't know if such a control could grab events such as the mouse movements. I would have to grab it in order to implement piece drag an drop. Also I would like to know if the draw...

Custom Control for creating graph
Hi All, I am looking for a custom control to plot graph. The specifics are that this control needs to have the ability of polynomial fitting. I am just wondering if any of you have some information on this!! Thanks in advance!! Alan ...

*Custom Control Help! Using a classic C-Style custom control.*
*Custom Control Help! Using a classic C-Style custom control.* Hello, I am attempting to port a classic C-style custom control into a .net application. Using Visual Studio 6, This was originally done via the resource files in the project, using a "CustomControl" item in the resource editor, and pointing the "windowclass" to the specific class name of the developed custom control. I would like to get the .net flexibility. This window class is registered in the dll using the following code: wc = Template; wc.style |= CS_DBLCLKS; wc.lpfnWndProc = RecordingWn...

Can I create an ActiveX control from LabVIEW
I have some LabVIEW code that I would like to convert into an ActiveX control. There was rumours that this was to be included in Version 7, but I can't find it. Is this possible? Hello, Currently, you cannot create ActiveX controls in LabVIEW. I agree, it would be great to be able to embed custom LabVIEW code into other applications via ActiveX. I will make sure that this idea is suggested. In the meantime, if you want to embed your code into other VIs, consider the remote panel or subpanel capabilities of LabVIEW. These capabilities creates a shell containing the VI, much like an Ac...

Custom Control
Hello!A new LabVIEW user here.&nbsp; I've been assigned my first project, and I'm already stumped.&nbsp; My front panel needs to have two switches -- one which "Stops" the program, but allows the current processing and error-handling to complete before stopping.&nbsp; The second is an "Abort" switch which immediately halts the program.&nbsp; I want to design my "Abort" switch to resemble an EMO Switch -- a red mushroom with a yellow background.&nbsp; Here's a hardware example photo&nbsp;of what I want to draw: &nbsp; <a href="http://www.automationnotebook.com/2005_Issue_5/images/Pushbutton_emergencystop.jpg" target="_blank">http://www.automationnotebook.com/2005_Issue_5/images/Pushbutton_emergencystop.jpg</a> &nbsp; I've tried modifying an existing Boolean, and then I tried creating a new custom control using a decoration and an existing switch.&nbsp; But I can't get seem to select the Boolean with selecting the decoration, or the decoration wants to cover-up the Boolean and I can't set the Z-order. &nbsp; Any tips or advice?&nbsp; Can I group decorations with existing Booleans?&nbsp; Can I modify decorations to become Booleans?&nbsp; Can i create curved text? &nbsp; If anyone has already created one and could share it, I'd appreciate it! Please see tst's Nugget <a href="http://forums.ni.com/ni/board/message?board.id=1...

LabVIEW PDA customize boolean control with picture
For a PDA application, I'm looking for a way to customize a boolean indicator. To do this I went in the customize option of the boolean and then import picture for the false and true state. in programming mode I see the correct picture for the different states but when I download this application on my PDA (TPC-2006 with winCE) in only see a blank picture on the boolean. Is this a limitation of the LabVIEW PDA or is there another way to do this ?&nbsp; (see example in attachement) Thanks in advance for your help. &nbsp; &nbsp; EC-103.vi: http://forums.ni.com/attachments/ni/1...

how to create a feedback control system in labview with an integration block?
Hallo, &nbsp; I design a model of a simple mechanic system composed by one damper, one mass and one spring. I would simulate a free response of this mechanic system, but I don't be able to integrate the mechanic state in Labview. Seeming that the integration block in LabView produce a wrong answer. &nbsp; I've attached this model create in Labview 8.2.1. &nbsp; Thanks in Advance &nbsp; Michele Sistema dinamico6.vi: http://forums.ni.com/attachments/ni/170/272726/1/Sistema dinamico6.vi ...

Can I create a .Net custom control in a Microsoft Access form?
Hi, I'm fairly new to .Net, but an expert in Microsoft Access VBA. For a large Access application, I want to create some sort of custom control (COM interop?) in VB.Net, to be used in an Access form. The control needs to put together a simple design drawing for building constructors, based on some values in the Access form. Can it be done? My question is: what kind of solution/project do I need to create in .Net, so that I can drag the control on an Access form, and use it's properties and methods? So far I have achieved the use of a .Net dll in Access of which I can use the prope...

Re: LabVIEW 8 bug?: reusing custom controls with imported graphics
Tenia un problema parecido, pero en lugar de aparecer una "d" me aparec�an figuras diferentes como circulos, rectangulos, y estos cambiaban al enviarlos al fondo o al frente, el unico control que no tenia la "d", era el de hasta el frente.&nbsp; Incluso las otras im�genes se alteraban. Despu�s de modificar muchas cosas, la soluci�n que encontr� fue colocar en el block diagram todo dentro de un case, dentro de "TRUE" y en "FALSE" un ONE BUTTON&nbsp;DIALOG. ...

creating custom options for custom widgets?
Hi all. I'm creating a new widget class using Tkinter (class inherited form Tkinter.Frame). This class creates a bunch of other widgets inside it that can be "gridded" either horizontally or vertically. I would like to provide the user of the class an option to change this layout on the fly, using something like "widget[ 'layout' ] = 'vertical'". Does anyone have experience with that? I'm afraid i just down know how to proceed or where to look for an example. thx for any help. alex. ...

How to easily control multiple controls in labview
How can I easily control multiple controls with a single write to in Labview? For instance, I need to update 50 different boolean indicators. When I update them one at a time I use a cntrl refrence in my event structure, but outside of an event structure how can I easily cycle through them and update without making 50 local variables if I need to do them all at once? Why don't you use an array of boolean indicators? Have a look at the example attached <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;view=by_date_ascending&amp;message.id=204328#M204328" target="_blank">here</a>, which can also be applied to this. You should usually avoid updating the value of a control from more than one place, though (unless it's something like initialization, where you can guarantee not having race conditions). Other alternatives: using an array of booleans or using the picture control to create the image. The way i use these booleans in my UI, I had to make them separate so I could arrange them in a user friendly way. And yes this is just for initialization so they won't be getting updated in two places at once. ...

Invisible control within a custom control
I have a custom control made up of a cluster that (somehow) contains invisible controls within it.&nbsp; These are enums that were not typedef'ed and I now need to change them.&nbsp; Can I access the properties of an invisible control inside a custom control so I can view them adn change them? Thanks Create a property node for your cluster and get property "controls[]". &nbsp; Now iterate over the array of control references and set them to visible via another property node. (see image for a simple code draft) &nbsp; <img src="http://forums.ni.com/attachments/ni/170/243031/1/MakeVisible.png"> &nbsp;Message Edited by altenbach on 04-20-2007 01:51 PM MakeVisible.png: http://forums.ni.com/attachments/ni/170/243031/1/MakeVisible.png <img src="http://forums.ni.com/attachments/ni/170/243039/1/Show%20Hidden%20Element.png"> Nice! :smileyvery-happy: :smileyhappy: :smileytongue: Thank you! Ben ...

How do I create Labview VISA ports for *individual* GPIB instruments using Prologix USB GPIB controller?
Hello, I'm trying to use a Prologix USB GPIB controller to control GPIB instruments, and I would like to have a virtual serial (VISA) port for *each instrument*, as is the case with a normal GPIB controller with a standard NI driver. However this is not what the Prologix driver provides -- it provides a single VISA virtual serial port for the entire controller. To address the instrument with GPIB address 11, you first send "++addr 11" to the serial port, and then you're talking to instrument 11. However, this means I have to change all old Labview programs. Is it possible to create a "wrapper" function of some kind that will define a virtual serial (VISA) port for each *instrument* on the controller? For example, to talk to GPIB instrument 11, call it ASRL3::11::INSTR, each time it is written to it would have to write to the virtual serial port of the controller, say ASRL3::INSTR, first "+ +addr 11" and then the command that is sent to it. A clearer explanation of the difference (i.e. incompatibility), and of my objective: 1) A normal GPIB controller with NI driver: I go to the NI Measurement & Instrumentation Panel, under GPIB, and Scan for Instruments; all the live instruments show up; subsequently when I want to use Labview programs that use VISA ports, the VISA drop boxes allow me to choose a different port for each instrument, e.g. "GPIB0::11::INSTR", "GPIB0::12::INSTR" would be instruments at addresse...

Re: I would like to remotely control a LabVIEW application. Is it possible to create multiple different passwords for different users
Hi there, &nbsp; I tried&nbsp;the Remote Panel Login&nbsp;examples which were attached by Zvezdana S. It works when main.vi running in Labview enviroment. But after I created a executable file of main.vi, it didn't work, the Web Server: Browser Access couldn't be changed from "remote panel loging.vi".&nbsp; BTW, both main.exe and Remote Panel Login,vi run at the same PC. &nbsp; I am confused by ports number, ini file. How could I set port number when they are running at the same PC? When I built the executable file, ini file was built in as a support file...

How to create, in a .RC file, a control with child-controls
Hello All, I'm trying to create a dialog with a rebar control in it, which should go between a listview (top) and a textbox (bottom). The problem is that I have no idea to, in a .RC file, create a control (the ReBar) with two other controls as its childs (the listview and the textbox). By the way: I do not even know if the above actually possible (or the best way to do it). So, help is appriciated. Rudy Wieser P.s. I assume that the same method could than also be used for a groupbox (so that if the groupbox is disabled/made invisible all its children will be too) ? ...

Creating a scrollable window for runtime created controls
I'm using Bloodshed Dev-C++ to write a program used to calculate orders for my business. Until recently a command line program has been sufficient but it is beginning to become cumbersome so I've switched to writing a windows program and am learning the API as I go. If I use a term wrong correct me - my experience in windows programming is limited, I do however understand C++ fairly well as I've been using it for about four years. I want to be able to add controls at runtime to my main window - which I have succesfully done. The number of controls is dependant on the customer'...

Is LabVIEW Runtime required for a DLL created by LabVIEW ?
Hi &nbsp; Could some one&nbsp;advice me on this matter please. I am trying to build a DLL for a set of functions created in LabVIEW. Now I am&nbsp; wondering if I need to use it with some other language like VB or C++, do I need to install the LabVIEW runtime of the same version as the original functions ? &nbsp; Any settings required while creating the DLL ? I am trying to&nbsp;create it in LV 7.0 &nbsp; Thanks in advance Deepu. &nbsp; Hi Deepu, yes, if you want to use a dll, which is created with LabView you have to install&nbsp;the runtime engine. Mike Alright Mike, Thanks ! I was&nbsp;hoping it would work without the LabVIEW runtime. Anyway, thanks for the quick reply. Rgds Deepu. ...

How do you control seperate motors with Labview through a remote control?
Forgive me if I am not typing the question correctly, or if it is a stupid question. I am only fourteen and only started learning about Labview.. I would appreciate all help possible. Thanks What type of motors are you trying to control?&nbsp; How do you have them/plan to have them connected to your computer?&nbsp; When you say you want to control remotely, do you mean that you don't want them connected to a computer or that you want to communicate remotely through your computer (no cables)?&nbsp; The more information you can give the better help you will receive. Cheers Hi LouidSilence, It would also be helpful to know what version of LabVIEW you are using.&nbsp; It's impressive that your starting to learn LabVIEW at such a young age, it will be challenging but worth it!&nbsp; Well first off, thanks for asking questions to my questions, it helps me too :) The kind of motors I am trying to control are IFI Robotics Multi-Speed Motor Connect to PWM or RLY port (12 volt).. I am trying to remotely control it wirelessly, through an IFI Robotics Isaac16 EDU Robot Controller with 900MHz Short Range Radio Modem. Hope this Helps.. Oh yeah, and the version of LabView I am using is 8.5 Hi LoudSilence, It looks like your controller is designed to be&nbsp;programmed in BASIC.&nbsp; What you will need to do in order to control it with LabVIEW is figure out what the function calls&nbsp;are that will be required to activate your PMW signals etc.&a...

Reading controller data into LabVIEW through serial connections to controllers?
I'd like to read data from environmental chamber controllers (System Plus) into LabVIEW through RS232 connections.&nbsp; Has anyone done something similar? &nbsp;I see interfacing with the serial controllers as the biggest obstacle and although not directly related to LabVIEW programming, I'm hoping someone here can give me some advice or resources on how best to do so now days. &nbsp;My first thought is to write a program with VB or C++ to act as a terminal and write the data to a text file for LabVIEW to poll.&nbsp; Aside from using Telix decades ago to work with BBSes, my only other serial experience consists of interfacing with a Kiethly multimeter using a C++ program.&nbsp; &nbsp;I would rather not use multiple PCs but I have never worked with more than one serial port on a computer before in the past.&nbsp; Perhaps LabVIEW itself already provides for multiple serial card communications (wouldn't that be perfect)? &nbsp;Any info would be great. &nbsp;Regards, &nbsp;Dave&nbsp;&nbsp; LabVIEW has had support for serial communication for as long as I've used it and may have been part of version 1. It also supports multiple serial ports&nbsp;- built-in and USB-&gt;RS232. There are even a couple of shipping examples. I've not used this particular chamber but I've used several with serial connections. It's a matter of getting the programming manual and working through it if a driver does not al...

How do I control flow through MKS Mass Flow Controller using Labview
How do I control flow through MKS Mass Flow Controller using Labview? Im new to LabVIEW please let me know bout it in detail. Thanks for all the help. ...

Web resources about - Creating custom control - comp.lang.labview

Wikipedia:Creating a bot - Wikipedia, the free encyclopedia
It is often far simpler to request a bot job from an existing bot. If you have only periodic requests or are uncomfortable with programming languages, ...

U.K. Woman Faces 20 Months For Creating Fake Facebook Accounts, Sending Herself Abusive Messages
A woman in Cornwall in the U.K. came up with a creative way to use Facebook to accelerate a family spat, and it earned her 20 months in prison. ...

Sandi Krakowski’s Tips for Creating Great Content
Quick tips to help you create great content for your business.

Bug - Creating a Video.Watches Action stopped working - Facebook-Entwickler
Since today executing a POST on a me/video.wacthes endpoints no longer works, it was working around 10 hours ago since then the call always returns ...

Facebook simplifies process for creating repeat events
Facebook introduced a new feature for events this week that allows users to quickly create a similar event as one they previously hosted or attended. ...

The Obama campaign won by creating their own Facebook, with unique features for political campaigns.
... seen as too dangerous to nominate someone who is so thoroughly narcissistic, arrogant and dishonest. The Obama campaign won basically by creating ...

Creating A Great Startup Culture
... with any Bay Area startup these days (ping pong, beer on tap, catered lunches and Macbook Airs) – though these things are, of course, Creating ...

Campus Coaches: Creating a culture of wellness, one school at a time on the App Store
Read reviews, compare customer ratings, see screenshots, and learn more about Campus Coaches: Creating a culture of wellness, one school at a ...

Creating Economic Dynamism: Joseph E. Stiglitz
DAVOS/SWITZERLAND, 25JAN13 - Joseph E. Stiglitz, Professor, Columbia University, USA talks during the session 'Creating Economic Dynamism' at ...

YouTube - Super Human Abilities: Tila Tequila Creating Energy Balls & Electricity Out of Thin Air!
Veröffentlicht am 24.04.2013 Hey Guys! For a long time now I have been able to do some pretty supernatural things that most would consider "SUPER ...

Resources last updated: 3/19/2016 9:03:58 AM