06-28-2022 01:11 AM
Hi there!
I am fairly new to LabView and I am tasked to use LabView together with myRIO.
With LabView, I need to acquire the voltage, current and temperature of myRIO.
I am stuck and unable to move forward. Any help is apreciated!
Regards!
06-28-2022 01:33 AM
Hi Niz,
@Niz97 wrote:
I am fairly new to LabView and I am tasked to use LabView together with myRIO.
Then I (strongly) suggest to take a look at those Training resources offered at the top of the LabVIEW board!
@Niz97 wrote:
I am stuck and unable to move forward. Any help is apreciated!
Where are you stuck?
What have you tried?
Which example project did you try to use and understand?
Which LabVIEW version do you use?
06-28-2022 01:53 AM
Where are you stuck?
What have you tried?
Which example project did you try to use and understand?
I used the sample project under myRIO to try and understand the code. I only did a simple vi of acquiring temperature using LM35. But it is different from what I am tasked to do.
Which LabVIEW version do you use?
I am using LabView 2019
06-28-2022 02:21 AM
Hi Niz,
@Niz97 wrote:
I used the sample project under myRIO to try and understand the code.
Did you understand the code?
Does that example code run as expected (and flawless)?
@Niz97 wrote:
I only did a simple vi of acquiring temperature using LM35. But it is different from what I am tasked to do.
Did that simple VI run as expected?
In which way is it different to what you are tasked to?
Generic suggestion:
We can help you much better once you ask specific questions on specific problems.
And we can help you much better with your code once you attach your code. (Keep in mind: we cannot debug/edit/run images of code with LabVIEW.)
06-28-2022 02:33 AM
Right now I do not have any code as I am not too sure where to start.
What I want to know is it possible to acquire the voltage, current and power of myRIO?
If it is possible, then I am required to display the temperature, current and power on a LCD Display.
For now, I only did a vi for the LCD Display. In the vi, I use random number to act as the voltage, current and power. Once I know how to code and acquire the data (voltage, current and power), I can replace the random number with the code of data.
06-28-2022 03:16 AM - edited 06-28-2022 03:16 AM
Hi Niz,
@Niz97 wrote:
Right now I do not have any code as I am not too sure where to start.
What I want to know is it possible to acquire the voltage, current and power of myRIO?
In your 2nd message you attached an image showing how to measure a voltage.
So I guess you already know how to measure voltages…
To measure currents you just need to apply Ohm's law and a shunt resistor (to convert current into voltage signal).
Which "power" do you want to measure? (In your first message you were talking about temperature…)
Is the measurement simple enough to calculate the power by applying simple math like P=U*I?
06-28-2022 02:59 PM
@Niz97 wrote:
I am fairly new to LabView and I am tasked to use LabView together with myRIO.
I'm a little surprised that as someone "fairly new to LabVIEW", you are being asked to use LabVIEW (note the correct capitalization of LabVIEW -- it is an acronym for Laboratory Virtual Instrument Engineering Workbench) together with myRIO. The myRIO runs NI Linux Real Time OS, and supports a particular subset of LabVIEW designed for Real Time Data Acquisition and Control tasks -- I wouldn't expect students to be starting with the myRIO without a pretty solid exposure to "ordinary" LabVIEW.
In order to see what you are doing, and where you might be "stuck", it would help us a lot to be able to look at the LabVIEW Project you are trying to run. We need to see the entire Project -- the best way to accomplish this is to compress the Project Folder (with all the VIs and TypeDefs inside the Folder) and attach the resulting .zip file.
When you say "the voltage, current, and temperature of myRIO", what do you mean? The myRIO has a number of A/D inputs, so you can certainly measure voltage, but what voltage? How are you measuring current? How are you measuring temperature?
Bob Schor