Hello,
I have an odd issue that i can not figure out. I'm using a Gen4-uLC-35DCT-CLB with an arduino nano to control an annealer. Everything worked fine until i added a current and voltage sensing circuit. The coil voltage and coil current both fluctuate quite a bit, much more than they did during standalone testing (not using the LCD, used a separate arduino nano and read values through serial monitor). I then inserted a string item on form 4 to help troubleshoot and i got stable values as i did for the standalone testing. Then i inserted a string item on form0 and did not get stable values. So what i know is that the arduino is sending the correct values to the LCD (being that they are displayed on form4 on string items and leddigits as well, see form4 video with green font), but for some reason the values change when sent to form0 (see form0 video with blue font). I've tried changing the index numbers (leddigits3 to leddigits5) with no success. Any suggestions?
here is the section of code that does the writing (full code is attached):
int c = round(valueC * cMod);
int v = round(valueV * vMod);
genie.WriteStr(0, v);
genie.WriteStr(1, c);
genie.WriteStr(2, v);
genie.WriteStr(3, c);
genie.WriteObject(15, 12, v); //LCD Voltage Update leddigits12 id:15
genie.WriteObject(15, 13, c); //LCD Current Update leddigits13 id:15
genie.WriteObject(15, 8, v); //voltage to form4
genie.WriteObject(15, 9, c); //current to form4
Videos:
form0: https://www.youtube.com/watch?v=-xF5Y5qM-7U
The values in question are coil current and coil voltage. the values c and v are displayed to the right of the leddigits using WriteStr.
form4: https://www.youtube.com/watch?v=ZFgb...ature=youtu.be
Voltage is on top and current on bottom. values c and v are also displayed to the right of their corresponding leddigits.
I have an odd issue that i can not figure out. I'm using a Gen4-uLC-35DCT-CLB with an arduino nano to control an annealer. Everything worked fine until i added a current and voltage sensing circuit. The coil voltage and coil current both fluctuate quite a bit, much more than they did during standalone testing (not using the LCD, used a separate arduino nano and read values through serial monitor). I then inserted a string item on form 4 to help troubleshoot and i got stable values as i did for the standalone testing. Then i inserted a string item on form0 and did not get stable values. So what i know is that the arduino is sending the correct values to the LCD (being that they are displayed on form4 on string items and leddigits as well, see form4 video with green font), but for some reason the values change when sent to form0 (see form0 video with blue font). I've tried changing the index numbers (leddigits3 to leddigits5) with no success. Any suggestions?
here is the section of code that does the writing (full code is attached):
int c = round(valueC * cMod);
int v = round(valueV * vMod);
genie.WriteStr(0, v);
genie.WriteStr(1, c);
genie.WriteStr(2, v);
genie.WriteStr(3, c);
genie.WriteObject(15, 12, v); //LCD Voltage Update leddigits12 id:15
genie.WriteObject(15, 13, c); //LCD Current Update leddigits13 id:15
genie.WriteObject(15, 8, v); //voltage to form4
genie.WriteObject(15, 9, c); //current to form4
Videos:
form0: https://www.youtube.com/watch?v=-xF5Y5qM-7U
The values in question are coil current and coil voltage. the values c and v are displayed to the right of the leddigits using WriteStr.
form4: https://www.youtube.com/watch?v=ZFgb...ature=youtu.be
Voltage is on top and current on bottom. values c and v are also displayed to the right of their corresponding leddigits.
Comment