NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Knight of NI
Ray.R
Posts: 10,165
0 Kudos

Re: Community Nugget 5-Mar-2007

I saw that... :smileyhappy:  LOL!! 

We'll converse off-line :smileywink:

.
(starting to) See Life in a brand new way...

b* ^ )
Member
mishklyar
Posts: 123
0 Kudos

Re: Community Nugget 5-Mar-2007

my 50-cent :-)
 
  Sometimes one have a loop inside a Sub VI,and need to control things inside this loop from main VI.
 
For example, I have a cluster of controls at the main vi.
So some ways to solve the issue:
  1) Pass a reference to the cluster to the sub vi.
          Consequence: every time one change the cluster,one should change an input of the Sub VI.
   2)Use VI server - I did't try this way,because somehow searched for simpler solution.
   3)Create a reference to the cluster, make IT type definition,save as control,and use this control as
       input of Sub VI
          Consequence: Now, every time one changes the cluster,he only need to update the type definition
        of the reference.
 
Any suggestions about  3-rd way?
 
P.S
Probably cluster may be defined with type definition too.
_________________________________________________________________________________________________
LV 8.2 at Windows & Linux


Active Participant
mitulatbati
Posts: 201
0 Kudos

Re: Community Nugget 5-Mar-2007

Hi,

I have made a strict type def, which is a text ring. I open the VI reference -> get Panel property node -> Controls[] -> Index first element (there is only one, the ring) -> change Strings and values, and then close reference.

If I call this subvi from a VI, which includes this strict type ring, it will be only updated, when I restart the VI. And not in runtime. I don´t get any error, everything looks fine, but the strings and values are not updated :-(

Is there a way not to restart the VI, but to modify the ring programatically?

regards

MB

Active Participant shb
Active Participant
shb
Posts: 259
0 Kudos

Re: Community Nugget 5-Mar-2007

[ Edited ]
I opened a new thread for the question of mitulatbati:
 
Please do not hijack a thread.


Message Edited by shb on 07-29-2008 12:00 PM
Knight of NI
Knight of NI
Ben
Posts: 16,091

Re: Community Nugget 5-Mar-2007 Update for LV 2009

[ Edited ]

This posting is intended to update this Nugget to highlight the new functionality available in LV 2009 that lets us group libraries in the VI Hierarchy screen.

 

The following tow images show...

 

The Hierarchy of a small app without grouping of libraries. AS you can see the DAQ functions (DAQ in header) are scattered on the screen.

 

Default.PNG 

 

By grouping the VIs by library and colapsing the other libraries,

 

Grouped.PNG

 

we can see how the DAQ functions are structured to the point where we can almost make an educated guess that maybe "AI Control" is an Action Engine used by "AI Stop", "AI Read" and "AI init" .... maybe :smileywink:

 

Have fun,

 

Ben

Message Edited by Ben on 11-24-2009 08:06 AM
Ben Rayner
Who is NOT John Galt... yet... just building Rayner's Ridge

Knight of NI
Knight of NI
Ben
Posts: 16,091

Re: Community Nugget 5-Mar-2007 Update for LV 2009

For those of you that have read through this entire thread Kudos to you!

 

If you are using LV 2010 or better then you will find your reward for your reading in this thread where Darren tells us how we can use the new option that lets us view clustrers as an icon to avoid teh "Diagram Explosion" issue when editing a type definition.

 

Enjoy!

 

Ben

Ben Rayner
Who is NOT John Galt... yet... just building Rayner's Ridge

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page