07-13-2015 04:21 AM - edited 07-13-2015 04:33 AM
Hello! I'm trying to transmit signal of current sensor acs712 reading from Arduino Yun to LabView, but I'm unable to establish the communication through USB port.. I've followed directly from this tutorial: https://www.youtube.com/watch?v=OWCsaR-oOr8 but I don't get any signals or reading..
Do I need some arduino codes before I can establish the connection ?
Really appreciate if you guys can help/guide me step by step! Thank you!
07-13-2015 05:01 AM
Hi,
I cant watch the tutorial(no youtube with our work servers).
But you definetly need code on your Arduino.
I cant tell you what exactly. But with no code the Arduino doas nothing with the incomming signals.
I recomment to take a look at the examples on Sketch(software to write the code and flash the Arduino).
Maybe there ist a fitting one or you can adapt on an example.
Good luck
07-13-2015 08:32 AM - edited 07-13-2015 08:33 AM
There are a couple of prefab libraries for communication between Arduinos and LabView, LIFA and LINX. LIFA is deprecated at this point, so you should use LINX. In both cases, the library consists of a sketch which runs on the Arduino and some LabView code. The Arduino side of things is a loop that listens for commands/queries from LabView and returns responses.
You do have to interface that current sensor with the Arduino. Since its output is just an analog voltage, that's pretty straightforward; just run the output into one of the analog inputs of the Arduino and use the Analog Voltage Read VI in LINX.
07-14-2015 12:54 AM - edited 07-14-2015 01:01 AM
Thanks for the replies! 🙂
I've just tried the LINX, but I can't get it working at the moment..Is it compatible? Do I need an arduino code for my arduino Yun?
I have attached the image for the labview.
I was also told that the Visa from data communication is able to transmit signal from arduino to labview?
Thank you!
07-14-2015 05:22 AM
LINX comes in two parts; a set of LabView Vis and an Arduino sketch. You need to install the latter on your device to get the whole system to work.
See this: https://www.labviewmakerhub.com/doku.php?id=learn:tutorials:libraries:linx:getting_started
You can also have LINX generate the Arduino sketchs and then manually upload them to your board from within the Arudino IDE.