LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

Tags
This content has not been tagged yet
 
Reply to this topic Start new topic
> Using unnamed strict-typedef clusters.
Michael_Aivaliot...
post Jul 8 2003, 11:42 PM
Post #1


Confucius say, Man with tight trousers is pressing his luck.
Group Icon
*****

Admin
Posts: 2320
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


There is a new feature in lv7 that auto-relinks the item names in the bundle by name node if you rename the objects in the cluster. I wonder if this is the culprit. In any case this is what happens. You can create a strict-typedef cluster and leave it unnamed. This is fine because you can assign a name to it when you actually use it. In my case, I use typedef clusters inside other typedef clusters. When I place it, I label it.

The fun starts when you decide to disconnect the typedef cluster. When this happens, LabVIEW tries to use the original name given in the typedef. Of course since this does not exist, it shows up as a blank entry in the bundle by name. If you try to relink it, you can't, because empty names simply don't exist in the pull-down list.

Now why would you want to disconnect the typdef, you ask? Well, you may not want to but the application builder shure as hell wants to! it breaks all the links to the typdefs and uses plain controls. Once it tries to do this it finds a whole bunch of bundle (and unbundle) by name nodes that it can't resolve.

I've attached an image of the solution that uses a plain bundle. Also and image of what happens when you disconnect a typedefed object. I've also attached a toplevel.vi that you can try to build into an application. If you open the built app, you will se that the vi is broken.


Attached File(s)
Attached File  buildexample.zip ( 14.58K ) Number of downloads: 208
 

--------------------


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Ad
post Jul 8 2003, 11:42 PM
Post #















Tags
This content has not been tagged yet
Go to the top of the page
Quote Post
Jim Kring
post Jul 9 2003, 12:19 AM
Post #2


Changing the world, one VI at a time.
*****

Premium Member
Posts: 1665
Joined: 22-October 02
From: San Francisco, CA
Member No.: 17
Using LabVIEW Since:1995
LV:8.2.1 ,8.5 ,7.1.1
United States us_california Nothing Selected My Blog My Gallery


Michael,

This problem only occurs with cluster constants on the block diagram. It doesn't effect Bundle by Name and Unbundle by Name nodes connected to FP controls.

-Jim

--------------------
-----------------------------------------------------------------------------------------------------
| Book | OpenG | LAVA | Champion | VIPM | Builder | Blog | JKI |
-----------------------------------------------------------------------------------------------------


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Michael_Aivaliot...
post Jul 17 2003, 02:31 PM
Post #3


Confucius say, Man with tight trousers is pressing his luck.
Group Icon
*****

Admin
Posts: 2320
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


This issue has been confirmed by NI. So I guess the solution is to always name your clusters in your strict-type defs.

--------------------


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Michael_Aivaliot...
post Jun 6 2004, 06:57 AM
Post #4


Confucius say, Man with tight trousers is pressing his luck.
Group Icon
*****

Admin
Posts: 2320
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


With the release of LV7.1 we see something added to the Application builder that was previously only settable via an ini setting. Previously (LV7.0), the workaround to the bug listed in this posting was to add the following to your LabVIEW.ini file:

BldApp.RemovePolyVIsandTypedefs=False

QUOTE
Disconnect type definitions and remove unused polymorphic VI instances—Disconnects type definitions and removes unused polymorphic VI instances and their subVIs from a built application or shared library to reduce the size of the application or shared library. If you remove the checkmark from this checkbox, type definitions and all instances of the polymorphic VIs (and their subVIs) your application has will be included in the application regardless if they are called by your application.


Now, this has been added as a checkbox in the Application builder.

Normally, disconnecting type definitions from a built application should not be a problem, however it had a nasty side effect in LV7.0 as mentioned in my original post. I will have to see if it has been resolved in 7.1. I hope so because it is nice to be able to reduce the size of your LabVIEW EXE.
Attached thumbnail(s)
Attached Image
 

--------------------


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post


Reply to this topicStart new topic

 




Time is now: 7th October 2008 - 12:43 AM