f



FP default-values and diagram "constants" can change in LabVIEW 6.1 and 7.1

Hi Folks,
      I'm posting here [instead of bug report] first, in case this isn't really a bug.
I created a bunch of similier VIs with type-def cluster inputs, and, on each VI, gave the clusters a default-value.  I'm finding that when these typedefs are changed by removing an element, the default FP values are corrupted.  In my case it gets worse.  When I used these VIs on diagrams, I frequently created a cluster-constant - derived from the VI's cluster-control (described above.)  The remaining elements in the diagram-"constants" are also changing.
 
Regards  


Untitled12.vi:
http://forums.ni.com/attachments/ni/170/149364/1/Untitled12.vi


Untitled.ctl:
http://forums.ni.com/attachments/ni/170/149364/2/Untitled.ctl
0
x9561 (148441)
10/29/2005 3:40:46 AM
comp.lang.labview 35213 articles. 1 followers. vasusachin24 (1) is leader. Post Follow

2 Replies
668 Views

Similar Articles

[PageSpeed] 19

This sounds like it could be a bug AND normal operation.
There are bugs in LV 7.1, 7.0 and possibly earlier that cuases LV to choose the wrong value when bundling and un-bundling by name.
I have been told these are fixed in LV 8.0
See this thread for more details on the bug.
<a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=105455&amp;jump=true" target="_blank">http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=105455&amp;jump=true</a> 
&nbsp;
Now as far as the constants that are based on the typedef changing, tht is normal behaviour. As Odd_Modem mentioned, doing an explicit bundle by name is the way to handle this. If you use the same "constant" repeatedly in your code, a sub-VI that does the bundling makes your code a lot easier to read.
Here is a code snippet
<img src="http://forums.ni.com/attachments/ni/130/1982/1/Constant_Icons.JPG"> 
and the source for that example can be ound in this thread.
<a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=148471#M148471" target="_blank">http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=148471#M148471</a> 
Ben
&nbsp;
&nbsp;
Message Edited by Ben on 10-29-2005  10:42 AM
0
x9561 (148441)
10/29/2005 4:10:48 PM
Thanks for the link, Ben,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Phillip C.'s&nbsp;post&nbsp;seems most helpful.&nbsp; He makes the distinction between object-references and control-references.&nbsp; Looks (to me) like "Make current value default"&nbsp;updates a table of default-values - which are applied sequentially to objects in the cluster (when the user selects "Reinitialize to default value" OR&nbsp;whan a type-def change is&nbsp;detected.)&nbsp; But the defaults-list isn't being updated&nbsp;[correctly]&nbsp;when a cluster-object is removed - so obsolete default-values start getting forced onto&nbsp;a new&nbsp;list of objects. &nbsp;I'd have thought that a "default value" would become a property of (stored "inside")&nbsp;the cluster-object,&nbsp;and, so,&nbsp;follow the object.
Thanks for the work-around!&nbsp; Of course if someone needs&nbsp;the constant/defaults in many places, they would&nbsp;want to&nbsp;use a sub-vi, refer to a global value, or employ some solution to&nbsp;constrain the damage caused by typedef changes.
Regards
0
x9561 (148441)
10/29/2005 9:10:46 PM
Reply:

Similar Artilces:

Can I run a LabVIEW 7.1 Application on a system with LabVIEW 6.1?
The VI App did not run properly, even after I installed the LabVIEW 7.1 Run time engine. Perhpas I need to uninstall the LV 6.1 run time engine? Thank you for any suggestions; perhaps it's something minor that I'm overlooking! Are you talking about a 7.1 exe or VI? An executable will run with 6.1 installed and the 7.1 run-time. A 7.1 VI will only run with 7.1 development system. When you say it did not run properly, what exactly do you mean? I am referring to trying to run a 7.1 EXE application on a system with a resident 6.1 development environment, and the 7.1 run-time engine ins...

Replacing "RADIO" with "RADIO" NAME="1" VALUE="1", etc..
I am running code below so that "RADIO" gets replaced by "RADIO" NAME="1" VALUE="1" etc. Actually there are 5 RADIO buttons for each question, and the initial web page I generate somehow dord not have NAME="1" VALUE="1", etc. after "RADIO". So I am using Perl to replace simple "RADIO" with "RADIO" NAME="1" VALUE="1", "2", "3", "4", and "5" and for the choices for the problem number 2, "RADIO" NAME="2" VALUE="1", &q...

Update problems with "mean.vi" from LabVIEW 5.1 to 6.1
Hallo, I've just recompiled an existing LabVIEW-program which was until now running and programmed under LabVIEW 5.1. Now the programme has to be edited under LabVIEW 6.1. When compiling the not edited programme under LabVIEW 6.1 error messages were shown, which says that a file was not found. After some research I found out that "mean.vi", which seemed to be available under 5.1 was not running under 6.1. As I'm writing my thesis at the moment I'm looking for an explanation. I think that perhaps that mean.vi was changed during updating from 5.1 and 6.1 and thus the old v...

NI Installer Update message "Update Failed" for Labview 7.1.1
Hi, We finally decided to open our LV 7 box, yes I know that version 8 is already out.&nbsp; After I download the version 7.1.1 upgrade and try to install I get the following message&nbsp; Update failed There was an error while attempting to verify the product(s) for the :abVIEW 7.1.1 update.&nbsp; Please repair or reinstall the product(s) before running this application.&nbsp; Before I reinstall I wanted to post this message so I don't waste my time with the reinstall.&nbsp; Labview 7.0 works on my computer and I am not sure where to go from here. Other than trying t...

