05-29-2024 07:08 AM
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
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
05-29-2024 07:31 AM
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.
05-29-2024 07:41 AM
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
05-29-2024 07:49 AM
To learn how to use the case structure, perhaps this video can help.
05-29-2024 07:49 AM
@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.
05-29-2024 09:21 AM
It might be more productive to talk about "why" instead of "how" right now.
05-30-2024 12:01 AM
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
in similar way i need to combine all those dataype like a cluster and implement in new case structure Hope U Understand 🙂
05-30-2024 08:09 AM
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:
Regards,
Raphaël.
06-05-2024 11:39 PM
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
06-06-2024 03:07 AM - edited 06-06-2024 03:12 AM
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.