I am nearing completion of my VI...thanks to those of you who have helped. I've run into what I hope is one of my final issues.
Brief refresh - I parse a text file then create a bunch of boolean/numeric controls/indicators accordingly. All of the data that comes out of the text file gets put into arrays in a particular format. All of this data is saved in a new VI that I can then open and use independently. All of that is working.
One of the final things I'm trying to do is as follows...I want to create an array of references to the controls that I create. Let's take the example of the boolean control. First I initialize an array using the Boolean class specifier constant:
Then as I am parsing the text file and creating the controls, I grab a refnum from the control I create and put it into the array (the entry at the top left of the case structure is the refnum):
When the loop is complete, I take the modified array and assign it as the value to the array I want created in my output/final VI:
This new array shows up in the output VI, but I am having a really hard time testing its contents. All of its contents are of type control refnum, which is obviously because that's how I create it in the final picture above. So I've yet to find a way to read out the value assigned to one of those refnums. Here's an example of what I tried (again, just trying to read the true/false value of the control associated with the reference in the array):
The reason for the broken wire there is that it says the Value output is of type variant. This doesn't make sense to me...if I cast it as a boolean (which obviously works because the property node is interpreting it as type Bool), then why does the Value property output a variant instead of a boolean? I also tried Varient to Data, but had no luck.
Perhaps there's an easier way to do this, I don't know. Ultimately I have 2 questions:
1. assuming I'm trying to create an array of boolean refnums, is Control Refnum the correct 'style' to use when I create the new VI Object, and if not, what is?
2. assuming control refnum is correct, how do I then read out the value of the control in the newly created VI? In other words, the final array I'm trying to read (in my final picture above)?
Thanks