02-29-2024 02:07 AM
So Based on my input in mathscript, I am finally calculating the Velocity.
There are some quaries related to my Labview codes are -
1. Why my input to Inverse Kinematics are incompatible as it is showing warning.
2. Why my every values not updated i.e all output are 1D array and it should store all the calculated values.
3. How to configure the loop rate and calculation rate together using Mathscript.
02-29-2024 02:48 AM
Hi rishab,
@rishab_kr wrote:
So Based on my input in mathscript, I am finally calculating the Velocity.
There are some quaries related to my Labview codes are -
1. Why my input to Inverse Kinematics are incompatible as it is showing warning.
2. Why my every values not updated i.e all output are 1D array and it should store all the calculated values.
3. How to configure the loop rate and calculation rate together using Mathscript.
02-29-2024 03:21 AM - edited 02-29-2024 03:22 AM
1. Basically I am new to graphical programming and I have implemented code in MATLAB, so I started with Mathscript because of text based coding.
2. Okay, I need to understand the purpose of using it.
3. So, the idea was to itrate the loop at a particular time instant till the desired time (T).
4. I don't understand this actually, what I saw while running the code is the loop exectuion become to fast and the calculation was not happening at that particular rate.
5. I have attached the global varibles in this reply.
02-29-2024 06:25 AM - edited 02-29-2024 06:38 AM
Hi rishab,
@rishab_kr wrote:
1. Basically I am new to graphical programming and I have implemented code in MATLAB, so I started with Mathscript because of text based coding.
2. Okay, I need to understand the purpose of using it.
3. So, the idea was to itrate the loop at a particular time instant till the desired time (T).
4. I don't understand this actually, what I saw while running the code is the loop exectuion become to fast and the calculation was not happening at that particular rate.
5. I have attached the global varibles in this reply.
There is a chapter on "DATAFLOW" in the LabVIEW help, please read it as often as you need to learn the mechanism implied by the simple words THINK DATAFLOW...
(LabVIEW behaves different than most/all(?) text-based programming languages due to THINK DATAFLOW!)
02-29-2024 06:54 AM - edited 02-29-2024 06:58 AM
Hi rishab,
example for LabVIEW code:
In LabVIEW you can use wire labels to name the wires, no need for "variables" like w or dt.
There are predefined constants like 2pi or pi/2, again no need for variables like a.
And there is CompoundArithmetic, that simplifies add/subtract or multiply/divide operations!
I don't have a MathScript license, so I cannot change your MathScript nodes (no editing of the whole node, not even resizing!). I guess there is some hidden code after the visible lines: it is always BAD (in any programming language) to hide code!