취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

Array Cluster help

Hello
 
How can I pick a subset of string array from an array which is contained in a cluster? Any help is appreciated.
 
THanks
0 포인트
1/8 메시지
3,622 조회수
Hi liloco...,

use an "unbundle" node before the "array subset"!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 포인트
2/8 메시지
3,616 조회수
You have to unbundle(by name) your cluster and then pick your array using VI array subset.
0 포인트
3/8 메시지
3,615 조회수
My problem is little different. Please look at the jpeg. What am trying to do is to use a string array named steps(It may have step 0, step 2 etc) to pick up the corresponding profiles(profile4, profile1 etc) from the step cluster. Then pickup the corresponfding table(table 3, table 2 etc) from profile cluster using the profiles string array. Hope it is clear.
 
Thanks
0 포인트
4/8 메시지
3,610 조회수
Hi lilocomotive,

how is the relation between steps, profiles and tables?

Is it by the number in each cluster element (numSteps, numprofiles)? Then use this number for the next "index array" operation.
Or is it by name (like step2=profile4=table2)? Then you have to make a lookup-table to find corresponding items...

Could you attach your vi instead of a picture the next time?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 포인트
5/8 메시지
3,602 조회수
OK...this is how it is . Each cycle will have various steps. Each step will have various profiles and each table will have various tables. For example Cycle0 branches to step 0 and step 3. Step 0 will have profile 1,3,4 and step 3 will have lets say profile 1,2,5. Then profile 1 will have table 1/5/2 and so on. Relation between cycle-steps-profile-table is by name. Only problem attaching the vi is the previous part contains lot of sub vi's. Any help on lookup tale?
0 포인트
6/8 메시지
3,589 조회수

Hi,

Here is a great KnowledgeBase article about creating Look Up Tables. Happy coding!

Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 포인트
7/8 메시지
3,559 조회수
Hi lilocomotive,

when you want to parse by name you can also use case structures - see attachment.
Don't forget to include a default case! (You can make the text comparison "case insensitive"...)
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 포인트
8/8 메시지
3,547 조회수