In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ALTITUDEAP wrote: more examples of what iti is that i am trying to accomplish. I am learning SX/B and really do not understand C or C++ which is what this example is that i got from the pdf for the device that i am trying to use. I would like to recieve some help as to how to write it in SX/B '---------------Calc--------------- Void calcPT1234 (double *pressure, double *temperature, long d1_arg, long d2_arg) { double dt, off, sens; double fd1, fd2, x; d1_arg = d1_arg & 0xFFFF; d2_arg = d2_arg & 0xFFFF; fd1 = (double) d1_arg; fd2 = (double) d2_arg; dt = fd2 - ((8.0 * fc[5]) + 20224.0); off = fc[2] * 4.0 + ((( fc[4] - 512) * dt ) / 4096); sens = 24576 + fc[1] + 99 fc[3] * dt) / 1024); x = (( sens * (fd1 - 7168)) / 16384) - off; if (pressure!=0) * pressure = 250 + x / 32; if (temperature!=0) * temperature = 20 + (( dt * ( fc[6] + 50)) / 10240 ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=145125#m145573 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)