08-08-2022 12:42 PM - edited 08-08-2022 12:47 PM
I know I can use Linx drivers to control arduino, but I was just curious if I could use VISA alone without having to do arduino code integration. All I was trying to do is turn ON and OFF an LED using a boolean (see attached VI) .
The reason I asked this question is because of this youtube video I watched. Click link: https://www.youtube.com/watch?v=pwapnMTEeZg
The guy in the video is able to read thermocouple temperature using VISA alone. So I thought maybe VISA could be used to control a third party device as well.
Or is VISA only used to check communication?
08-08-2022 12:59 PM
If the device has a serial port, parallel port, GPIB or network interface than you can use VISA to communicate with the device. Though I generally will use the TCP VIs when communicating via a network. So, the answer to your question is, it depends on the device. Most devices will have some type of communication interface. Those that don't will usually have digital I/O inputs to control the device. In that case you would need to use some intermediary device such as an Arduino or a NI DI/O device.
08-09-2022 06:28 AM
yes you can! you just need to know what to send and what are you receiving.
know the serial monitor from arduino IDE? if you are sending a packet of data through serial (USB this case) you can use visa to receiva the same data in LabVIEW, without using LINX.
LINX have VISA inside to communicate with arduino, and can make it easier to integrate I/O, but if you can develop your code in arduino (and any other devices) you can also connect using VISA.
08-09-2022 09:17 AM - edited 08-09-2022 09:20 AM
In general there are three ways of using LabVIEW with an Arduino
08-17-2022 09:29 AM
I can easily interface arduino with labview using makerhub. The only problem I have is sending data to the cloud using wifi.
I was doing research and I found out Arduino has a wifi module ESP8266. I'm also doing research to learn more how I can interface Arduino + ESP8266 with LabView without having to programming in Arduino IDE.
Can you, guys, guide me?
Thanks,
GRCK5000
~Your VI has more race conditions than the Olympics and no amount of deeply stacked sequences can fix that~
08-17-2022 11:58 AM
Can you explain how you'd like your system to work a bit more?
As far as I know, you can't run a LabVIEW program on an Arduino by itself- you need a computer hooked up to it. If you have a computer hooked up to it, then just use the computer to upload data to the cloud. I'm not sure where the ESP8266 comes into play.
If you want a standalone Arduino program running with Wifi access, then you're going to have to do that by programming with the Arduino IDE (or another compatible IDE, but the Arduino one is the simplest way to get your feet wet).
Just FYI, the ESP8266 is a full microcontroller, not just a wifi module. I'd recommend just programming the ESP8266 by itself (which you can also do with the Arduino IDE).
The last thing you'll need is a cloud to upload to. Do you have a spot already? If not, I'd recommend the Adafruit MQTT service. IIRC it has a free version you can upload some data to, and MQTT is very easy to use. You could also do something like a cloud-based Google spreadsheet but that's a bit more complicated to set up.
If you truly want a cheap, standalone device running LabVIEW with internet access, look into using the LINX toolkit with a Raspberry Pi. I haven't done it myself but I'm pretty sure it can actually run LabVIEW code standalone, unlike an Arduino.
08-17-2022 12:22 PM - edited 08-17-2022 12:23 PM
@GRCK5000 wrote:
I can easily interface arduino with labview using makerhub. The only problem I have is sending data to the cloud using wifi.
I was doing research and I found out Arduino has a wifi module ESP8266. I'm also doing research to learn more how I can interface Arduino + ESP8266 with LabView without having to programming in Arduino IDE.
Can you, guys, guide me?
Frankly if there is no direct support for your peripheral in LINX then you might as well consider it unsupported.
IMHO: You are going to have to program the Arduino in its native language using the Arduino IDE and then use VISA to communicate with the Arduino from LabVIEW just like any other instrument on a serial port.
08-17-2022 12:27 PM
Hi GRCK,
@GRCK5000 wrote:
I'm also doing research to learn more how I can interface Arduino + ESP8266 with LabView without having to programming in Arduino IDE.
Apparently you already forgot the answer you received last week for basically the same question…
(Why start a new thread?)
08-17-2022 01:28 PM
wow interesting