03-05-2008 05:22 PM
03-05-2008 05:35 PM
03-06-2008 03:26 PM
03-06-2008 03:54 PM
Thanks very much.
I tried to take it to the next step by having the VI accept a reference to a cluster with no sucess. In that way I could get the cluster member names from any cluster.
Is this doable?
03-06-2008 04:05 PM
You would need to use a generic cluster reference, as opposed to the strictly typed reference you probably have now. The easiest way is to right click the reference control to ignore the type, but you can also select the Cluster class from the class hierarchy.
Another option is to use OpenG's lvdata package, which includes a VI which accepts a cluster as a variant and analyzes the variant to get the element names.
03-06-2008 04:05 PM
03-07-2019 01:16 AM
The solutions presented is the way I have always done it in the past and it works on all the cRIOs I have used in the past. However, it does not work on RT Linux based cRIOs, like the 9068. Created consternation, as it works when run from the development environment, but when you compile it and run it on the cRIO, it suddenly does not work. I was working for weeks doing a new development, and only compiled and run it the day before I had to go to site, my experience in the past was always that if it runs from the development environment, it will work compiled on the cRIO. I am now working on a clumsy work-around, where I generate files with the strings, on my pc, and then on the RT Linux cRIO I read the strings from the files.
03-07-2019 02:18 AM
03-07-2019 02:56 AM
Thank you for the quick reply, Yamaeda!
I see the vi you used is under Cluster, Class, & Variant -> Variant -> Data Type Parsing
I have not used those before.
I'll quickly try it out, you may have saved me a few hours work!
Thanks again.
03-07-2019 02:59 AM
Sounds to me you want to store values in an ini file?
Perhaps this Configuration File Library is useful. It will even do exactly what you asked, but as its purpose is to do much more, it would be overkill.