03-14-2014 03:56 AM
Hello,
I'm currently working on a Labview / .net program which involves copying c# code and making it usable in Labview.
I'm stuck trying to convert three numbers (A,B,C) into a 1D array, and keep coming up with an error. I'm using build array for each of the elements to get the 1D array, but I'm sure I must be doing something wrong. The code looks like:
new
byte
[A * B * C]
The three numbers are in the format of long 32-bite intergers, but the input for the reference is unsigned 8-bit integer.
If anyone could help me figure out what I'm doing wrong it would be greatly appreciated.
Thanks
Ross
03-14-2014 04:33 AM
Actually, if I'm not mistaken, this simply allocates a byte array of A * B * C elements. So the LabVIEW equivalent would be to create the product of A * B * C and simply wire this number to the Initialize Array node.
03-16-2014 03:58 PM
Thanks a lot Rolf - my program is now up and running!