Page 1 of 1

BCM 2835 examples together in one VI

PostPosted: Wed Nov 08, 2017 7:22 am
by AWK
Running 2 examples together in one VI on LabVIEW and RPi3.
for example write mask and MCP3008 SPI example
I want to make a VI that reads 8 Channel of MCP 3008 with ''Single Ended'' setting plus in that VI I want to control other GPIO pins. for exp: To switch a PIN Low to High for switching ON/OFF a LED.
I have made this program 8 channels data is showing on labview and GPIO pin connected with LED is also Switching ON/OFF with a button.
Problem is running OK but when I stop the program RPI3 get disconnected without giving any errors.
Can some one look at my VI to solve the problem.
I think problem is when I am using 2 ''BCM 2835 library close'' and ''LINX close''.
I have given a link to VI.
[url][https://drive.google.com/file/d/1NOlbygyEZrRoAiLxI3BmljiTd7D2hO7k/view?usp=sharing]
problem.png
blockdiagram
problem.png (80.94 KiB) Viewed 2168 times