I was wondering if you'd be able to give me some guidance on whether what I want to achieve is possible in automation without having to write any C# code...
I want to make two scripts;
- One which is given a neuron element name, and iterates through every row in a given table, and changes a parameter in that table to 'Enabled' (which resets a counter).
- Another script which gets every element in a given 'View', and feeds them to the above script, so that I can run the above script on all neurons in a given view. P.S. I want to make two separate scripts so that I can either run this on a single neuron, or all of them.
Thanks, James.
Hi James - definitely working with two scripts is the way forward. I would even recommend that if you would not be planning on using the scripts individually or combined, just for modularity and to make it easier to maintain. But you can definitely run an automation to iterate on all elements in a view and then launch a subscript on each of those (changing that parameter to enabled).
I'm not that versed at creating automation scripts, but I doubt that both would be achievable without C#. But not 100% sure, so let's see if some more experienced people can confirm.
Maybe quick question in that respect, is the number of items in the table fixed (e.g. related to a fixed / pre-defined number of input ports) or can it be variable from one Neuron to another?
Hello Ben.
Thanks for your answer, as for your question; it can vary between 32 and 64 rows, but this is deterministic from the FW the neuron is running. That said it would probably be more reliable to just get the count of rows and doing a for loop, but I see no way to do that without having to write C#, so I’m pretty sure the answer is you can only iterate through a table with C# but I’m hopeful that’s not the case, but if it is I’ll give it a go.