06-18-2009 11:40 AM
Iam trying to connect a array to a invoke node Bit i couldnt succed..Iam getting an error saying
""You have connected an array datatype to its element data type.This type of conflict may be resolved by indexing the array access individual elements of the array.Check for a tunnel on a loop that has indexing incorrectly enabled"".
Can anyone pls help me out how to reslove this kind of error.
Thank You,
Shanth.
06-18-2009 11:55 AM
06-18-2009 12:28 PM
Hello Cory,
Thanxs for your reply, Iam attaching the VI and a Image where Iam getting an error. In the VI I have to connect the "Data to write " which is an array to the "Value" in the invoke node which is not an array.. Can u pls help me out how to do this.
Thank you,
Shanth.
06-18-2009 04:40 PM - edited 06-18-2009 04:41 PM
It looks to me like you're trying to pass your CAN data to ncWriteNet as an array of eight bytes, but your DataChannels ActiveX object expects a double-precision floating point number. Since both of those are the same length (8 bytes or 64 bits) you can typecast your array to a double to pass to the SetValue method. See image below. The typecast function is found in the numeric palette under data manipulation.
06-19-2009 11:51 AM
Hell Nathand,
It didnt work out for me is there any ohter way todo this.
Thanks
06-19-2009 01:28 PM
06-19-2009 01:29 PM
06-19-2009 01:34 PM
Nathand,
Its not giving any broken line I was able to run the VI but couldnt find out the expected solution.
Thanxs
Shanth.
06-19-2009 01:38 PM
06-30-2009 02:46 PM
Instead of using typecast, maybe you can try using Join Numbers as in the following illustration:
Wire the hi.lo U64 into your property node.