changing the baud rate gave me different voltage readings, but still not correct voltage readings. changing the debug baudrate made the display garbled so i changed it back to 9600. i have a couple questions about a few code lines, for example this line in the master where it reads in voltages from the slave
serin MasterBus, N2400, TimeOut, DataError, BD[VarA1] 'Receive Cell Voltage Data
i'm curious what the timeout means. i'm also looking at this line in the slave code:
SERIN2 SlaveBusIn, 16468, 10000, TimeOut, [Command] 'Receive Command Byte on Slave Data Bus Timeout 10s
i guess i'm not entirely sure how it all functions still.
it seems like the master is accepting inputs but missing the first bits. i'll try adding a pause. i feel like i'm still doing something wrong though, cause i don't know why different optos would cause all this.
*edit*
added a 30ms pause in the slave code before sending voltage data, and it's still giving the same results. i guess it's time to change out the optos and see if it makes a difference.