LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formula Node code wrong?

Solved!
Go to solution

Thanks for the help R, I learned a lot through this response!

I think this level of accuracy should be good enough for what I am working on right now as the experiment allows some level of uncertainties.

0 Kudos
Message 11 of 13
(800 Views)

Hi atlenbach,

 

The choice to use formula node was actually completely my own call since I'm familiar with MATLAB... but I guess it's probably better to stick to graphical as its more simple as well. I'll go ahead and do that right away and see how that goes.

 

As for the purpose of this project, I am currently working on a generic mass flow controller VI that should be suitable for different kinds of testing applications, this is part of my senior design project but the professor ask if I can further develop this for general laboratory usage. This is something I've developed throughout the summer and am in the debugging phase and (hopefully) the final phase of this iteration. I have also attached the complete VI code in a zip folder, the main code is "flow control main V2," feel free to take a look.

 

And I understand this is very off topic but I also have another problem that I am trying to resolve, I've started another thread for this problem already, but essentially, in the "% calculator", while the subVIs work individually, the "% calculator" VI doesn't seem to be able to call in the value and calculations requested, giving "0" to whatever value is inputted even when there should be an error.

 

Thank you guys so much for the responses! I'm really learning a lot!

0 Kudos
Message 12 of 13
(793 Views)
Solution
Accepted by topic author Caleb963

Hi Caleb,

 

this looks wrong in many ways!

The first one is the missing lvproj file in your ZIP…

The next one is to call "volume flow control" 4 times in (semi-)parallel…

 

You should really start with a sheet of paper and a pen: draw a sketch of what your program is supposed to do and draw an algorithm to reach this goal!

 

the "% calculator" VI doesn't seem to be able to call in the value and calculations requested, giving "0" to whatever value is inputted even when there should be an error.

That's because you call that subVI "value changed" with an event structure inside - and no way to ever return a result from it…

As has been said in that other thread long before you asked the very same question here again!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 13 of 13
(774 Views)