02-17-2010 09:37 AM
Hi,
I am trying to change the lables on the Front Panel of my vi, dependant on what Language version of the LabVIEW Runtime enviroment has been installed.
In order to check what language I am currently using, I tryed the Property Node class "VI" type "Languages:Current Language". At runtime I was told that LabVIEW does not support this...
Is this because I am using LabVIEW Base, or am I missing somthing?
Cheers, Alec
Solved! Go to Solution.
02-17-2010 09:48 AM
I guess you should use Application.Language instead of VI.Languages. Then you will receive the appropriate string.
Values include en, de, fr, ja, ko, and zh-cn.
Andrey.
02-18-2010 08:58 AM
02-18-2010 09:12 AM
Unfortunately you will be not able to get Dutch from RunTime, because no Run-Time for this language present (as far as I know)
You can get language ID from OS:
GetSystemDefaultLangID Function
Language Identifier Constants and Strings
Andrey.
02-18-2010 09:21 AM
Yes, that would do the trick. How would I integrate that command with labview?
Cheers, Alec
02-18-2010 09:56 AM
alecjcook wrote:Yes, that would do the trick. How would I integrate that command with labview?
Cheers, Alec
Call function from Kernel32.dll:
Take a note, that LabVIEW is non-Unicode, therefore you may get langugae ID, which was set for non-Unicode applications (check advanced settings in control panel)
Andrey.