LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get array output when a dll created in cvi is used in labview

Hi everyone,

 

                    I'm chaitanya. i have been trying to get an array of values as an output in labview using call library function node.

i first created a dll in labview(cvi) by writing a program which gives me a array of prime numbers b/w 1 to 100. and i tried to use this dll in labview using call library function node but i get a scalar value not the array output.... why?

but before creating a dll if i try to run tht program in cvi its gives me array output.

is there any method to get array output in labview from call library function node.

0 Kudos
Message 1 of 2
(3,134 Views)

Hi Chaitanya,

 

The Call Library Function Node needs an input in order to output an Array, Waveform, or Table. You can wire an empty constant of type Array, Waveform, or Table, and then use the library function to modify it. Complete the following steps to output an Array, Waveform, or Table:

  1. Write your function so that it takes in an array, waveform, or table.

  2. On the block diagram, create an empty constant of type Array, Waveform, or Table.

  3. Place a Call Library Function Node on the block diagram and call the function you created.

  4. Wire the constant to the matching input of the Call Library Function Node.

  5. You can now use the output of type Array, Waveform, or Table.

Hope this helps.

 

Regards,

 

Ujjval

 

0 Kudos
Message 2 of 2
(3,118 Views)