From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can i let user to add new objects without any programming requirement??

Hi,
I am doing my final year project on wireless data acquisition & building
automation. Simply just a computer which can control building equipments &
receive the status.

I want my program to be flexible so that when there are new equipments
added to the building, the user can add those equipments control in the
computer side software. (I expect the user don't know how to user labview
for programming). For example, if a water pump is added in the building, the
user can just add a new control for that water pump by just click on a few
buttons and set the equipments address.

Any suggestion??

Best regards
Calvin
0 Kudos
Message 1 of 6
(2,754 Views)
Calvin wrote:
>
> Hi,
> I am doing my final year project on wireless data acquisition & building
> automation. Simply just a computer which can control building equipments &
> receive the status.
>
> I want my program to be flexible so that when there are new equipments
> added to the building, the user can add those equipments control in the
> computer side software. (I expect the user don't know how to user labview
> for programming). For example, if a water pump is added in the building, the
> user can just add a new control for that water pump by just click on a few
> buttons and set the equipments address.
>
> Any suggestion??
>
> Best regards
> Calvin

Use dynamic loading technique. Get vi list from the default catalogue
programmatically a
nd when adding the new vi in catalogue, unhide desired
button on the front panel, or call added vi's front panel. There is no
user programming needed. Just your efforts as a developer.
Take a look at LV examples dynload.llb
--
Sergey Krasnishov
____________________________________
Automated Control Systems
National Instruments Alliance Member
Moscow, Russia
sergey_acs@levsha.ru
http://acs.levsha.ru
0 Kudos
Message 2 of 6
(2,754 Views)
Hi Calvin

The only way I know of generating controls/indicators like that is using an
array of controls (or an array of clusters, each clusterr containing a set of
controls), and dynamically changing the number of elements in the array. You
can then set some of the attribute node properties such as the index that is
visible at the top left of the array control, and the number of rows/columns
that are visible. However, it means that each new control set you create has
to be the same as all the others (because it is an array).

Paul

--

Research Assistant
School of Physiotherapy, Curtin University of Technology
Selby Street, Shenton Park, Western Australia, Australia. 6008
email: P.C.Davey@curtin.edu.au
Tel. +61 8 9266 4657 Fax. +61 8 9266 3699

"Everyone who c
alls on the name of the Lord will be saved." Romans 10:12
"For all have sinned and fall short of the glory of God, and are justified
freely by his grace through the redemption that came by Christ Jesus." Romans
3:23-4


Calvin wrote:

> Hi,
> I am doing my final year project on wireless data acquisition & building
> automation. Simply just a computer which can control building equipments &
> receive the status.
>
> I want my program to be flexible so that when there are new equipments
> added to the building, the user can add those equipments control in the
> computer side software. (I expect the user don't know how to user labview
> for programming). For example, if a water pump is added in the building, the
> user can just add a new control for that water pump by just click on a few
> buttons and set the equipments address.
>
> Any suggestion??
>
> Best regards
> Calvin
0 Kudos
Message 3 of 6
(2,754 Views)
I remember reading something in LTR (Labview Techincal Resource) about
attaching code to a control. That way, when you put the control on the
front panel, it would put the code in the block diagram. That shouldn't
require much coding.

Thanks,

Kevin Mescher


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 4 of 6
(2,754 Views)
Hi,

You can call (open, run, close, save, etc.) VI's dynamicly using a VI
reference. Use property nodes and invoke nodes to perform opperations.

It can be done using different methodes. One is to use a "Call By Reference
Node", the other to use the "Open VI Reference". The first is a little
tricky, but the possibilities are enormous.

I usually make an ini file to load a driver, but you can also enummerate all
libraries, or VI's, and make the user choose. Then I load them dynamicly.

Regards,

Wiebe Walstra.

--
AIR technical Automation
www.air.nl


"Calvin" wrote in message
news:8s793k$oge5@imsp212.netvigator.com...
> Hi,
> I am doing my final year project on wireless data acquisition &
building
> automation. Simply just a comput
er which can control building equipments &
> receive the status.
>
> I want my program to be flexible so that when there are new equipments
> added to the building, the user can add those equipments control in the
> computer side software. (I expect the user don't know how to user labview
> for programming). For example, if a water pump is added in the building,
the
> user can just add a new control for that water pump by just click on a few
> buttons and set the equipments address.
>
> Any suggestion??
>
> Best regards
> Calvin
>
>
0 Kudos
Message 5 of 6
(2,754 Views)
Look at plug in examples in either LV examples or at NI website. As long as
you define consistent plugin VI interface, you can later on give user new
plugins or even generate them on fly using some template, then they can be
loaded using VI reference.

Reinis Kanders

"Calvin" wrote in message
news:8s793k$oge5@imsp212.netvigator.com...
> Hi,
> I am doing my final year project on wireless data acquisition &
building
> automation. Simply just a computer which can control building equipments &
> receive the status.
>
> I want my program to be flexible so that when there are new equipments
> added to the building, the user can add those equipments control in the
> computer side software. (I expect the user don't know how to user labv
iew
> for programming). For example, if a water pump is added in the building,
the
> user can just add a new control for that water pump by just click on a few
> buttons and set the equipments address.
>
> Any suggestion??
>
> Best regards
> Calvin
>
>




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
0 Kudos
Message 6 of 6
(2,754 Views)