02-19-2013 12:26 PM
I am trying to pass array of integer from one main vi to sub vi. The array i convert into variant data type. I want to reconstruct the data using variant to data function. I am not able to retrive the array irrespective to data type i set( int or array of int to variant to data ). Wondering what is going on.
02-19-2013 12:36 PM
Can you give an exaple of your code that doesn't work?
You need to supply the data type to convert to on the Variant to Data node (input on the top will accept anything).
02-19-2013 12:59 PM
Is there a particular reason you are using a variant? Also, as suggested post your code so we can see what you are doing.
02-19-2013 02:16 PM - edited 02-19-2013 02:31 PM
@Mark_Yedinak wrote:
Is there a particular reason you are using a variant? Also, as suggested post your code so we can see what you are doing.
my bet is he's passing different types of data....![]()
02-19-2013 02:20 PM
@apok wrote:
@Mark_Yedinak wrote:
Is there a particular reason you are using a variant? Also, as suggested post your code so we can see what you are doing.
my bet is he's passing different types of data....
That's a good point.
Are you getting an error when you try to convert from a variant?
02-19-2013 02:33 PM
probe shows input is array inside the variant but out put is null
02-19-2013 02:37 PM
@apok wrote:
@Mark_Yedinak wrote:
Is there a particular reason you are using a variant? Also, as suggested post your code so we can see what you are doing.
my bet is he's passing different types of data....
Then he will need some key to indicate how the data should be decoded. I was asking because if he is simply passing the array as a variant because it sounds useful is not a very good reason. Polymorphic VIs are more appropriate. Variants are good for generic messaging schemes.
02-19-2013 02:37 PM
@ssnp wrote:
probe shows input is array inside the variant but out put is null
Post your code. It is near impossible to give you good advice without seeing what you are actually doing.
02-19-2013 02:38 PM - edited 02-19-2013 02:43 PM
show the code......................................
02-19-2013 02:47 PM - edited 02-19-2013 02:50 PM
@Mark_Yedinak wrote:
Post your code. It is near impossible to give you good advice without seeing what you are actually doing.
time to pull out the crystal ball again.....I think I have a few more dollars left in my account for the psychic network