10-07-2017 06:24 AM
Hello guys. I'm new to LabVIEW and I have an issue with that thing.
I have made a simple program which communicate with Arduino. The only feature is to switch on or switch off an LED diode using a button. Program works, but it works only one time. When I stop my program and turn it back on, there is no reaction. Pressing the switch in VI doesn't change the state of diode. Every time I have to disconnect my Arduino from the computer and connect it back to make it work again. Do you know how to solve that issue?
10-10-2017 10:31 AM - edited 10-10-2017 10:33 AM
LIFA has long since been deprecated and replaced with LINX
You can find LINX and get support for it on the LabVIEW Maker Hub
10-15-2017 01:42 PM
Thank you 😉
10-16-2017 12:36 PM - edited 10-16-2017 12:37 PM
@marek.matw wrote:
Program works, but it works only one time. When I stop my program and turn it back on, there is no reaction.
When you say "stop my program" I truly hope you don't mean pressing the Stop button on the tool bar (next to the run continuous and pause). This stop button is basically a task kill, and doesn't finish the clean up processes like closing references, and releasing hardware references. I suspect this is your problem and you should avoid using this stop button at all costs. It is a last resort. The famous quote is, something like "Using the stop button is like crashing your car into a tree when you want to stop it, it might stop but the condition it is in afterwards will likely not be very good." or something. Make a button on your UI that stops your program and runs clean up. You can also use an event structure to capture the close window, and have that properly stop your code.
And if you have some time you should check out some free LabVIEW training.
-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)
Learn NI Training Resource Videos
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord