From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-26-2006 01:36 AM
01-26-2006 02:08 AM
The quickest way would probably be to recursively go over the FP and get\set all the captions yourself (for example, with something like the attached) to an ini or xml file. This will of course require saving by control label, which means if you change the label, you have to change it in the file as well, but it should allow you to maintain two seperate files.
Another thing you might try to look at is the property saver toolkit. I didn't actually see anything which will help you with this, but you might find something. I think it will probably be faster to do this yourself.
BTW, talking more about the export\import option, you can see it outputs an XML string, so you can try cracking that to get the data. Another option is to use it. The documentation for the Import method suggests that it is available in the RTE and the only limitation is that the VI needs to be idle. In that case, all you need to do is dynamically call the VI, import the strings and then run it.
01-26-2006 02:11 AM
01-26-2006 02:23 AM
The tool I implemented is (up to know and as long as there is no better solution) used in each vi. I call an init-vi, which creates a default file, if the translationfile does not exist yet, or it loads the specified language into the FP.
But thanks anyway.
Thomas
05-17-2010 07:15 AM
Hi,
tst wrote:
The documentation for the Import method suggests that it is available in the RTE and the only limitation is that the VI needs to be idle. In that case, all you need to do is dynamically call the VI, import the strings and then run it.
Does it mean that, we can use import method at runtime? If the answer is yes, how can I use it?
Thanks.
05-17-2010 09:28 AM - last edited on 05-03-2017 12:34 PM by karina.barles
Like I said in an earlier reply, you load the VI dynamically (using Open VI Reference), then call the method and then call the Run VI method. I never did this myself, so this is based on the documentation which says the method requires the VI to be idle. This will also require you to explicitly include the VIs in the build.
If you're looking to translate a front panel dynamically, there are also other ways, such as the ones already mentioned in this thread or things like this. (05/03/2017 - Admin Note - Content has been removed from ni.com - Karina Barles)
05-17-2010 10:40 AM
tst wrote:Like I said in an earlier reply, you load the VI dynamically (using Open VI Reference), then call the method and then call the Run VI method. I never did this myself, so this is based on the documentation which says the method requires the VI to be idle. This will also require you to explicitly include the VIs in the build.
Where can I find the documentation?
05-17-2010 11:36 AM
In the Help menu.
Or by right clicking the method and selecting Help for...
Or by searching online.
05-18-2010 02:21 AM
tst wrote:In the Help menu.
Or by right clicking the method and selecting Help for...
Or by searching online.
Import String is only a menu item(tools-advanced-Import Strings). I could't find that method on function palette. How can I use this method on my code?
05-18-2010 03:19 AM
Help menu.
Search.
"import strings".
Look through the results.