Search found 23 matches

by Billduck1302
Tue Oct 14, 2025 5:48 pm
Forum: General
Topic: Contents of an OR statement
Replies: 2
Views: 53

Contents of an OR statement

I have an if statement "If Cell_1_Voltage_Float || Cell_2_Voltage_Float <= 3.0". The intent was to terminate a process, if either cell, in a Nissan Leaf battery, fell below 3 volts, in a discharge capacity test. Well, it did not work. Instead the following "If Cell_1_Voltage_Float <= ...
by Billduck1302
Tue Oct 07, 2025 9:06 pm
Forum: General
Topic: Integer to float calculation
Replies: 3
Views: 315

Re: Integer to float calculation

Thank you sir.
by Billduck1302
Tue Oct 07, 2025 1:30 am
Forum: General
Topic: Integer to float calculation
Replies: 3
Views: 315

Integer to float calculation

I learned something today. Namely, I had to insert "FLOAT" in the following expression.
Cell_1_Voltage_Float = (FLOAT (Cell_1_Voltage_Int) / 1023) * 5.0
by Billduck1302
Fri Sep 26, 2025 10:58 pm
Forum: General
Topic: Error when compiling to target
Replies: 6
Views: 2011

Re: Error when compiling to target

Thank you so much. I am just learning about Injectors, when using the F8 key. Can it be done that, when prompted to read an analog input, that I could type in the bite when I have the command "Get Average Int". By the way, this is a program to test the capacity of Nissan Leaf cells.(2S2P) ...
by Billduck1302
Fri Sep 26, 2025 5:16 pm
Forum: General
Topic: Error when compiling to target
Replies: 6
Views: 2011

Error when compiling to target

This is the message. Is there a way to troubleshoot based on the last message "error code 0x1", or " invalid operands to binary | (have 'MX_FLOAT {aka volatile float}' and 'float')"? The correct programmer port is selected. Thanks in advance. "C:\Users\Klsa\OneDrive\Desktop\...
by Billduck1302
Sat Sep 13, 2025 10:48 pm
Forum: Feature Requests
Topic: Digital outputs automated in a MEGA
Replies: 6
Views: 613

Re: Digital outputs automated in a MEGA

This is a sorting algorithm. It works for 8 elements in the array, but not 8+.
I need 14 elements.
by Billduck1302
Thu Sep 11, 2025 8:28 pm
Forum: Feature Requests
Topic: Digital outputs automated in a MEGA
Replies: 6
Views: 613

Re: Digital outputs automated in a MEGA

I can not say that I follow your suggestions. It is a little advanced for me.
But I will attach what I have come up with. One program samples 7 cells.
And places the float voltages into an array. I have not tested it yet. The second
program - sorting - sorts the values in the array.
by Billduck1302
Sat Sep 06, 2025 11:07 pm
Forum: Feature Requests
Topic: Digital outputs automated in a MEGA
Replies: 6
Views: 613

Digital outputs automated in a MEGA

I need to sample 14 voltages on a Lithium battery pack. I am using a relay board to address individual cells. For example, to get the Cell 1 voltage, I send "0" to a relay board pin, and "0" to another relay board pin. I note that the "output" command icon only allows t...
by Billduck1302
Wed Aug 20, 2025 11:45 pm
Forum: General
Topic: Simple switch statement
Replies: 2
Views: 700

Simple switch statement

What am I doing wrong? I call a subroutine with a switch statement.
It has a local variable ".Count". The switch statement uses ".Count" to go between branches.
But it is not switching, while the .Count increments.
The program is attached.
by Billduck1302
Sun Mar 30, 2025 12:49 am
Forum: General
Topic: Simple Program - Want to get state of some switches.
Replies: 3
Views: 2122

Re: Simple Program - Want to get state of some switches.

I will add that !(Variable) works but not NOT(Variable)