LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using two Daqassisnt. One for Voltage measure and one for Current.

I am very new to LabView. I know basic about Labview but doesn't have the full experience.

Now My problem is I want to measure the usage of power for the whole day. For this, I added tow Daq assistant as you can see. One measuring current from Dmm and another for voltage. Now I want to calculate the current average value.  I don't know-how. My device gets turn off for 10 sec and 10 sec On. Now can anyone help me how to get the average value of the current? 
Let suppose I have battery 2286mAh and my device is using 10mA. How would calculate the value for 1hour for a day?

Can anyone help me, please?

0 Kudos
Message 1 of 6
(2,407 Views)

You can store the data in an Array or a File and then do an average.

 

Let's say you take a measurement every second in 1 hour you will have 3600 readings just add every value and then divide it by the number of readings you have made.

=======
My Channel: https://www.youtube.com/@LV_Lab

0 Kudos
Message 2 of 6
(2,403 Views)

Good answer. but do you know how can I save data in the array can you please show in the example. It will be much appreciated.. 🙂

0 Kudos
Message 3 of 6
(2,394 Views)

You can use any of these methods.

I would go with the Last one.

 

In the first Image what you see is a For Loop.

In the second Image you can use Insert Into Array.

In the third Image you use build Array and then Write Delimited Spreadsheet where Append to File is True and creates a CSV file

LabVIEW_I7Zms7oGZI.png

LabVIEW_OQ4mDlpvXZ.png

LabVIEW_8TsIB19M5M.png

=======
My Channel: https://www.youtube.com/@LV_Lab

0 Kudos
Message 4 of 6
(2,388 Views)

Do I need to remove Daq Assistant or should I connect it with the current line coming fro  Daq?

Please can you bit specify?. I measuring by DMM. 🙂 

0 Kudos
Message 5 of 6
(2,373 Views)

If you only need the current, then just use the current as shown:

AldhairGarza_0-1593698182159.png

 

=======
My Channel: https://www.youtube.com/@LV_Lab

0 Kudos
Message 6 of 6
(2,367 Views)