02-22-2013 10:57 AM
Hi, in a .vi , when I try to add a new costant, it's placed on DB but it's impossible to edit it to change default value (??!!)
to do this I have to raplace this costant with a control, open FP, modify the value of control, then fom DB replace-back the control in
a costant that, at this time has the value I need.
LV version: 7.1.
Many thanks for reply.
Valerio
02-22-2013 10:59 AM
That does not sound right. Have you tried repairing the LabVIEW installation?
02-22-2013 11:39 AM
At this time I do not have repair installation, but pls. consider that in all others .vi I have no problems.
02-22-2013 11:46 AM
Maybe you have the cursor set to "Operate Value" in the tools palette?
02-22-2013 11:50 AM
@billko wrote:
Maybe you have the cursor set to "Operate Value" in the tools palette?
and not have auto tool on?
02-22-2013 11:57 AM
@crossrulz wrote:
@billko wrote:
Maybe you have the cursor set to "Operate Value" in the tools palette?
and not have auto tool on?
Thanks for completing the thought. 😉
02-22-2013 11:57 AM
@effevalerio wrote:
At this time I do not have repair installation, but pls. consider that in all others .vi I have no problems.
OK, that seems like important information!
If is not a tool problem, maybe the via is corrupt. Try to copy the code to a new vi to see if things improve.
02-22-2013 12:35 PM
I am going to set aside pilot error for the moment since I do not believe there is any tool you could select with autotool off that would not drop the constant with the value selected and ready for editing. Well, maybe the paintbrush, but I do not think that is the problem.
I suspect corruption of this VI as well. LV has an interesting way of "sharing" memory for constants on the BD. Multiple constants with the same value are often linked under the hood. If there is a corrupt constant somewhere on the BD, perhaps all new ones are being corrupted as a result. Copying the code would likely copy the corruption as well so I would avoid copying any constants.
I used to be curious about these little oddities in LV VIs. I used to play with them to try to isolate the corruption. Then I found that they are a bit infectious and it is best to get rid of them before their effects spread. It sounds like it is isolated to this one VI.
02-25-2013 08:01 AM
Hi Valerio,
What is the default value of the constants?
Thank you so much
02-25-2013 10:36 AM
Hi, default value of constant is 0 with numeric constant and is blank string with string constant, when I put it on DB,
but when I try to modify double click inside the box
(in tools palette I have Automatic Tools selection ON of course) nothing happen and
after few seconds of idle with the constsnt box selected LV deselect the constnat box whitoput give me the cursor inside the box to modify
the default value, pls. consider that boolean constants work fine , I can put them on DB and modify defalut value with a simple click
as usual.