12-12-2007 06:15 PM
int GTMP; int STEP;
float32 CGTMP; float32 CGTMPLO; float32 CGTMPHI;
int HTM; int ETM;
float32 TTMPLO; float32 TTMPHI;
HTM = 60/ROC;
GTMP=STTMP - TTMP;
TTMPHI = TTMP + 1;
TTMPLO = TTMP - 1;
if (STEP == 0)
{CGTMP = STTMP - 1; STEP = 1;}
CGTMPLO = CGTMP - 1;
CGTMPHI = CGTMP + 1;
if (STEP == 1)
{ ETM++;}
if (HTM == ETM/2)
{ ETM = 0; CGTMP = CGTMP - 1; }
if (CTTMP < CGTMPLO)
{ HTROn = 1; }
if (CTTMP > CGTMPHI)
{ HTROn = 0; }
if (CTTMP > CGTMPLO && CTTMP < CGTMPHI)
{ HTROn =0; }
if (CTTMP > TTMPLO && CTTMP < TTMPHI)
{ TTReach = 1; HTROn = 0; }
The problems are that if I want to do this:
CGTMPLO = CGTMP - 0.5;
CGTMPHI = CGTMP + 0.5;
I still get a whole number and not a decimal. I thought since my variables are defined as floating point I would have no problem but I was wrong. Also, line of code ETM++ does not incrment each time this code is executed. I tried to put in a conditional statement so I know that it would execute that line of code under certain conditions and the indicator does not note show that the ETM value has increased. Am I correct in assuming that each time this code is ran the variables displayed on the indicators should refresh? I understand that a lot of this could be re-written using LV but I am close to being done and am under some time constraints. If I can get my two problems fixed I would be good to go.
Thanks for the help.
12-12-2007 07:14 PM
12-12-2007 07:33 PM
12-12-2007 07:37 PM
12-12-2007 07:57 PM
Karissa,
Thanks that makes sense to me. I will give it a try and let you know what happens. Do you think I should do that for any items that I want to be refreshed in the Formula nodes (CGTMP, CGTMPHI, CGTMPLO)?
12-12-2007 08:00 PM
12-12-2007 08:08 PM - edited 12-12-2007 08:10 PM
12-12-2007 08:27 PM - edited 12-12-2007 08:30 PM
12-13-2007 04:43 PM
Ravens Fan wrote:Do you prescribe "localcillin" to take care of that problem.
12-13-2007 10:01 PM
I've heard the only cure for that is a memory transplant. Take 2 sticks of RAM and call me in the morning.
altenbach wrote:
Ravens Fan wrote:Do you prescribe "localcillin" to take care of that problem.
There are some even more serious issues that may need a combination of treatments.For example: localilits-sequenceitis 😄