07-29-2022 08:00 PM
Hi guys,
this is my first post here and i try to be as attentive to the guiding rules, but please forgive if it's not the case.
So following problem: I need to develop a program, that enables the Read Out of certain data/parameters (Voltage, Current, Temperature, eventually other Data signals) via I2C. It would be nice to plot the signals in real time and additionally, it should be possible to log the data and store them in an Excel (or similar). So far, you could say it ain't that complicated but I'm a real beginner in Labview ... 😕 . So i need some guiding tips, which modules/elements in labview are useful for this use case.
My questions:
- What kind of modules should/can i use?
- What type of loops/structures are useful?
- How can i implement the I2C interface?
- Do you have an example program, that does something similar?
As you see, I'm really at the beginning and up until now i have the impression to have no idea how to navigate through the endless possible ways to get there.
Sorry for any inconvenience this could cause you. I would really appreciate your help, thanks in advance!
07-29-2022 08:15 PM
Are you a student or a professional? how much is your budget?
The easiest way would be to get a USB-8452 device and connect your I2C devices to this instrument. Once you've done that, next is to understand how to use the USB-8452 by studying the bunch of examples available, next look at your sensor datasheet to know what address to write/read and then finally develop your automation to do all the sensor read in a single go.
07-29-2022 08:45 PM
You'll be ready (perhaps) for I²C in six months (or a year) if you really are diligent about learning LabVIEW. First, you need to master the basics, including learning to write "graphical" programs that have a 2D structure, use Data Flow principles, and (accordingly) give you access to "natural parallel processing". LabVIEW is also the rare programming language that embraces "time" and a basic language element.
Learn DAQmx, LabVIEW's API for dealing with hardware. Learn how to use (relatively-inexpensive) NI multi-function I/O hardware (some of which are specifically designed for the Academic market, i.e. undergraduate and graduate students). If possible, find a LabVIEW guru on campus and try to spend some quality time learning from her (or him).
Bob Schor
07-30-2022 02:25 PM - edited 07-30-2022 02:28 PM
@santo_13 wrote:
Are you a student or a professional? how much is your budget?
The easiest way would be to get a USB-8452 device and connect your I2C devices to this instrument. Once you've done that, next is to understand how to use the USB-8452 by studying the bunch of examples available, next look at your sensor datasheet to know what address to write/read and then finally develop your automation to do all the sensor read in a single go.
I might also toss out there that an Arduino Uno makes a great low cost I2C interface.
There's plenty of native Arduino code out there for most popular I2C peripherals that can be modified to work with LabVIEW to send data back and forth using VISA serial.