From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

3D Trigonometric Formulae

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!

0 Kudos
Message 1 of 2
(4,692 Views)

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

0 Kudos
Message 2 of 2
(4,660 Views)