Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling a SainSmart USB relay from LabView?

Korpz,

 

I just used the VIs Mercedes included in their attachment.

 

Will

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
0 Kudos
Message 11 of 15
(1,473 Views)

Here is a simple driver for the 16 ch USB Relay Module from SainSmart.

It is in a Labview 2018 vi.

 

If you have any questions, feel free to contact me 

Message 12 of 15
(797 Views)

Here is the same code from above exported to run in LabView version 8 or newer.

0 Kudos
Message 13 of 15
(773 Views)

Is there a .vi that works with the 4 relay or the 8 relay boards?  The 8 relay board is especially problematic.

0 Kudos
Message 14 of 15
(271 Views)

Here,

 

I modified the 16 Relay code some to allow for different relay options and tried to clean-up the unit response handling as well.

See if this works.

SainSmartRelayOptions.png

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 15 of 15
(172 Views)