Search found 23 matches
- Tue Oct 14, 2025 5:48 pm
- Forum: General
- Topic: Contents of an OR statement
- Replies: 2
- Views: 39
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 <= ...
- Tue Oct 07, 2025 9:06 pm
- Forum: General
- Topic: Integer to float calculation
- Replies: 3
- Views: 296
Re: Integer to float calculation
Thank you sir.
- Tue Oct 07, 2025 1:30 am
- Forum: General
- Topic: Integer to float calculation
- Replies: 3
- Views: 296
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
Cell_1_Voltage_Float = (FLOAT (Cell_1_Voltage_Int) / 1023) * 5.0
- Fri Sep 26, 2025 10:58 pm
- Forum: General
- Topic: Error when compiling to target
- Replies: 6
- Views: 1987
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) ...
- Fri Sep 26, 2025 5:16 pm
- Forum: General
- Topic: Error when compiling to target
- Replies: 6
- Views: 1987
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\...
- Sat Sep 13, 2025 10:48 pm
- Forum: Feature Requests
- Topic: Digital outputs automated in a MEGA
- Replies: 6
- Views: 604
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.
I need 14 elements.
- Thu Sep 11, 2025 8:28 pm
- Forum: Feature Requests
- Topic: Digital outputs automated in a MEGA
- Replies: 6
- Views: 604
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.
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.
- Sat Sep 06, 2025 11:07 pm
- Forum: Feature Requests
- Topic: Digital outputs automated in a MEGA
- Replies: 6
- Views: 604
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...
- Wed Aug 20, 2025 11:45 pm
- Forum: General
- Topic: Simple switch statement
- Replies: 2
- Views: 697
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.
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.
- Sun Mar 30, 2025 12:49 am
- Forum: General
- Topic: Simple Program - Want to get state of some switches.
- Replies: 3
- Views: 2121
Re: Simple Program - Want to get state of some switches.
I will add that !(Variable) works but not NOT(Variable)