07-02-2020 07:56 AM
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?
07-02-2020 08:03 AM
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.
07-02-2020 08:18 AM
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.. 🙂
07-02-2020 08:27 AM - edited 07-02-2020 08:29 AM
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
07-02-2020 08:48 AM
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. 🙂
07-02-2020 08:56 AM
If you only need the current, then just use the current as shown: