LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating code for low level sensor

Solved!
Go to solution

Hi,

 

I'm trying to read some values from my liquid level sensor. And then when I can get a reading I can use that value in the future.

 

My liquid level sensor is wired through a Arduino Uno. When I used some code in Arduino IDE, it gives back a value between 0 and 1024(depending on water level). So the sensor is working.

I just don't think I'm using Labview correctly.

 

I have tried both the arduino software and the Linx software(as you can see below in my attachments). But either seems to give me out any values. 

Any idea where my mistakes are?? Any help would be hugely appreciated. 

Thanks.

 

Download All
0 Kudos
Message 1 of 3
(752 Views)
Solution
Accepted by topic author Bandit1234

Hi Bandit,

 


@Bandit1234 wrote:

When I used some code in Arduino IDE, it gives back a value between 0 and 1024(depending on water level).


Why don't you use that Arduino code and just add some serial communication to it? Send the readings using the virtual serial port of the Arduino!

On your computer you don't need LIFA or LINX, all you need is VISA to read the data from serial port…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(739 Views)
Solution
Accepted by topic author Bandit1234

LIFA has been discontinued, stick to LINX.

 

Did you send the LINX firmware to the board? In LabVIEW, to to Tools -> Makerhub -> LINX -> Load Board Firmware

 

Once the firmware is loaded, verify that the LINX example program works.

-----------------------------------------------------------------

If you can not measure it, you can not improve it.
- Lord Kelvin
0 Kudos
Message 3 of 3
(689 Views)