Can a Combo Box control a Tab Control, like an Enumerated Ring control can
Is there any way to have a Combo Box control a Tab Control. An Enumerated Ring control can if all the names match "Exactly", question is can a Combo Box do the same, especially within an Event Structure?
I haven't been able to figure it out. Enclosed is a test VI that has an enumerated ring example, and a combo box with the same data. Thanks for your help...
Test Tab Control .vi:
http://forums.ni.com/attachments/ni/170/215375/1/Test Tab Control .vi
A tab control can be treated like an enum, so your question comes down to: "Can I map a ...*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...Invisible control within a custom control
I have a custom control made up of a cluster that (somehow) contains invisible controls within it. These are enums that were not typedef'ed and I now need to change them. Can I access the properties of an invisible control inside a custom control so I can view them adn change them?
Create a property node for your cluster and get property "controls".
Now iterate over the array of control references and set them to visible via another property node. (see image for a simple code draft)
Message Edited by altenbach on 04-20-2007 01:51 PM
Nice! :smileyvery-happy: :smileyhappy: :smileytongue:
...Finding control type from control reference
I have a stric type control (A) on the front panel of a VI. This control is a cluster made up of a number of instances of another strict typed control (B). Later control (B) is also a cluster made up of two controls, a check box and an enum. In the VI there is a value change event handler for control A. (I have included the check box to conrol B, it previously had only the enum). There is existing code in that event handler that works on the enum control. When I check a box, event handler is called and it tries to detect which enum's value has been changed. Since none has been changed, it enters into an endless loop.What I want to do is use the CtlRef (terminal?) of the event handler to execute the previous code if the control is enum, otherwise do nothing. (I'll place the code in a case structure). How can I find the controls type from CtlRef?What are those things inside the event handler called (e.g. OldVal, NewVal, CtlRef)?Thanks a lot for your time!Have a very nice weekend!
From what I understood of the description you provided, it appears that you are looking for the class ID of the controls. Each control type has a class ID.
You can get the class ID's from the controls within a cluster.
To see if I understood correctly, please see the attached example. If it is not what you are looking for, please provide clarification (and do not rate my post).
Oops.. I didn't answer the 2nd part of...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&view=by_date_ascending&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.
...How can i use labview.tlb to control Labview from an external application?
I've been told by a labview engineer that i could use the file
labview.tlb located in the labview install folder to control labview
from an external application (in my case, a C# app). I'm using Labview
6.1 under Windows 2000. This article confirms that:
"ActiveX and LabVIEW"
But i've not been able to find out how to use this file to achieve
what i want. I just want to be able to open/close labview, open/close
a vi, start/stop a vi, hide/show a vi from a C# application. Th...Valve control
Hello, I am still trying to figure out a method of controlling a discharge valve for compressor testing. The valve is controlled by a slider, but when it hits a certain point of being closed, the compressor surges. At that surge point, I want the user to click a button, and then have the valve slowly open while the data is being sent to a file. This way, the data is recorded and the valve opens to prevent damage to the compressor all at the click of one button. I have the VI up and running, all except for the opening part of the valve. I have included a simple example of where I am going with the valve control. Any advice would be appreciated, for then I can implement that code for the valve opening into the rest of my programming.
...tab control inside another tab control
Is it possible to put a tab control inside another tab control. I tried
it several times, but for some reason this doesn't seem to work.
Can someone confirm this, or tell me what the trick is.
The only way I know to do this is to put a subform on the first tab control.
Then you can put your second tab control on the subform.
If you do this repeatedly, however, you will find the form loading rather
"Georges Heinesch" <firstname.lastname@example.org> wrote in message
> Is it possible to...can Labview 7.0 control an instrument without the labview driver?
hellow,i have an instrument which do not have the labview driver,its
output signal is RS232,so can i use labview7.0 to read the signal?
Another possible option is to use the Instrument I/O Assistant. It is
an interactive tool that generates Instrument I/O and response parsing
code for you. It is very helpful in establishing a connection and
helping parse instrument response data. It is pretty high level and
basic, so if you want to utilize any special serial VISA functionality
it may not go as deep as you would like - but it can definitely help
get you started.
...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? How do you have them/plan to have them connected to your computer? 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)? The more information you can give the better help you will receive. Cheers
It would also be helpful to know what version of LabVIEW you are using. It's impressive that your starting to learn LabVIEW at such a young age, it will be challenging but worth it!
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
It looks like your controller is designed to be programmed in BASIC. What you will need to do in order to control it with LabVIEW is figure out what the function calls 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. Has anyone done something similar? 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. 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. 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. 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. Perhaps LabVIEW itself already provides for multiple serial card communications (wouldn't that be perfect)? Any info would be great. Regards, Dave
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 - built-in and USB->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 DAQmx controls can be customized
Is there any way to customize DAQmx controls because "Customize Control" option is disabled and greyed when a DAQmx control is selected.
Just like dialog Controls, can we customize DAQmx controls in such a way that they are shown according to the Windows theme.
You should be able to just right-click on the control and follow the tree as you can see below:
If this isn't available for you, then could you tell us what version of DAQmx and LabVIEW you have?
http://forums.ni.com/attachments/ni/170/148560/1/733245-Custom...How do I use a LabView control element as ActiveX Control in another application?
I am was trying to include some simple ActiveX Controls(sliders,
buttons) in my VBScript. It worked with other ActiveX Components from
the web, however I wasn't able to include the LabView ActiveX Controls
because I was missing the necessary IDs. Moreover I was able to test
the LabView control by inserting it into the VC++- Test Container. But
I still can't find the necessary IDs...
I don't believe that any of the LabVIEW controls (except for 3D
Graphs) are ActiveX controls so I'm not sure what control you were
able to insert into the VC++ container. What's the exact name ...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.
...Front panel controls and indicators flicker inside Tab Control
I'm using a Tab Control to organize controls and indicators by functions or processes. I notice that all of them no mater which tab I?m in, flicker. I don't have any item overlap each other. Even more strange is that when I made a similar Tab Control within the same application and transferred all of the controls and indicators to it, the flicker went away. In the end I kept the new tab control and deleted the old one and everything is working great.
Anyone has any idea why this happened? Also I wanted to post this problem/solution in case anyone else has a similar problem in the future.
what's your LV version? i remember some bugs with LV 6.x and tab pages.
what controls do you use? dou you handle with huge data amounts in graphs, pictures etc.? Or do you write to controls with very high rates?
The best next step would be to post a stripped code that reproduces the behaviour so we can take a look at it.
I'm using LV 8.5 for Window 2000. As I mentioned in the original post, the problem went away by just creating another Tab control and moving, without any modifications, the controls and indicators to it.
Thanks for the reply,
...How can I set the caption text of picture controls inside an array or how can I choose which array element is assigned using the array elements caption text property.
I have 8 picture controls inside an array and I would like to set the caption text of these controls.
I have used the property node of the array and used the array elements property caption text to set the text.
The problem is however that I set the same text to all the picture controls inside the array.
My question is how to set caption text of specific elements (Picture control) that I have so far only been able to access using the array elements caption text property.
Some more help
1 You could use the caption of the array and...Where can I find free ActiveX controls?
I would like to know your best websites where I can find ActiveX
thanks a lot in advance!
...Where can I find a wired servo controller?
I would like to find an inexpensive wired servo controller to operate
a small RC type servo such as a hitec, futaba, etc. Is there such a
thing that a person can purchase?
You can build one easily enough. Google for "servo tester".
On 11 Feb 2004 17:35:36 -0800, email@example.com (SDNomad) wrote:
>I would like to find an inexpensive wired servo controller to operate
>a small RC type servo such as a hitec, futaba, etc. Is there such a
>thing that a person can purchase?
How were you going to control the servo? Or what were you wanting to use to
control...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?
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...Disk model controls whether one can control boot order?
I've several systems built around:
WIth Western Digital drives - WDC WD800JD-00MS - the BIOS lets me choose
from which disk booting is to occur. With the Seagate equivalent, the
BIOS only lists one drive on that "page".
It really does appear to be a matter defined by the drives. If I open a
"list only one drive" machine and replace its two Seagate drives with
Western Digital drives, it becomes a "list two drives" machine.
I cannot imagine how the drives would be causing this in the ...VIs that allow you to test if a given control is a control of a particular LabVIEW class type
The attached zip file contains VIs are saved in LabVIEW 8.5.
Included in the .zip are three VIs you may find useful when working with LabVIEW classes.
- Qualified Name Array To Single String.vi takes a VI's qualified name, given as an array of strings, and converts it to a single colon-delimited string. This VI may be useful for working with VIs owned by any library type, and it is used as a subVI of the other two VIs in this .zip file.
- Is This Control Of This LabVIEW Class.vi takes a control refnum and a LabVIEW class refnum and tells whether the control is an instance of the given LabVIEW class. It returns true for regular class controls/indicators and for XControls of the class.
- Is This Control Of LabVIEW Object Class.vi is the same as the previous, except it does not take a class refnum for input. LabVIEW Object is the built-in class that is the ancestor of all other LabVIEW classes, and this VI specifically checks to see if the given control is an instance of this class.
The second two VIs in this .zip file are both password protected. In a built application, both will return a "not supported" error.
Detecting Controls of Specific LVClass Types.zip:
http://forums.ni.com/attachments/ni/170/279037/1/Detecting Controls of Specific LVClass Types.zip
I'm seeing an 1063 error when I try to use the "Get Control Data Type.vi" on a control extracted from a cluster or an array. The error does not show up if I...How can I set the tab order of text box controls on each page of a tab control?
I need to be able to select the tabbing order of individual controls
on a single page of a tabbed control. How??
In LV 6.1 an up you should be ablel to right click on the edge of the
tab control when the tab-page in question is selected.
The bttom selcetion in the pop-up is "Reoder controls in page..."
selecting this option will switch editing modes to allow you to
specify the ored, just like in a cluster.
I seem to remeber in older versions you had to drag the tabable
controls off the tab control, specify the tabbing oder and then drag
them back on. The oldest version I have on ...Re: How can I select matched controls for 1:m case-control study
What I think you are looking for is a simple SQL code should get you =
what you want in the fewest number of lines of code and still keep the =
readability to a maximum.
Search our arcives for:
Simple data querying problem
since: 01 december 2004=20
And you will find a solution to a problem that you can easily modify to =
fit your needs.
From: SAS(r) Discussion on behalf of zhang yewu
Sent: Tue 12/28/2004 10:17 AM
Subject: How can I select matched controls for 1:m case-control study
I have two data set, one is for patients(cases), and the another for
non-patients(controls). the variables of two data sets are same. I =
pick out m matched nopatients for each patient. In each matched =
patient and m non-patients should be same address, sex, and their age
difference shoud be within 6 months.
how can I make it?
...how can i use labview and datasocket to control a GPIB...
how can i use labview and datasocket to control a GPIB instrument
remotely via a standard web browser
i have the labview 6.0 base package running on a windows machine and
also have a windows 2000 server. can my task be performed or do i need
any additional software/add-ons
Unless you already have the GPIB card for the server, it's about the
same price to get an NI ENET-GPIB (or Agilent LAN-GPIB). These
devices control your GPIB instruments through the LAN. VISA makes
them program just like any other GPIB instrument.
If you already have the GPIB card in the server, it depends upon your...