LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the invoke node VI Strings.Import

I'm achieving a program to translate the captions which are on the front panels of existing programs.
 I use the invoke node VI String.Export to create a file containing the differents properties of the front panel objects of the target VI.
 I modify the fields <CONTROL ID .... name="xxxxx"> to change the captions and then i use the invoke node VI Strings.import to uptade the target VI.
Then i use the invoke node VI Save.Instrument to save the modifications.
 
The problem is that the Log File created by the invoke node VI Strings.import indicates me :
 
############################################
Parsing error while importing strings
 to traduction_1.0.vi
 from C:\Documents and Settings\Administrator\Desktop\work\Labview\Exos\traduction\Vi_import.victl
Tue, May 16, 2006 9:43:20 AM
############################################
Error occurred while parsing for String object. Control name does not match.
 
Which means that it can't change the captions name.
Do i badly use the invoke nodes ? Do i have to use an other function?
CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 1 of 3
(2,992 Views)
Apparently you are changing the control label, not the caption. If you created a caption for the control, the caption value should appear in the <PARTS> body, nested into the <CONTROL ...> tag.
You can't change control labels this way. Labels are used to identify the control to which you are applying changes. Changing the label would cause the control not being found.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 3
(2,989 Views)
It seems that you are right.
Thank you for your help !
CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 3 of 3
(2,983 Views)