01-15-2007 06:33 PM
01-16-2007 02:39 AM
' : 100 to get the minutes to decimal places
Call FormulaCalc("Ch('Result1') := Ch('YCop_Latitude') / 100")
' get the decimal places only
Call FormulaCalc("Ch('Result2') := Frac( Ch('Result1') )")
' Input data without minutes (for later use)
Call FormulaCalc("Ch('Result3') := Ch('YCop_Latitude') - (Ch('Result2') * 100)")
' norm minutes from 0-59 to 0-99
Call FormulaCalc("Ch('Result4') := Ch('Result2') * 100/60")
' add the minutes back to the input data -> linear data
Call FormulaCalc("Ch('YCop_Latitude_Linear') := Ch('Result3') + Ch('Result4') * 100")
' delete the temporary channels
Call ChnDelete("Result1")
Call ChnDelete("Result2")
Call ChnDelete("Result3")
Call ChnDelete("Result4")
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
01-16-2007 10:21 AM
Hi Rodrigo,
Or you could do the same transformation as Matthias suggests, but to pi radians instead of degrees. The main thing is to transform your data into a range of continuous numbers, instead of having 3 separate numbers encoded in the numeric value that DIAdem is trying to plot. We're up to DIAdem 10.1 now, and there is no dedicated degrees-minutes-seconds plotting.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
01-16-2007 01:26 PM
Once again, problem is solved.
The functions "Frac" and "Trunc" were helpfull !
Thank you very much Sirs.
Rodrigo
Sao Paulo - Brazil