LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Raspberry PI connected with usb to laptop with Labview

Solved!
Go to solution

Hello,

 

Please allow me to introduce myself: My name is Bob and I just graduated from the bachelor of applied sciences (physics) in the Netherlands. During the education I followed a course for programming in Labview. However, the course was not given very properly so I want to start from scratch now. (my programming skills are very poor).

 

My goal is to learn the basics of programming in Labview. I want to measure for example a temperature with a sensor and read this in Labview. I need a DAQ system for this. I have a Raspberry PI in my possession and I was wondering if I could use this to read in the temperature by the USB port of my laptop using the raspberry PI. Is this possible? And do I need to run some sort of program on the Raspberry PI? Or could I better use an other device (an Arduino maybe?).

 

I hope someone could help me to get me started with Labview. I'm looking forward to learn to work with Labview and to start some projects.

 

Thanks in advance,

 

Bob

 

 

 

0 Kudos
Message 1 of 7
(7,561 Views)

You are in luck!  There is abundant material on the Web for both topics.  Google "LabVIEW Tutorials", and "LabVIEW Raspberry Pi Interface" -- there are even separate Discussion Forums for "LabVIEW Hacking" ...

 

Bob Schor

Message 2 of 7
(7,554 Views)

Thank you for your reply.

 

Obviously I have already googled for an answer. However, I didn't get any further. All I can find is to send a script, written in Labview, to a Raspberry PI and then run this script. What I want is to real time measure the temperature for instance, send this to the PC by the Raspberry PI and display this in Labview on the PC. I can't figure out how to get this working with the Raspberry. I can't imagine that this is a diffcult task (so there should indeed be found more information on the Web) but since I'm new to this, I can't figure it out. I'm getting confused with all the new technical terms. 

 

Could you send me a link of a tutorial you found? That way I can maybe figure out what I'm exactly searching for.

 

Thanks in advance

 

0 Kudos
Message 3 of 7
(7,507 Views)
Solution
Accepted by topic author Codbash
How comfortable are you with writing code on the raspberry pi? This is where you have to write the data acquisition code and the code to send it over the usb port as RS232 serial. The LabVIEW program would just receive this and that's a very simple program. There is a toolkit called Linx that does all of this for the arduino.

https://www.labviewmakerhub.com/doku.php?id=libraries:linx:start

Message 4 of 7
(7,420 Views)
Solution
Accepted by topic author Codbash

Most temperature sensors output an analog voltage which can be read by a suitable instrument and from there to the computer. Unfortunately, the Raspberry Pi doesn't have analog voltage inputs, so by itself it won't do the job. You have a few options:

 

1) Digital temperature sensor. A sensor which, instead of outputing a voltage, can be queried over a bus such as I2C or SPI; the Pi can talk directly to such a sensor

2) Analog temperature sensor plus digitizer. Temperature sensor outputs a voltage, then a stand-alone ADC chip converts that to digital, and sends the information to the Pi. There's a near-infinite number of digitizer chips available; if you're starting with a Pi, take a look at http://www.adafruit.com/products/1085 , which is a nice ADC chip plus some Python code for interfacing it with the Pi. 

3) Switch from the Pi to a microcontroller like an Arduino (or compatible device like a Teensy). These have voltage inputs built in, so they can talk directly to analog sensors; you can interface with LabView using the LINX library.

Message 5 of 7
(7,393 Views)
Solution
Accepted by topic author Codbash

Do you know LabVIEW well?  Do you know Raspberry Pi programming well?  If the answer to either is "no", then you need to go learn which ever (or both) you need.  Here is one specific link to a LabVIEW/Pi project, with code ...  Maybe the Pi community can help, too.

 

BS

Message 6 of 7
(7,364 Views)

Thank you for the replies. I really appreciate it.

 

My code writing skills are very poor at the moment. Since programming the Raspberry PI is too difficult for me at this time, I have just purchased an Arduino. I hope to learn the basics of Labview using the Arduino and maybe in the future I will learn to work with the Raspberry PI! 

0 Kudos
Message 7 of 7
(7,237 Views)