Changing "Figure 1" to "Scheme 1"
Hi I'm trying to complete a 1-page abstract and am using floatflt to wrap the figures. I have tried to find the answers to the following, but time is of the essence at the moment. My question is regarding one of the captions: I want "Scheme 1" to replace "Figure 2" in the 2nd image I have included. Advice on this is much appreciated and also how to remove the colon after "Figure X:"/"Scheme X:". This is what is written: \usepackage[rflt]{floatflt} \setlength\figgutter{25pt} \newcommand{\incffig}[1]{\includegraphics[width=\floatfltwidth]{#1}} \be...

Is it possible to upgrade "Full" 6.0.1 to "Full" 6.1 and...
Is it possible to upgrade "Full" 6.0.1 to "Full" 6.1 and have the app-builder (purchased separately) for 6.0 still work, or do I need a new app-builder? A neighboring lab stopped using LabView and gave us the 6.1 disk. Unfortunately, it's a "Full" disk (no app-builder) and we purchased a separate 6.0 app-builder for our 6i system. I have a feeling this is a futile endeavor, but want to be sure before I toss the disk, or attempt an installation and mangle the system. I don't know if the 6.0.1 app builder will work with 6.1, but I'm guessing it won...

When loading Labview 6.1 program I get "OS cannot run %1" message on Windows XP
When loading a Labview 6.1 vi using Windows XP OS machine, I get "The operating system cannot run %1" message . This appears several times and if I click OK each time, eventually the vi is loaded. How can this be fixed? ...

"use constant X=>(1,2);" or "use constant X=>[1,2];"?
What's better? use constant X=>(1,2); or use constant X=>[1,2]; On Sat, 8 Dec 2007 09:44:59 -0800 (PST), Victor Porton <porton@narod.ru> wrote: >What's better? > > use constant X=>(1,2); > >or > > use constant X=>[1,2]; What's better? my @x = (1,2); or my $x = [1,2]; Michele -- {$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr (($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB=' ..'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x...

How can I modify the &quot;Type definitions&quot; of &quot;Function Prototype&quot; if I want build a DLL in Labview 8.5.1.?
Hello,We have a library with several VIs (API - Interfaces to our Real Time Target). This VIs we provide to our customer to generate own VIs to control the Real Time Target.Now we want to provide the functionality of this VI-library as DLL to our customer. The problem is, that labview use self definite name of type definitions. Also if I use "strict Type definition".Example:void GetOutputValues(VARIANT *Scale_In, int32_t ModelNr, uint16_t SignalID[], TD1:smileymad: *errorIn, VARIANT *Scale_Out, TD2 *Data, TD1 *errorOut, int32_t len)It is possible to modify "TD1" and "T...

How can I call a canned visual basic program from LabVIEW 6.1 and 7.1
I have a Visual Basic program written by the temperature controller vendor. I wish to use it to control the enviornmental chambers. The plan is to to call this program from LabVIEW utalize it to control the enviornmental chambers and collect the data. When the program is complete return to LabVIEW and use it to utalize the data it gathers. The problem I have is calling the program, can anyone help. If the program is compiled into an exe, you can use the SystemExec function to call it. Another method is to compile the VB code into a DLL, and use the Call Library Node function to call the VB ...

Changing ". . . # . # ." into " 0 0 0 1 0 1 0"
Is there an easy way to change ". . . # . # ." into " 0 0 0 1 0 1 0"? i.e. changing an array of dots and hashes that another programme I'm using outputs, into 0s and 1s that I can then use in Matlab? Many thanks, Tom In article <ef19cb8.-1@webx.raydaftYaTP>, Tom <thomas.cole@lincoln.ox.ac.uk> wrote: > Is there an easy way to change ". . . # . # ." into " 0 0 0 1 0 1 0"? > i.e. changing an array of dots and hashes that another programme I'm > using outputs, into 0s and 1s that I can then use in Matlab? > > Many tha...

ActiveX error -2147023149 in LabVIEW 7.1 but not LabVIEW 6.1
This is an interesting problem. There is a Tektronics ActiveX control for a TLA700 that works flawlessly in LabVIEW 6.1. An upgrade was made to LabVIEW 7.1 and when simple calls are made to this ActiveX component it throws the error "-2147023149". On google I found: -2147023149 == "The authentication service is unknown." A final note is VB and VC++ have no trouble using this control on the same machine. I have searched every possible resource availible and am getting no where on pin pointing where this error could be coming from. Anyone have any ideas or even seen th...

Can I install LabView 6.1 and LabView 7 on the same PC?
Can labView 6.1 and labView 7 reside on the same PC without conflicting each other? Yes: see <a href="http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=313&HOID=5065000000080000002C900000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0">this discussion</a> Yes, you can. They are located in difference folders. However, once you save you vi with labview 7, labview 6.1 will no longer be able to read those vi unless you use Labview 7 save option to convert them back. HMPang nate <x@no.email> wrote in message news:<50650000000800000081970000-...

How to change "X" to "0" or "1" (VHDL) ?
Hello, I wroted a simple process to synchronyze Dat signal with a clock, and when a "Dat" pulse edge is very close to "Clock", timing simulation shows "X". And a simulation of the rest signals fails. How to solve it? My text is: A0: process(Clock) begin if Clock'event and Clock='0' then Dat2 <= Dat; end if; end process A0; Result of timing diagram (Aldec 5.2) I put at: http://www.electronicsdesigns.net/img/timings.gif Thank you in advance for any suggestion. Your problem could be the fact that your sensitivity list is incompl...

Web resources about - FP default-values and diagram "constants" can change in LabVIEW 6.1 and 7.1 - comp.lang.labview

Resources last updated: 2/4/2016 8:50:19 AM