12-14-2023 04:40 PM
I attempted to control a 4 channel relay board using the Linx Digital Write VI(N Channel Mode), but it caused my raspberry pi 3B to lose communication with host computer whenever I attempted to deploy it. I had to use 4 of the Digital Write VI's in Single Channel Mode for me to control the relay board. Has anyone else run into this issue?
12-22-2023 12:47 PM
Hi,
Please can you provide the details of the relay module you are using and how it is connected to the Raspberry Pi. What equipment are you controlling with the relay contacts?
Does the problem occur if the relay module is disconnected from the Raspberry Pi?
12-22-2023 01:37 PM
Here is the link to the current relay module I am using:
https://www.amazon.com/gp/product/B072XGF4Z3/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
At the time of initial testing the relays were not controlling anything. This problem occurred with the relay module disconnected, and using a different brand of relay modules.
01-02-2024 04:20 PM
Are you using Linx channel 7 (GPIO 4) ?
Check that the one-wire interface is disabled in raspi-config. The one-wire interface allocates GPIO 4 and the LabVIEW runtime will exit because it is unable to access the GPIO channel.
01-02-2024 05:54 PM
Indeed, some comments state:
gpio 4 is relay 1
gpio 22 is relay 2
gpio 6 is relay 3
gpio 26 is relay 4
01-08-2024 01:26 PM
Yes I am using channel 7, 22, 6, 26. One Wire was not turned on during testing. When I modified my code and used 4 digital writes (single channel mode) the code load onto the raspberry pi and worked as expected