11-16-2009 01:30 PM
Broken Arrow wrote:
Mathan wrote:
Broken Arrow wrote:I like Darren's solution (kudos
)
Oh Darin is none other than Darren ?
Message Edited by Mathan on 11-16-2009 01:08 PMOoops.
Sorry 'bout that Darin.
No worries, I am sure the phrase 'I like Darren's solution' is an instinctive response on this forum....
11-16-2009 03:44 PM
One thing to realize when you use typecast is that you know what you are doing.
So do you?
Ton
11-17-2009 08:06 AM
TCPlomp wrote:One thing to realize when you use typecast is that you know what you are doing.
So do you?
Ton
Good point!
I once mixed up my cluster types and type cast the wrong type. Years latter (that is computer years about 90 seconds really) I dequeue the data pass it to a TDMS write to file (and suprisingly still worked up to this point) after that data was written and LV was trying to release the buffer holding the data, LV crashes telling me the wrong type of data was being dereferenced.
So all bets are off when doing a type cast and don't expect LV to save your behind. So type cast with caution.
Ben
11-17-2009 08:27 AM
TCPlomp wrote:One thing to realize when you use typecast is that you know what you are doing.
So do you?
Ton
The OP said he's using the cluster of custers idea, so he's not typecasting. Who are you talking to? I'm sure Darin knows what he's doing.
11-17-2009 08:28 AM
The controls within a cluster is ordered in Tab Order (correct me if i'm wrong) and this can be used as follows:
Use the Controls[] Property to get a list of all controls in the cluster, cut/build/select a subarray of your doubles, use a simple for loop to get the value property of each element and convert them to double and build a double array as output.
This picture assumes you have 15 doubles first and then your booleans.
If they're ordered more randomly you can use the Set Tab Order feature to make things easier on yourself.
/Y