LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

User defined types,refnums,and program autoupdating

Hello all the Masters,
 
   I am working now on a large program.And tried to do the next thing: to put  controls and indicators at the cluster,
make it "strict type definition",and pass a reference to this cluster to the sub vi's.The main point is,that the sub vi's update
the values of this cluster too.Here I come to the point : I wanted that if would be easy to add/remove controls to/from the cluster.
   The solution that I "wired" is attached.It uses  .xml file for indication,if the datatype was updated,and if yes,promts user to choose
which variable he wants to update.
  I would like to know your opinion about this "trick".
 
 Thanks,
Michael .
_________________________________________________________________________________________________
LV 8.2 at Windows & Linux


0 Kudos
Message 1 of 3
(2,493 Views)
I read your post and looked at your VIs, but I can't quite figure out what you're trying to do. Are you trying to add/remove items to a cluster at run-time? Why? You also said "to put  controls and indicators at the cluster," - you can't mix controls and indicators in the same cluster. Please provide a better explanation of what you're trying to accomplish.
0 Kudos
Message 2 of 3
(2,479 Views)
Sorry about been not clear: no indicators,just controls at cluster.
 
The main goal was to do the whole program easy to make changes,such as changing datatypes.Now,the vi's that posted performs a check,
if there were a change at the datatype,if yes,the vi promts the programmer what variables he wants to pass now to be updated and saves the selection.
      I am shure that I am not the first one who thinked about it,just wanted to hear opnion of people who more experienced than me.
  
  Thanks for reply.
   


Message Edited by mishklyar on 01-14-2008 03:10 PM
_________________________________________________________________________________________________
LV 8.2 at Windows & Linux


0 Kudos
Message 3 of 3
(2,470 Views)