LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[LabVIEW Tutorials] Programming an Arduino using LINX


@Peterpark99 wrote:

Hi, Sin

Have you ever used HC-05 (bluetooth Module) connected with Arduino Uno to communicate with Labview ? I'm having a trouble with Linx when i try to Blink the LED (sorry about my bad English). It keep show up error 5003, error 5001... I searched on google everywhere but still not found a proper solution. Can you help me out with this ? 
Appreciate in advance.


Yes, I have used these devices before and there's a couple things that you must do:

 

You need to connect HC-05 to your computer using a USB to Serial adaptor and then configure the HC-05 using a terminal program like Tera-term and the "AT" commands

  1. Configure Master/ Slave mode
  2. Configure communication settings (baud, bits, parity) 
  3. Configure the paring 

Here's a link to the HC-05 Wiki

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 61 of 72
(1,865 Views)

I load firmware from Linx to Arduino Uno by USB cable, then remove USB and connect my HC-06 to Arduino Uno. I paired HC-06 with my PC using a Bluetooth USB CSR 4.0. Then I run a sample Linx - Blink, I choose COM5. But in the end the Error still there. Please help me!

Peterpark99_4-1621500963769.png

 

Peterpark99_1-1621500393837.pngPeterpark99_2-1621500843397.png

Peterpark99_3-1621500940299.png

 

 

 

 

 

0 Kudos
Message 62 of 72
(1,819 Views)

I use HC-06 now

0 Kudos
Message 63 of 72
(1,818 Views)

Peterpark99_0-1621678797184.png

Can someone help me, how to fix this, I chased it down and stuck here.

0 Kudos
Message 64 of 72
(1,766 Views)

Hi Sin!

 

Thank you for these videos. I saw someone else in the forum share a similar issue, but I am trying to control a bipolar Nema 23 stepper with a StepperOnline driver in the same fashion. I recognize the logic in your video, but I am having trouble translating it into my system. Any chance you could provide some guidance?

 

Thanks in advance!

0 Kudos
Message 65 of 72
(1,637 Views)

Hi Sin.Your videos are very useful.I have a problem and i wanna share with you.I want to connect my Esp32 to labview as completely you did for Esp8266.I have all modify files and i arrange them as you did and i execute an example with arduino but i get an error like that: 

Error.png

Is there anything you suggest that I can try.

 

Best regards,
Mehmet.

0 Kudos
Message 66 of 72
(1,372 Views)

Hello!

 

I have one question about this sonar project. I understand the LabVIEW part of, but the arduino doesnt need also to be programmed in arduino ide? I checked your github and I didn't find anything about arduino ide, only the VIs.

 

Thanks!

0 Kudos
Message 67 of 72
(1,261 Views)

Linx/Hobbyist comes with already built firmware for the arduino that works with the labview API. Once you go through the device setup from the tools menu entry you'll have an arduino that works with the toolkit.

~ Self-professed LabVIEW wizard ~
Helping pave the path to long-term living and thriving in space.
0 Kudos
Message 68 of 72
(1,249 Views)

It depends what you want to do. Yes Linx comes with a firmware for quite a few Arduino boards. This firmware remotes the Arduino hardware to make it available over the serial port or TCP/IP through the Linx interface. Basically every single input you want to read or output you want to write goest through this route from your host program on the PC:

 

PC->LabVIEW->Linx API->serial or TCP/IP->Linx server in the Arduino firmware->Arduino hardware

 

So it works but of course is not very fast. Depending on what you want to do this can be enough. If not, Linx also allows to implement custom commands but that requires modification of the Linx firmware (and the according C++ code) to implement those custom commands on the Arduino side. It's very doable but not your average starter project to learn to use Arduino.

Rolf Kalbermatter
My Blog
0 Kudos
Message 69 of 72
(1,245 Views)

Hi

i watched your demo video.

I downloaded the sample VI from the following location and executed the VI.

 

https://github.com/SINConsulting/LabVIEW-Basics/tree/master/LabVIEW%20Basics%20Examples/LabvIEW%20BA...

 

When I run the VI, the motor doesn't rotate as fast as in the demo video.

 

I will attach the video of that time.

+5V power is supplied externally.

My Labview is Labview2021.

I changed the step speed with the knob. But the rotation speed does not change.

i don't know what to do.

Could you give me some advice for improving the rotation speed?

BestRegards

 

 

0 Kudos
Message 70 of 72
(1,183 Views)