LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 1 using variant

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

0 Kudos
Message 1 of 5
(3,028 Views)

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 

0 Kudos
Message 2 of 5
(3,027 Views)

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

0 Kudos
Message 3 of 5
(3,025 Views)

Hi Uwe,

the attached example works for me.

 

Hope it helps.

Mike 

Download All
0 Kudos
Message 4 of 5
(3,020 Views)

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 

0 Kudos
Message 5 of 5
(3,016 Views)