I have a 1-D array of waveform with size = 4 that contain "raw" potentiometer voltage data. I need to manipulate waveform data from index 0 & 1 using the formula shown below to derive a single waveform of angle data. I need to do the same for index 2 & 3 as this is a redundant circuit. I was hoping that the formula node can work on entire arrays and although it can take an array as input, it requires me to index the array in the formula so it becomes a scalar value.
Since the formula is relatively complex, I'd like to keep it in text form but have it automatically work on each point of the two input arrays. This math is done inline with pulling data out of a DAQ and so I need it to be as efficient as possible so that I don't spend too much time on it and potentially overflow the DAQ buffer.
The naive solution would be to wrap the formula nodes with for loops, but I don't know if this is this is an efficient way to do this. I would appreciate any suggestions on how best to tackle this.
Thanks!