LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Mathscript Output Problems

Hello NI Community,

 

I have some trouble figuring out why the Output of my Mathscript Node in Labview doesn't work. I wanted to creat a velocity profile for my robot and the velocity calculated in the Mathnode can't be calculated. I tried adjusting the Output Data Type and everthing, but i can't get it to give me an output. Nevertheless, if i probe the mathscript node i see that the velocity gets calculated for each if statement.

 

Maybe I made a mistake in the script so here is it:

Capture.PNG

 

It would be awesome if someone could help me out.

 

By the way, i am running Labview 15.0.

 

Thank you,

Dominik Pflumm

0 Kudos
Message 1 of 3
(5,500 Views)

What do you mean the output does not work? Is this VI broken or the output value is not correct?

 

By the way, you set change to true in one branch of if-else but not the others.

0 Kudos
Message 2 of 3
(5,494 Views)

Thank you. You were right, i forgot to initialize the change = false in the other ifelse statement.

 

Thank you so much!

 

Dominik Pflumm

 

THREAT CLOSED!

0 Kudos
Message 3 of 3
(5,485 Views)