Hi,
I have previously used the LabVIEW Interface for Arduino to read analog data with excellent results. Now I am trying to control the relays on a relay shield board via the digital pins and get absolutely now reaction at all even thought the boards are brand new and fresh out of the pack.
I am running LabVIEW 2013 on a Win7 computer. The LabVIEW Interface for Arduino is v2.2.0.79. The Arduino Uno board (product code A000073) is newly purchased. The 4-relay board (product code A000110) likewise. The existing schematics seem to indicate that the control pins for the relays are connected to four of the digital pins (#4, #7, #8 and #12).
At first, I powered the board only from the USB port. When nothing much happened, I suspected that it might be an issue with insufficient driving power so I connected a 9 V DC adapter to the power port. Still nothing much happens. I have tried to set all the digital ports to input and tried to set the output to both '0' and '1', but there is no activity. I have verified that I have 5 V available on the relay shield board side.
I did not use an ankle strap, but the boards have been located on an antistatic board all the time since unpacking, so the chances of having been very unlucky with static discharge are fairly small, I would guess.
I enclose one version of my code for reference. Is there anything I am missing?
Thankful for any help,
Mike