LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview numeric array to pointer

I'm sure there must be a simple way to do this, but I'm having problems with it.

I am using library function calls to access a vendors dll. 

One function call returns an array of numeric data.  A subsequent function call wants a pointer to the array of data in order to do more operations to the data.

So if I store the array from function 1 in a Labview array on my front panel.  I would need to create a pointer for that array to pass into function 2.  How do I do this?

Thanks for the info.

-GuruDoo

0 Kudos
Message 1 of 4
(3,083 Views)

I think (based on my understanding of your description), you want to double click on the call library function node, and then click on the tab function.  Select the parameter that is giving you a problem on the left side, and set it to what it needs to be...  You may want to pass it in as an array -- maybe....

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 2 of 4
(3,076 Views)

Sorry, If I'm not being clear. 

I've tried changing the inputs and outputs of each function, but to no avail.

 

 I guess another way of putting it is that I declare a memory space by initializing an array.
I pass this into the first function.  The data from the first function fills this array.  For the second function,
I need to pass the same memory space, so that the second function can find the data to use.
Im using Labview 8.6.1 with a vendor dll which cannot be changed.
Any suggestions.

 

0 Kudos
Message 3 of 4
(3,041 Views)

Can you post your code (even without the DLL, although that would be helpful -- along with the .h file).

 

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 4 of 4
(3,024 Views)