06-11-2024 02:06 AM - edited 06-11-2024 02:47 AM
Hii
i have uploaded custom Device in that through RT Driver > Engine> read case > TRUE( RT Read ) > false( sub VI) > Write Variable > writedatatoGlobalvar.VI
IN WritedatatoGlobalVar.vi that Present globalVar(Element) , Datatype(ELEMENT) & Values to Write (DBL)
so i need to convert those element from array to Cluster in this VI Hope You Understand
Thanks
Siddhu
06-11-2024 06:33 AM
Hi siddhu,
I guess you are the same person as here: https://forums.ni.com/t5/LabVIEW/how-to-implement-cluster-datatype-inside-the-case-structure-in/m-p/...
Creating a new thread from a duplicate account for exactly the same problem will not help you more.
You still don't state clearly what you want to do and why.
@siddhu01 wrote:
IN WritedatatoGlobalVar.vi that Present globalVar(Element) , Datatype(ELEMENT) & Values to Write (DBL)
so i need to convert those element from array to Cluster in this VI Hope You Understand
You must clarify these:
- "I need to convert those element" -> Which element(s) ?
- "from array" -> which array? I don't see any relevant array in your code.
- "to cluster" -> why to a cluster? Where will this cluster be used afterwards?
Also, you may explain it in your native language if that is simpler for you.
Regards,
Raphaël.
06-12-2024 03:39 AM
Hi rapshcul
thank you for the Response
i have answered the question which u have defined
You must clarify these:
- "I need to convert those element" -> Which element(s) ?
Datatype , Global Var & value these elements need to convert into cluster by using as array
- "from array" -> which array? I don't see any relevant array in your code.
need to implement those element into cluster and using as array cluster
- "to cluster" -> why to a cluster? Where will this cluster be used afterwards?
i need those cluster array to defined those variables datatype in given case structure < Struct unnamed>
Hope U Understand
06-12-2024 07:37 AM
@siddhu01 wrote:i have answered the question which u have defined
You must clarify these:
- "I need to convert those element" -> Which element(s) ?
Datatype , Global Var & value these elements need to convert into cluster by using as array
- "from array" -> which array? I don't see any relevant array in your code.
need to implement those element into cluster and using as array cluster
- "to cluster" -> why to a cluster? Where will this cluster be used afterwards?
i need those cluster array to defined those variables datatype in given case structure < Struct unnamed>
Hope U Understand
We are going in circles. I will not continue to respond unless you:
- Make intelligible english sentences.
- Explain why you want to do this (without talking about elements, arrays and clusters, be more general).
- Give more info about where you are stuck exactly in your code (I guess you are stuck somewhere, you don't simply want me to do the job for you, right?)
Regards,
Raphaël.
06-12-2024 11:07 AM
In your Init-VI, do something like this?