09-15-2024 10:00 AM
Hello, Im fairly new on using LabView.
I have tried without using the 2D array input and it works fine.I would like to change the input of ' busdata' through labview front panel.
Whenever I give 2D array input, it gives an error message.
Please help and thank you in advance.
Without 2darray input.
With 2d array input.
Solved! Go to Solution.
09-15-2024 11:54 AM - edited 09-15-2024 11:56 AM
Nobody here will analyze pictures of code (overlapping objects, truncated script code, etc).
Your pictures show Matlab scripts (... which is quite different to Mathscript, which is no longer recommended or actively developed.)
What does the program do? It might be trivial to implement the same functionality in pure G.
09-15-2024 08:48 PM
What i did was importing the matlab code onto the matscript node. I just want the input to be user-defined using a 2D arrays which in this case is the ‘busdata, of the code.
My codes ultimately gives a 2d array output after calculating the provided inputs using newton-raphson methods.
09-15-2024 11:39 PM
There is no such thing as a "matscript node". You have a "Matlab script node".
Newton-raphson is easy to implement in plain G.
As said before, we cannot debug images.
09-16-2024 01:35 AM
Correct me if Im wrong, so my "matlab script node" can be implemented by using the "plain G". What do you mean by 'plain G' is it a toolkit or methods which can be applied in this case?
I have attached my sample work here.
09-16-2024 03:23 AM
@Rusyaidi_arif_cute wrote:
Correct me if Im wrong, so my "matlab script node" can be implemented by using the "plain G". What do you mean by 'plain G' is it a toolkit or methods which can be applied in this case?
I have attached my sample work here.
G is the name of the LabVIEW native language, thus standard block diagram.
09-16-2024 09:43 AM - edited 09-16-2024 09:50 AM
@Rusyaidi_arif_cute wrote:
Correct me if Im wrong, so my "matlab script node" can be implemented by using the "plain G". What do you mean by 'plain G' is it a toolkit or methods which can be applied in this case?
I have attached my sample work here.
Two things:
If you could explain the code you are trying to implement, I might be able to help with graphical code. Can't be too hard. 😄
09-16-2024 10:22 PM
I will make sure to attach version 2020 or below on my next encounter. I believe I need to learn the Basic G programming and try my best to convert matlab script onto graphical codes from your advice. Will there be any other issues, I will come back to this forum.Thank you for your response and helpful insights.