Discussion:
error 1 using variant
(too old to reply)
LuI
2008-08-15 09:40:19 UTC
Permalink
Hi, seems LV does no longer like me after all that years ;-(( Here's another problem:I need to invoke a VI, set its controls and run it from another VI. I use 'Set control value [variant]. This worked for years.Now in a new project I get error1:Error 1 occurred at Invoke Node in GTM_start VI as process.vi
Possible reason(s):
LabVIEW:  An input parameter is invalid. The value 'offset' I'm trying to set is 0,000 (which is 0.000 in German localization. The variant shows '0.000E+0', which isUS localization. What can I do?Greetings from Germany!
--
Uwe
MikeS81
2008-08-15 09:40:20 UTC
Permalink
Hi Uwe,do you use different number formats in both vi´s? Normally we use 0,00 in germany and 0.00 in america. I think there is the problem.Mike 
LuI
2008-08-15 09:40:21 UTC
Permalink
I thought of this as well.Just tested it and changed my LV option  'Front Panel.Use localized decimal point' Now the number format is aequivalent, but error1 is still there...Greetings from Germany!
--
Uwe
MikeS81
2008-08-15 10:10:10 UTC
Permalink
Hi Uwe,the attached example works for me. Hope it helps.Mike 


Sub_NumControl.vi:
http://forums.ni.com/ni/attachments/ni/170/349553/1/Sub_NumControl.vi


Main_NumControl.vi:
http://forums.ni.com/ni/attachments/ni/170/349553/2/Main_NumControl.vi
LuI
2008-08-15 10:40:18 UTC
Permalink
Mike,thx, your code worked here as well.I found the problem and now I'm ashamed: I got the controls names from the FP of the callee. But the controls had been configured to show caption, not names. Basically those have been identic, but I had removed the default values from the captions and meant I had removed those from the names.Now it seems to run. Hope this makes it through to the exe I have to built.God sake I'll go for holidays this afternoon. Seems like I need it ;-)  Thanck you VERY MUCH for your apreciated help!Greetings from Germany!
--
Uwe 
Continue reading on narkive:
Loading...