Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5678

LabVIEW, Arduino, & SainSmart 16 Relay Controls & Error Handling question...

$
0
0

I've written a small VI that will control the SainSmart 16 Relay Module with a Arduino Mega 2650.  It's pretty basic, but it will switch the relays.  My question is how to handle errors in the VI.  Do they need to just be daisy chained or connected in some other way?  I have attached the VI for reference... If you have the hardware, open the "SainSmart16RelayExample.VI" first, this will give you a frontend to work with... the Arduino Relay Controls assumes you're using a Mega 2650 so the channels start at 22 and go through 37, these will need to be adjusted if you're using a different board.

 

Thanks!

Chad


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>