10-30-2023 06:26 AM - edited 10-30-2023 06:31 AM
@kozuka32 wrote:
As shown in the attached file, only the second line is calculated. Could you also teach me how to modify the vi program?
my biggest issue with the formula node is, that you can initialize an array from within the formula node, but you can't use variables to do that, you need numeric constants to represnt the number of rows or columns. try it yourself. float Y[i][j]; will break your .vi
also the formula node function sizeOfDim will break the .vi, if used as a replacement for i or j
that is why I have to initialize arrays outside the formula node- if somebody knows an alternative feel free to post your konwledge.
in response to your original post, this would be my formula node alternative:
If I where you, try to avoid the formula nodes if possible - it can be used for quick prototyping, but in deployed code, you want to get rid of it especially as subvis with formula nodes can not be inlined.
10-30-2023 07:42 AM
@alexderjuengere wrote:
@kozuka32 wrote:
As shown in the attached file, only the second line is calculated. Could you also teach me how to modify the vi program?
my biggest issue with the formula node is, that you can initialize an array from within the formula node, but you can't use variables to do that, you need numeric constants to represnt the number of rows or columns. try it yourself. float Y[i][j]; will break your .vi
also the formula node function sizeOfDim will break the .vi, if used as a replacement for i or j
that is why I have to initialize arrays outside the formula node- if somebody knows an alternative feel free to post your konwledge.
in response to your original post, this would be my formula node alternative:
If I where you, try to avoid the formula nodes if possible - it can be used for quick prototyping, but in deployed code, you want to get rid of it especially as subvis with formula nodes can not be inlined.
And if recent benchmarking is accurate, it could be orders of magnitude slower than native code.
10-30-2023 06:46 PM
Thank you for your detailed explanation. I would like to use it as a reference and try it out right away. I'm sure there are some things I don't understand, so please feel free to let me know. thank you.
11-06-2023 04:55 AM
@billko wrote:
And if recent benchmarking is accurate, it [formula nodes] could be orders of magnitude slower than native code.
yes, I can confirm that