08-10-2021 12:16 AM
Thank you folks, I got a working program now with two and more Arduinos 🙂
08-10-2021 02:08 AM
You don't need Visa Open and Visa Serial Configure functions, do what you did at the start of this thread and move VISA Configure out of the while loop.
08-10-2021 05:18 AM
@vits1223 wrote:
Get rid of the the VISA Open and move the VISA Configure Serial Port to before the loops. There is no reason to repeatedly configure the port.
Also, using the property node makes 0 sense here. Yes, it does work because the set baud rates are high enough. But it reduces readability and adds unnecessary overhead. Just use constants.
08-10-2021 07:51 AM - edited 08-10-2021 07:53 AM
wiebe@CARYA wrote:
This is a stretch, but here it goes...
I had cheap Arduinos come in with the wrong firmware. The details elude me, but they where identified as a different type. Everything worked fine, except that the CPU speed was 50% off. That included serial speed. IIRC, it was a quick fix, but without the fix I had to double all baud rates, waits, etc..
Eeek, sounds like a timer prescaler had been modified in your case. I bet that took a debugging effort.
I've seen "legitimate" uses of this (for example to modify the PWM frequency on certain pins), but since it can mess up some fundamentals like delay(). I would always just throw an I2C or SPI PWM chip on the side and leave the timer prescalers well alone.