LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable To pass array from Labview to Vb.net?????

hi
 
i have created one simple application in labview and i am able to transfer single or seperate multiple variable from Labview to Vb.net
 
but now i want to pass  single dimension or 2D array how i can do this (for same  Labview to Vb.net)  ???????????/
 

Message Edited by Viren Patel on 01-20-2006 04:49 AM

0 Kudos
Message 1 of 2
(2,732 Views)
Hi There,

you can do that straight forward:

define a public method as member of a public class in a dll project an
declare it to consume arrays:

(I'm not very familiar with VB so I take c# translation is easy)

public class ArrayConsumer
{
ArrayConsumer ( ) {}
void ConsumeArray ( double [] p_n1DArray )
{
//do something
}
}

Now refernce that class with labview and use an invoke node to call
ConsumeArray!

just put a labview 1d dbl array to parameter p_n1DArray ... done.

Use "create constant" from the input parameters context menu if you are
unsure how to build dbl arrays.


Greetings, Sebastian Dau

"Viren Patel" <x@no.email> wrote in message
news:1137755454791-313488@exchange.ni.com...
> hi
> &nbsp;
> i have created one simple application in labview and i am able to transfer
> single or seperate multiple variable from Labview to Vb.net
> &nbsp;
> but now i want to pass&nbsp; single dimension or 2D array how i can do
> this (for same&nbsp; Labview to Vb.net) &nbsp;???????????/
> &nbsp;Message Edited by Viren Patel on 01-20-2006 04:49 AM
>


0 Kudos
Message 2 of 2
(2,727 Views)