LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to implement cluster datatype inside the case structure in LabVIEW

HII 

I am Currently working on automation Feature by using labview 

i need a example of cluster datatype in case strcuture format that contains different catogory

 

For example i have attached the image below

siddhu2001_0-1716984069421.png

in this Image  name does not matter it could be any name ,  but the datatype column Each datatype has different ones,  i have the logic for each datatype but i need to implement all the dataype inside the cluster to form as Struct<unnamed> case structure in Labview Hope u understand , kindly provide any example so that it could be Much Helpful  

Thanks 🙂

Govindaraj

0 Kudos
Message 1 of 15
(964 Views)

Hi Govindaraj,

 

What you want to do is not clear at all.

 


@siddhu2001 wrote:

i need a example of cluster datatype in case strcuture format that contains different catogory

[...]

i need to implement all the dataype inside the cluster to form as Struct<unnamed> case structure


This is gibberish, what's the relation between a cluster data type and a case structure?

What are these types: unsigned<int> ? enum<Unnamed> ? Struct<unnamed> ? These do not exist in LabVIEW.

 

Please provide your LabVIEW code (the actual VI file, not a picture) so that we can see what you are trying to do.

 

Regards,

Raphaël.

0 Kudos
Message 2 of 15
(943 Views)

Hi Raphschru 

acutally the dataype which i have i have provide its external Software name so i cant not explain Detailed 

i need to implement the different datatype into cluster inside the case structure Hope u Understand

0 Kudos
Message 3 of 15
(931 Views)

To learn how to use the case structure, perhaps this video can help.

0 Kudos
Message 4 of 15
(920 Views)



@siddhu2001 wrote:

Hi Raphschru 

acutally the dataype which i have i have provide its external Software name so i cant not explain Detailed 

i need to implement the different datatype into cluster inside the case structure Hope u Understand


That does not make sense either. Please provide more details:

 - Were does this cluster come from?

 - Are you calling external code from LabVIEW using a CLFN (Call Library Function Node)?

 - Are you asking how to interface the types with LabVIEW?

 - Or are you asking how to process this cluster in LabVIEW?

 - Why are you talking about a case structure?

 

Please provide you current code!

 

Regards,

Raphaël.

0 Kudos
Message 5 of 15
(919 Views)

It might be more productive to talk about "why" instead of "how" right now.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 15
(887 Views)

Hii 

i can share the particular vi since its related to project we cannot share all the code 

in this vi the below images contains different datatype logics  

siddhu2001_0-1717045173224.png

in similar way i need to combine all those dataype like a cluster and implement in new case structure Hope U Understand 🙂

0 Kudos
Message 7 of 15
(837 Views)

You are still not explaining clearly how your cluster would come in.

 

If you are willing to have a generic function that treats cluster elements like individual variables, you can decompose a cluster in an array of variants and inspect their type and name using "Get Type Information.vi" from the Data Type Parsing functions:

raphschru_3-1717074365826.png

Regards,

Raphaël.

Message 8 of 15
(808 Views)

Hi raphschru

 

Thank You for Providing the Example , i will try out these examples and i have one question 

 

In LabVIEW Custom Device can we implement Cluster Logics in Intiaiization.vi Bcoz while Building the Custom Device in LabVIEW .

 

veristand System Explorer shows what type of inputs and outputs are given based on Initialization 

 

so my main point is i need to implement the array to cluster in initialization Vi and it should be populated in Veristand System Explorer Hope u Understand 

 

Thanks 

 

0 Kudos
Message 9 of 15
(742 Views)

Hi Govindaraj,

 

When asking for help, you need to be much more specific than this.

You cannot simply state a vague goal and expect other people to guess what are trying to do.

You need to show actual code and explain what you tried and where you are stuck.

 

As for your custom device, what prevents you from using the "cluster logic" in the Initialization VI? Have you tried it?

 

Regards,

Raphaël.

0 Kudos
Message 10 of 15
(730 Views)