LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Relative Humidity

Hello everyone, so i have a program that i have created, its based on measuring relative humidity using a psychrometer which has a wet and dry bulb, if possible my formulars can be corrected in the formular node as well as a feature that could be integrated into my labview program that conducts calculations, will be displayed as a loading feature that say shows a calculation being performed.

0 Kudos
Message 1 of 4
(228 Views)

Hi Shezbabe,

 


@Shezbabe7 wrote:

if possible my formulars can be corrected in the formular node


You want us to do your job of debugging?

Why is there no comment in your VI block diagram that shows the "correct formula"? Do you know you can even place images (like screenshots) in the block diagram?

 


@Shezbabe7 wrote:

as well as a feature that could be integrated into my labview program that conducts calculations, will be displayed as a loading feature that say shows a calculation being performed.


You want us to even improve your VI, based on a very generic description missing a lot of details?

 

Do you know there is a forum dedicated to offer LabVIEW jobs? (You should include some numbers on the fee to be paid be you.)

 

On your VI:

  • Do you really want to append an ever-growing array to your spreadsheet file? This will result in a fast growing filesize!
  • Do you really want to mix numeric and string data in your spreadsheet? (Placing "Value above expectation" between numeric data doesn't sound very useful to me, when I expect some data analysis later on…)
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(202 Views)

In what way do you want to change the formula? (different formula? same formula different terms?, etc.). Don't use a formula node!

 

What's the point of graphing the raw data and not graph the %humidity? If you would keep a 2D array in the shift register, you can just append a new row of data. 50% less code!

 

Your code is overly complicated and has a lot of problems, for example:

 

  • You cannot guarantee that the headers are written before the loop starts because there is no data dependency. Race condition!
  • If the path is left empty, you'll get two dialogs (one for the header and one for the data) and you would need to be careful to pick the same filename for both.
  • An empty array for "title" does not seem like a useful default.
  • labels like "waveform graph" and "appended array" are too generic to be useful.
  • I doubt you need any dynamic data and express VIs.
  • Overlapping structures and wires flowing in all direction makes debugging difficult and there are many more places for bugs to hide.
  • Why not use a chart instead of ever-growing arrays?
  • You can use an array of two thermometers, again 50% less code. If using a chart, you can even have the thermometers as digital display.
  • There is no reason to maximize the front panel to the screen.
  • You are appending duplicate data to the file, for example after 100 save operations, the first points will be there 100 times. You only need to append one row, not the ever-growing pink array.
  • If you only display the humidity as integer, why are the wires orange?

 

 

0 Kudos
Message 3 of 4
(147 Views)

If you want to be able to adjust the two terms of the formula, just make them controls.

 

Here is identical code without the use of the formula node.

 

altenbach_0-1758724838129.png

 

Message 4 of 4
(141 Views)