09-26-2014 08:33 AM
Hello, I have written a piece of VB Script that uses Diadem to translate outputs from a configuration of 3 rotary potentiometers to relative x, y and z displacements. The equations are quite complex but the code is running very slowly. At present I calculate Sine and Cosine of each output (12 outputs - 24 new channels) then use formulae within ChnCalculate command to get x, y and z and finally use ChnOffset to get relative x,y and z. Any suggestions as to a way of doing this that would give a more efficient running speed? (It's the formula calculations that seem to be taking the time.) Ta!
09-29-2014 11:42 AM
Hi cxw,
I'm surpised. The Calculator in DIAdem is usually very fast. How long are these channels you're analyzing? Can you post the VBScript that you're using to do all this, or an example data set?
Brad Turpin
DIAdem Product Support Engineer
National Instruments