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
> Data Log File Refnum Type Def Bug
Michael_Aivaliot...
post Sep 14 2006, 02:42 AM
Post #1


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

Admin
Posts: 2302
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


Original Post:

http://forums.ni.com/ni/board/message?boar...ssage.id=204543
QUOTE
Hello, I just found some quirky behaviour (LV 7.1.1): 1. In the attached LLB, open "RefnumVI.vi" 2. Select the Data Log File Refnum control and open it for editing (Edit - Customize Control ... from the menu) 3. Close "RefnumVI.vi" but leave "Refnum.ctl" open 4. Select the enum inside the refnum container, and open it 5. Select File - Save As ... and save the enum as "RefnumEnum2.ctl" 6. Close the enum 7. Save "Refnum.ctl", and close it 8. Reopen "RefnumVI.vi" and display its hierarchy (Browse - Show VI Hierarchy from the menu) Notice that "RefnumVI.vi" still has a link to "RefnumEnum.ctl", even though we saved this as "RefnumEnum2.ctl" earlier. If you go back to the VI, right click on the refnum, and replace it with itself (i.e. select "Refnum.ctl"), the link disappears. This behaviour does not happen if I use a Cluster instead of a Data Log File Refnum. I imagine the difference is that the calling VI needs to know about the structure of the data log file in ways it doesn't need to know about the structure of a cluster, but this still is very counter-intuitive behaviour. Is this really expected? Or is it a bug? Is there any other way to remove the link? Cheers, Jaegen


Confirmed Response:

QUOTE
Jaegen,
I replicated the issue that you found in LabVIEW 7.1 and when I tried the same thing in LabVIEW 8.2, the behavior was not there, so it must have been fixed.

The way that I found that you can avoid the link in LabVIEW 7.1 is to select the enum directly from the VI Hierarchy, instead of from the Refnum.ctl and rename it there. It will update the name on the VI Hierarchy and not have links to both copies of the Refnumenum. Feel free to download an evaluation copy of LabVIEW 8.2 and try it out for yourself.

Thanks,

Nathan

Attached File(s)
Attached File  RefnumEnumBug.llb ( 21.16K ) Number of downloads: 146
 

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


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Ad
post Sep 14 2006, 02:42 AM
Post #















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

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   5 todd 2685 10th February 2004 - 06:59 PM
Last post by: TomWP
No New Posts   0 sam 2101 20th June 2003 - 01:38 PM
Last post by: sam
No New Posts   3 DMiller 2369 9th July 2004 - 04:48 AM
Last post by: Jim Kring
No New Posts   2 donroth 2444 5th September 2003 - 02:01 PM
Last post by: donroth


Reply to this topicStart new topic

 




Time is now: 29th August 2008 - 06:54 PM