05-11-2009 02:03 PM
Lets say my FPGA had 3 numeric controls: counter1, counter2, counter3...counter99. Is there a way to read one of those controls from the host by specifying say a string like "counter1". In otherwords, I'm looking for something that's like the "read/write control" node but more dynamic.
05-11-2009 04:28 PM
05-11-2009 05:41 PM
05-11-2009 05:46 PM
I'm not aware of your application here, but if you have near enough 100 controls on your FPGA FP, all of the same type, could you not perhaps create a 100 element array of controls? Or if they differ, then a cluster of controls?
This would only require one read/write property node.
05-11-2009 11:58 PM
05-12-2009 02:51 AM
I know my suggestion for one array of controls is not dynamic, but it's certainly adjustable programmatically. By allowing the array size to alter (I presume FPGA array controls can alter in size programmatically) you are effectively talking to any number of controls you need to. In this example, 'dynamically' would mean "modifying one element of the array", rather than programmatically dealing with a unique control by label string. For example, if the code needed to talk to control control01 in one iteration of a loop, then control04 in the next, instead of using a dynamic property read/write and calling the control by name, you would instead be modifying the control in index 1, then index 4.
I know this isn't particularly flexible, but it is scaleable.
Just trying to help.
05-12-2009 12:18 PM
I think the only thing I don't like about an array is that it makes it much harder to trace. If I ever want to know what index 47 is, I have to go through the FPGA code and trace it out. I could make a lookup document but that would be another document I'd have to maintain. Thanks for the ideas.
05-12-2009 12:30 PM
I like to group all of the controls for a function into a cluster. That way I have one main control to update for a given function. For example I have 24 controls in a cluster that control the 8 analog outputs of the 7833.
05-12-2009 12:33 PM
05-13-2009 07:20 AM