04-17-2008 12:00 AM
Ravens Fan wrote:
I'm glad you got it figured out.With your later descriptions, what you are doing makes more sense than the way I was interpreting the original post.
Out of curiosity, which LV version are you using? What is the function in your picture that looks like a piece of paper and has the file path going into it? I hadn't seen that one before. Is it a LV subVI or a subVI you made? I'm wondering if it is an older version of a config file VI.
04-17-2008 12:04 AM
smercurio_fc wrote:
You might be able to glean the datatype information using the Variant to Flattened String function and looking at the type string output. The information is based on LabVIEW 7, but it might work.
Hi Smercurio,
I did try that one too. It didn't work. The result was that string coming out was empty.
Mika
04-17-2008 12:21 AM
Wiebe@CARYA wrote:
Mika,
You need to convert it to the correct data type. This is a bit problematic,
since you might not now the type. You need to convert the variant to string,
if that results in an error, convert it to int, if error, try boolean, etc
(order is arbitrary, put the most used first for speed).
Unfortunatelly, there is still no way to get the string displayed in the
variant control in LabVIEW... Perhaps there are some OpenG tools, or perhaps
something on LAVA... I'd give it a shot before trying it myself. If you're
lucky, you might even find some "variant to ini file" functions.
Regards,
Wiebe.
04-17-2008 09:06 AM - edited 04-17-2008 09:07 AM
Hi Smercurio,The type string output is the array of integers, not the string output, which is data string.I did try that one too. It didn't work. The result was that string coming out was empty.
![]()
04-18-2008 01:30 AM
smercurio_fc wrote:
Hi Smercurio,The type string output is the array of integers, not the string output, which is data string.I did try that one too. It didn't work. The result was that string coming out was empty.
![]()
Message Edited by smercurio_fc on 04-17-2008 09:07 AM
Hi again,
I connected my variant that way. Type string has values 4 and 3, no matter what data type the variable is. I tried that with boolean,double and string variables.
Mika
04-18-2008 03:40 AM
04-18-2008 05:14 AM
Would the "Get Variant Attribute" Function return what you need? I think one of the attributes encoded is the original data type? I have never used it, so I may be way off base.....
I see it in 8.5, don't know if it is in earlier versions.....
04-18-2008 07:25 AM - edited 04-18-2008 07:25 AM
04-18-2008 09:02 AM - edited 04-18-2008 09:02 AM
04-18-2008 11:03 AM
@KevMi wrote:I tried to find that toolkit that could be useful in OpenG pages. I couldn't manage. Somehow I feel search-function is a bit clumsy at OpenG pages.Mika