I added a slider to change the timeout between each round of simulation, between 200ms and 5000ms in steps of 100ms. And now the mainscript.js can parse and format all data needed for the C++. I needed to do this because for some reason I canāt really push multiple inputs from the JS to C++ via Neutralino updateprocess, so I need to send ALL of the data needed for the simulation in one single message. Idk why it does this, but whatever. So I put all needed data, like the timeout, neuron count, and each neuronās ID and the other neurons they are connected to, into a single string that looks like this: clk1000_nct05/0,1,2,/1,3,4,/2,4,/3,2,0,/4,0,/
Currently, the solution in the C++ that gathers the data from this string is very messy and inefficient, while only allowing for single-digits, but for a NeuronActivation 1.0, itās fine, Iāll find a better solution if I have time to continue this project
I decided to ditch having a seperate thread for the clock in C++ and now itās just a while(1) loop in main with a chrono timeout and runs the simulate function each round.
So currently, I can take in and parse all needed data, change the data of each member of the class, and run the simulate function, though itās buggy and doing stuff itās really not supposed to, so Iāll have to look into that.
I also added a stimulation button to the options, which will make the voltage of a specific neuron high enough (to 10) to trigger the surrounding ones to start the simulation. Though the logic behind it isnāt fully set up yet.