04-19-2022 07:16 PM
heyyy i got a project with a pressure sensor using labview and arduino and i'am still new with it anyone made a project like that before i just need some code examples
04-20-2022 01:10 AM
Hi ihebz,
@ihebz1 wrote:
heyyy i got a project with a pressure sensor using labview and arduino and i'am still new with it anyone made a project like that before i just need some code examples
Did you search the forum for relevant threads? There are lots of threads about communicating with an Arduino or using LINX…
What have you tried so far?
Where are you stuck?
Which LabVIEW version (year, bitness, license type) do you use?
Do you know how to connect your sensor to your Arduino?
Does that sensor work as expected? Did you verify this using other measurements devices (like DMM)?
04-20-2022 07:32 AM - edited 04-20-2022 07:33 AM
@ihebz1 wrote:
heyyy i got a project with a pressure sensor using labview and arduino and i'am still new with it anyone made a project like that before i just need some code examples
Cut the project in half:
The first task is easily accomplished by searching the part number of the sensor and perusing the Arduino example code that is almost certainly offered there. The Arduino IDE contains example code for sensors and serial communication IIRC.
In its path to the solution, the second task is almost identical, since LabVIEW contains a code example library where you can find well-documented examples for most common tasks. However, for serial communication, I would recommend heading over to LabVIEW Wiki and check out this talk: https://labviewwiki.org/wiki/VIWeek_2020/Proper_way_to_communicate_over_serial
04-20-2022 09:08 AM - edited 04-20-2022 09:14 AM
Honestly the easiest way to achieve this is to:
If you want or must use LINX then there might not be a library for your exact sensor, but most sensors output a voltage proportional to the value of what they are sensing. Use an analog input and the analog read vi in LINX and scale the voltage to pressure. The scaling factor should be in the manual for the sensor.
04-21-2022 06:43 PM
i'am trying to see a pressure of a pump it it is higher or below 95KPA
04-22-2022 03:35 AM
i'am trying to see a pressure of a pump it it is higher or below 95KPA
What is your sensor? The number of the item or the ordering information.