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.
...Tab control in one of the tabs of another tab control
One of my colleagues is working with a tab control. He has several tabs. He is trying to embed another tab control inside one of the tabs of the first tab control. He had placed the second tab control inside one of the tabs of the first tab control. But the problem is that the second tab control does not show up (unless one goes to the block diagram and double clicks the second tab control, only then does it shows up; when the vi is closed and reopened its again not there). I told him that I had never seen such functionality (a tab control inside another tab control) in any application but is it somehow possible. All this is required while the VI is not running and is being developed (of course it should work at run time, but this functionality must show while the VI is not running, i.e., this functionality should be non-programmatic. Is it possible. Thanks for your time.
Hi rashid, yes it is possible. See the attached example. I see no problems with it.Hope it helps.Mike
Thanks <a href="../view_profile?user.id=88992" class="auth_text" style="font-weight: bold;" target="_blank"> MikeS81</a>! Yes you are absolutely right. Your VI is working perfectly. I wonder what has my friend done to get such behaviour as he is getting. Strange! Thanks for the help!Have a very nice day!
Hi rashid, can you upload your vi, maybe someone found the proble...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...LabVIEW PDA and Tab Controls
I am pretty new to LabVIEW which I need to use for my thesis.
I'm using LV 7.1 with the PDA module and the target is an iPaq with
Pocket PC 2003 (hx4700). Then I have the 6062E DAQ Card which I connect
to the PDA with a PCMCIA to CF adaptor.
I have to develop an application for the PDA which have to acquire data
and which can send them to another PC (a desktop one) or using TCP over
wi-fi, or using bluetooth
The PDA has not a big display (just 480x640), so I need to overcome this
problem someway. And I thought to use the tab control on the front
panel, to switch betwe...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...National Instruments programs 2004, NI Measurement Studio Enterprise Edition v7.1, NI Labview Data Logging And Supervisory Control Module v7.1, NI Vision Builder For Automated Inspection v2.5, N
National Instruments programs 2004, NI Measurement Studio Enterprise
Edition v7.1, NI Labview Data Logging And Supervisory Control Module
v7.1, NI Vision Builder For Automated Inspection v2.5, NI
LabWindows/CVI v7.1, Vision Development Module v7.1, NI-IMAQ for IEEE
1394 V1.5.2 Suite, NI-MOTION V6.1.4, LabVIEW V7.2 Professional
Development System, Diadem 9, Digital Waveform Editor V1, other
B07 NI Measurement Studio Enterprise Edition v7.1
B15 NI Labview Data Logging And Supervisory Control Module v7.1
B16 NI Vision Builder For Automated Inspection v2.5
B17 NI LabWindows/CVI v7.1
B22 Vision Development Module v7.1 - National Instruments
B23 NI-IMAQ for IEEE 1394 V1.5.2 Suite - National Instruments
B10 TESTSTAND Version 3.1 - National Instruments
LabVIEW V7.1 Professional Development System - Native Inst
SN: X29Q19221 CD NR 15
LabVIEW V7.2 Professional Development System - Native Instruments 15
National Instruments Diadem 9 15 244
National Instruments Diadem v8.1 incl SP1 15 001
NI TESTSTAND VERSION 3.0 - National Instruments
SN: S00Z12345 14 943
National Instruments Digital Waveform Editor V1 13 554
LABVIEW V7.0 - NATIONAL INSTRUMENTS SN: M21X32022 [2 CDs] 12 509
--------...National Instruments programs 2004, NI Labview Data Logging And Supervisory Control Module v7.1, NI Vision Builder For Automated Inspection v2.5, NI LabWindows/CVI v7.1, Vision Development Modul
National Instruments programs 2004, NI Labview Data Logging And
Supervisory Control Module v7.1, NI Vision Builder For Automated
Inspection v2.5, NI LabWindows/CVI v7.1, Vision Development Module
v7.1, NI-IMAQ for IEEE 1394 V1.5.2 Suite, NI-MOTION V6.1.4, LabVIEW
V7.2 Professional Development System, Diadem 9, Digital Waveform
Editor V1, other
B15 NI Labview Data Logging And Supervisory Control Module v7.1
B16 NI Vision Builder For Automated Inspection v2.5
B17 NI LabWindows/CVI v7.1
B22 Vision Development Module v7.1 - National Ins...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.
...Tab control within another tab control
I am creating a form with a tab control containing 10 tabs. and what I
want to do is on only on of the tabs, I want a sub section of tabs.
So what it ends up being is one main tab control with another tab
control embedded into only one of the tab pages. The problem I am
getting is when I insert the sub section tab control into one of the
tabs from the main tab control, the sub section tab control appears in
every tab in the main tab control. Can anyone help? What do I need
to do so it only appears in one tab, not all.
As you found, you cannot place a tab control on one of the pages...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" <email@example.com> wrote in message
> Is it possible to...Using the cFP controller with only LabVIEW and FIELDPOINT software but no LabVIEW RT
I have a cFP-2020 controller and cPF-AI-100 modules which I intend to use in a small project. I do have LabVIEW and FIELDPOINT software but I dont have LabWIEW RT software. Is it possible to use the cPF controller with only just LabVIEW? if yes, I would like to be advised how. Thanks
It is not possible to set up your system without Labview realtime module.
There are system integrators who can build a executable for you. You can search for a alliance member by using the following link; <a href="http://sine.ni.com/apps/utf8/niaa.search_display" target="_blank">http://sine.ni.com/apps/utf8/niaa.search_display</a> Or call your local NI branch office. But if you are planning to do more realtime projects in the future this wouldn't be costs effective.
Another option is to use compact fieldpoint pc controlled backplane (so there has to be a PC to control your compact fieldpoint system (not deterministic)). You can do this by using the compact fieldpoint ethernet backplane; <a href="http://sine.ni.com/nips/cds/view/p/lang/en/nid/202527" target="_blank">http://sine.ni.com/nips/cds/view/p/lang/en/nid/202527</a>
Good luck with your project, and please let me know if there are any questions,
...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...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 ...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,
...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.
...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...Syntax of control on tab controls
I have a form "frmturnover" on which there is asubform "subfrmturnover"
which has three tabcontrols say Page1, Page2 and Page3. There is control
"control2" on Page2 that when its is entered I want to check if it is the
same value as a control "control1" on Page1 and then show a pop up box if
they don't match. I can work out the code for the message box but I'm
getting a little lost on the syntax for referring to the controls on the
pages of the tab control.
I also want to check the value of Control2 on page2 with the vale of
control3 on a page1 o...Refs to controls on tab control
I'm really stumped. I have been able to get all of my references to all my controls with property nodes - even controls inside clusters for all of the controls on a vi front panel. However, when I move these very same controls onto a tab control I can't seem to figure out how to get these same references! I can only get the tab control ref. :smileyindifferent:
BenMessage Edited by Ben on 04-20-2007 05:01 PM
Cotrols on pages.JPG:
http://forums.ni.com/attachments/ni/170/243049/1/Cotrols on pages.JPG
...RT Reboot Controller and RT Ping Controllers with PXI-8184 and LabVIEW 7.1
I?m having problems using RT Reboot Controller and RT Ping Controllers from the Real-Time Utilities palette with LabVIEW 7.1, but only with PXI-8184 controllers. This work fine with PXI-8175.
The attached VI will list all the 8175 on the subnet, but none of my 8184. However, I can ping and FTP all my 8184. If Local Subnet? is TRUE, I don?t get any error, but the RT controller doesn?t reboot. If it is FALSE, I get: Error 63 occurred at TCP Open Connection in FPC open connection.vi->RT Ping Controllers.vi->MssUT-RebootController.vi. All 8175 and 8184 are on the same subnet and ahve the same IP settings (mask, gateway, DNS server). None of them is locked with a password.
What?s wrong with this VI and 8184 controllers? Please don't tell me to upgrade to LabVIEW 8.2, I can't, these systems are under production in 3 sites in 2 countries. We already have 16 PXI-8175 deployed that control cars from trains in hump yards.
The issue is that the PXI-8184RT was released after LabVIEW RT 7.1. The RT Ping Controllers uses an internal protocol to find ethernet base devices. It is actually used on more than just RT targets as other products like GPIB and Seria...How to control Arcus Technology's PMX 2 ED motion controller using labVIEW
Please guide me, for controlling the PMX 2 ED using labVIEW. http://www.arcus-technology.com/pmx-2ed-sa.php?osCsid=4cc1dd9c238572468a87a72d16d7fd93 Please let me know if any one has used labVIEW for this before.Thank you.
There seem to be USB drivers for that device. Have you installed them? Was there a DLL provided? If so, you can call the DLL functions using Call Library Function. Do they have a software programming manual?
Thank you for instant reply. I downloaded the driver. Its not helping to run it using labVIEW. They do not provide DLL. They provide some VI. Its not helping much. Thank you.
Well, I don't have the instrument or the drivers so can you provide some details into this VI that they provided? Perhaps if you upload it (assuming the license agreement for the software allows you to do so).
Thank you. just few minutes ago I could make the motor run using the VI they have provided.
...DSC module 7.1 labview 7.1, new controls and functions not showing up in labview
I have installed labview 7.10 (also tried update to 7.11)
and DSC module 7.1
I thought I would get additional functions and controls in labview due
to installation of this module, but I do not see addtional controls or
functions, althought I have searched for them and set the controls to
Anyone any idea what I have to do.
thanks and regards.
...How can I best control a non NI USB device using LabVIEW?
One of our radio products has a USB port for local (test) control. When I connect the radio to a USB port on my computer the NI Measurement and Automation Explorer does not recognize the device. Nor does it recognize the device when I attempt to "add new device".
Within LabVIEW I am unable to assign an appropriate VISA resource name that does not cause an error when attempting to use the "VISA USB Control Out" or "VISA USB Control In" functions. The help page for wiring up these functions is unclear, particularly for the "request" and "request type" variables.
Would it be best to pursue this current method or purchase some type of serial (com port) to USB converter hardware to communicate with my USB radio?
Hi Robert, did you install the driver of this device first?Mike
Yes I did install the driver first and I am able to communicate with it via a custom in-house utility.
By 'our radiot products', I'm assuming that is a product of the company you work for and you should be able to get information on it. If the USB port does not appear as a com port in MAX or windows device manager, then it is not emulating a serial port. Of course, you may have failed to install the windows driver for it.
If there exists a windows driver, then that would be your best option for communicating with it. If this is a produc...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.
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 DIALOG.
...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 ...