10-09-2017 02:34 PM
Please Help.
I am trying to create a fancurve model for an HVAC system in LabVIEW. The trouble I am having is initializing my array to take in 17 iterations, as well as displaying the output into an array. I am not sure if using the formula node is the best option for my code but everything seems to work except the array.
Thank you
10-09-2017 02:50 PM
Hi Austin, please upload for an older version (say LV 2012) using the File >> Save for previous version... buttons.
10-09-2017 03:14 PM
here is version 12
10-09-2017 03:38 PM
Let me start by saying that I don't think I've used a single formula node in any of my programs, but I think I see your confusion of arrays.
10-09-2017 06:17 PM
Fairly close and some fundamental misunderstanding on formula node. I've tweaked it some, you created 2D arrays and sent in dummy variables which isn't needed.
/Y
10-09-2017 06:28 PM
@Yamaeda wrote:
Fairly close and some fundamental misunderstanding on formula node. I've tweaked it some, you created 2D arrays and sent in dummy variables which isn't needed.
Why not just autoindex on the input arrays with the FOR loop? Then you don't need the i input to the formula node.
10-10-2017 02:06 PM
But the code needs to run for multiple values of VFR ( from 0 to 4000 in increments of 250). So how wouldn't I use VFR in an array? I created density as an array because the code did not like me using one value for an array.
10-10-2017 02:27 PM
It would still be an array, but you pick off each element by passing it through an auto-index terminal. You are currently indexing inside your formula node with "[i]" notation. You could also do it with "index array" in LabVIEW. Or you can use the auto-index terminal. The following 3 pieces of code give you the same result, but the auto-index terminal makes it much neater.
10-10-2017 02:57 PM
Insert image wasn't working earlier, here is the snippet:
10-10-2017 03:03 PM
I understand the auto-indexing now. Thank you. But I am still having trouble generating the VFR array from 0-4000 in increments of 250, to generate and then graph an output of DP(delta pressure). The Code did not break on me, but it's not generating an output. I have attached my block diagram and front panel.