LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

will a CLFN accept an array of cluster

My client has requested a set of DLL functions be ported to LabVIEW 7.0.

I know that where a struct is expected, a cluster can be input as long as it is flat data (no arrays within the cluster, including strings). In a few cases I had to convert a nested array within a cluster into a nested cluster within a cluster.

I now have a situation where an array of clusters is the parameter. The cluster contains only U16s.

One solution is to turn the cluster into an array of U16; then I end up with a 2D array of U16, and that will work.

I am wondering if I can avoid doing the conversion and input an array of cluster directly?

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 1 of 3
(2,549 Views)

Hi Lawrence,

 

I found a Knowledge Base article titled Passing an Array of Clusters From LabVIEW to a DLL.  Seems appropriate:smileywink:.  Take a look and see if it helps!

 

Cheers, 

Brian A.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(2,521 Views)

thanx for the link,

guess I can go either way (but carefully)

 

lmd2

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 3 of 3
(2,511 Views)