LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing cluster from LabVIEW to TestStand through DLL

Solved!
Go to solution
Hello, I'm calling a function of labview DLL from a sequence in teststand. In the VI function I'm trying to group some outputs in one cluster. So I made a cluster with 4 strings and connecting in connector pane. When I'm building the DLL in labVIEW the prototype of the VI function looks okay : myfunction(lots of parameters, NameOfMyCluster* myCluster); But when teststand is refreshing the new DLL I get this error message : This function does not have parameter information in the DLL or uses types not recognized by TestStand. It was working before I add cluster so I assume it is a not recognized type. So I read some topics and I followed instructions : I created a custom data type in my sequence following the same exact name of my 4 strings of the cluster and the same order. I allowed Cluster passing too. But I still have this error message... Thanks you
0 Kudos
Message 1 of 4
(1,283 Views)

I'm not sure about the capabilities of TestStand DLL import but it is likely supporting flat clusters but not unflat. A flat cluster is a cluster that only contains scalars and other clusters with scalars. An unflat cluster contains variable sized data elements such as strings and arrays. This second class is much more complicated to marshal between environments and an easy way out is to simply forbid it.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 4
(1,251 Views)

Thanks for your answer,

 

I understand that I would better avoid that. But how can I do to encapsulate my VI multiple outputs, because my connector pane si almost full... Even the biggest one. 

I tried passing via arrays, working for scalars, string arrays are not recognized by TestStand, same as clusters.

 

Is there another way to pass multiple data from labview DLL to TestStand Seq ? 

 

Thanks

0 Kudos
Message 3 of 4
(1,246 Views)
Solution
Accepted by topic author OctaveL

Why do you need to make a LabVIEW dll ? 
Could you do it with Packed projekt Library?

 

 

0 Kudos
Message 4 of 4
(1,236 Views)