LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting from Visual Basic to CVI

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?

0 Kudos
Message 1 of 3
(3,202 Views)

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...

0 Kudos
Message 2 of 3
(3,196 Views)

Thanks,  I found it

0 Kudos
Message 3 of 3
(3,175 Views)