06-26-2012 01:21 PM
Hi - using a functional global with several parallel loops - it contains an array of clusters as its data. The setup is your basic read/write structure (attached). Upon starting the app, I initialize a 12 element array of clusters and write to the global. Yet, when I try to write to the data later on, it appears that the only element that is not greyed out, is element 0 of the array, so any time I write to any other element, the data does not "stick". Is this because the USR does not know how big it should be? How do I code around this? I have tried adding an init case for the global to no avail. I have used this in LV 7 with no problems, but in LV2011 no go - attached are both copies thx
Solved! Go to Solution.
06-26-2012 01:26 PM - edited 06-26-2012 01:27 PM
If you only have read/write actions you'll need to read it out, add/modify and write it back. I'd add a "Add data" action that'd build the array internally with the new input.
Btw, you should wire your error in/out so you dont throw out errors ...
/Y
06-26-2012 01:29 PM
It may seem a bit stupid, but are you sure you have not somewhere a copy of that VI laying around in your diagram that is configured to write into the buffer? Maybe hidden behind another node or structure?
The VI in itself seems to work exactly as I would suppose it should, which considering the triviality of it, would be only logical.
06-26-2012 01:46 PM
Ah yes - thanks to both for responding - turns out I was writing to the array elsewhere