取消
显示结果 
搜索替代 
您的意思是: 

Elements in Cluster to Array in Cluster (generic)

已解决!
转到解答

Hi,

Is there an easy and generic way to combine multiple clusters (containing the same datatypes (1 int and 2 strings)) to get a cluster containing arrays of the same datatypes (1Array of int and 2 Array of strings)?

 

The Background is that I recieve multiple measurement-clusters with measurement values (int) as well as the name of the measurement (string) and the unit (string) and want to end up with arrays inside a cluster containing the infos for each measurement at the same index of the array.

 

Best,

LabEti

 

 

0 项奖励
1 条消息(共 6 条)
3,268 次查看

Hi Eti,

 

convert both input clusters to arrays, then bundle them…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
2 条消息(共 6 条)
3,264 次查看

Hi,

Unfortunately that didn't solve my problem.

I would like to get something like this (picture) in the end where the number of input clusters would be variable.

Best

LabEti

0 项奖励
3 条消息(共 6 条)
3,252 次查看
解答
已被主题作者 LabEti 接受

Hi,

 

whenever you need to handle several objects of the same datatype you should build an array of them:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
4 条消息(共 6 条)
3,247 次查看

@GerdW wrote:

Hi,

 

whenever you need to handle several objects of the same datatype you should build an array of them:

check.png


Isn't there a built in function for that nowadays? (since 2014 or something)

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
5 条消息(共 6 条)
3,230 次查看

Index and bundle exists!  I would caution the OP to use a variant rather than a string. 


"Should be" isn't "Is" -Jay
6 条消息(共 6 条)
3,197 次查看