LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I connect two and more Arduinos in one project?

Thank you folks, I got a working program now with two and more Arduinos 🙂 

labview3.jpg

0 Kudos
Message 11 of 14
(397 Views)

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.

0 Kudos
Message 12 of 14
(390 Views)

@vits1223 wrote:

labview3.jpg


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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 13 of 14
(382 Views)

 


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.

0 Kudos
Message 14 of 14
(378 Views)