09-11-2012 11:36 AM
I have following statement in VB
0xFFFE3892 * 13.1072 / 2 ^ 31 * 180 / 3.14159265358979 * 3600 = -0.040772186
But in CVI the result is different
NOTES:
1) the CVI compile did not like XOR (^) as double type so I have to change to
temp = 2 ^ 31
0xFFFE3892 * 13.1072 / temp * 180 / 3.14159265358979 * 3600
why?? how I do XOR double in CVI?
09-11-2012 11:49 AM
Note that CVI is standard C where you have logical operators (AND, OR, and NOT) and bitwise operators (e.g. XOR) - this should explain your question...
09-12-2012 12:35 PM
Thanks, I found it