LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Proyect LabVIEW

Hi.

I just started working on my LabVIEW program, but I have no idea how to connect Arduino with LabVIEW.

Here’s what I need to do:
First, I’ll select a drink. Then, the conveyor belt will start moving until it reaches an infrared sensor, which will trigger the filling process to pour the liquid into the cup. After that, the cup will move to the next station, and the same process will repeat three times.

But honestly, I have no idea how to make this work. Could anyone help me out or share a sample code as a reference?

Download All
0 Kudos
Message 1 of 8
(424 Views)

Go to your Instructor and ask for help.  Your Post has a label "LabVIEW 2024 Q4", yet the code you attached uses LabVIEW 2025, so I cannot open it (I'm using LabVIEW 2024).  The "image" you attached suggests you may be using a State Machine design (not a bad choice) -- do you understand how a While loop behaves, what a Shift Register does, the function of a Case Statement, etc.?  [If not, why didn't you ask questions in class?  Did you attend the class?  Can you ask your classmates for help?]

 

You do not need to connect an Arduino to LabVIEW for it to work.

 

Bob Schor 

0 Kudos
Message 2 of 8
(386 Views)

As a first step I would leave the arduino out of it and implement a simple simulation of the process. Substituting the external hardware later would be trivial. LabVIEW code does not really care if an input value is from a user control on the front panel or from a sensor, or if an value goes to an indicator or signal output.

 

There are plenty of learning resources listed at the top of the forum, so learn the basics first. Also look at example code and design templates.

 

You need to learn how to swim before jumping into the deep end and be familiar with the concept of dataflow. It almost seems that you are familiar with text based programming where you define the "variables". In LabVIEW, the "wire is the variable", while controls and indicators just communicate with the user interface

 

As a very fist step, learn the difference between a control (a data source controlled by the user!) and an indicator (a data sink displaying wire values!). Most (all?) of your orange controls should probably be indicators and they belong wired into the dataflow, There is no need for any local variables. (They are needed in the rare cases where you need to write to a control (fighting the user input if not careful) and similar.)

0 Kudos
Message 3 of 8
(380 Views)

men i study university and i need arduino for my proyect.
Maybe I should’ve been more specific, but I need to use a Case Structure to create different stages for an animation.

 

0 Kudos
Message 4 of 8
(358 Views)

Hi everyone,

I just started working on my LabVIEW program, but I have no idea how to connect Arduino with LabVIEW.

Here’s what I need to do:
First, I’ll select a drink. Then, the conveyor belt will start moving until it reaches an infrared sensor, which will trigger the filling process to pour the liquid into the cup. After that, the cup will move to the next station, and the same process will repeat three times.

But honestly, I have no idea how to make this work. Could anyone help me out or share a sample code as a reference?

(Yes i know how to use case structure but i dont know how to make it do different things, so to speak, using a Case Structure. For example, in my case, I need to create the stop and filling processes for my conveyor belt.

 

Hola a todos un cordial saludo.
Actualmente me encuentro haciendo un proyecto para mi universidad en donde estoy haciendo una dispensadora de bebidas alcohólicas, la situación es que me atore en como puedo yo hacer mi simulación por medio de case structure y aparte de esto necesito arduino para conectar mi maquina. Si tuvieran algún código de referencia o alguna de explicación de como hacerlo también es bienvenida cualquier ayuda.

Download All
0 Kudos
Message 5 of 8
(347 Views)

@Kerubin2k wrote:

Maybe I should’ve been more specific, but I need to use a Case Structure to create different stages for an animation.


If you study at a university, you should not be in evaluation mode (as seen in the picture), if you are using your personal computer, you can probably use the free LabVIEW community edition, else your university should have an academic license.

 

You already have a case structure, right? Can you explain what you mean by "animation"? I assume your conveyor belt, cup, and sensor are all physical. Do you want to duplicate that in graphics on the front panel?

 

(sorry, I cannot currently look at your VI unless you save it in 2020 version before attaching)

0 Kudos
Message 6 of 8
(347 Views)
Spoiler

t I’m using my personal computer because the university hasn’t provided the software.

And when I mention “animation,” I mean something like the next image — basically, I want to replicate those graphics on the front panel.

The main challenge I’m facing is using the Case Structure to create the different stages of the process.

0 Kudos
Message 7 of 8
(341 Views)

Please don't put responses inside spoiler tags!!!

 

So you have all these indicators and they need to update according to the "state" (hint!) of the process, Simply place them after the case structure and feed suitable values from inside each case.

0 Kudos
Message 8 of 8
(330 Views)