LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MINUSING 2 GRAPHS

Solved!
Go to solution

Hi all !!!

 

Please help me. Attached I've sent my Labview programm. I need to minus XYGraph2 from XYGraph1. Please see, is my version is right????

 

THANKS IN ADVANCE SOOOOOOO MUCH! 

 

P.S. I know, my question seems very basic and elementary, but, please, be so kind and answer me.

 

 

 

0 Kudos
Message 1 of 40
(3,035 Views)

It looks like you're correctly subtracting Graph 2 from Graph 1 and Plotting it in Graph 3 to me.

 

Are you expecting something different?

 

EDIT: Nevermind, I just ran it so it looks like subtracting cluster arrays may do something weird.

0 Kudos
Message 2 of 40
(3,029 Views)

Hi Moony,

 

When you say you need to minus XYGraph 2 from XY Graph 1, do you mean that you need to subtract the variable (y) values, taken from graph 2, from the variable (y) values, taken from graph 1?

 

At the moment it appears you are taking values from both the constant (x) and variable (y) axis from each other, I believe this is why you are getting the vertical straight line at 0.00 on the constant axis.

 

Dom

0 Kudos
Message 3 of 40
(3,027 Views)

Actually, it still looks good.

 

The smallest array will set the number of datapoints that you get.  Are you expecting the arrays to be the same size?

 

EDIT: And Dominic is right that you're squashing your X values.  I missed that.

0 Kudos
Message 4 of 40
(3,025 Views)

Hi DominicRoberton and Taki1999!

Thanks for replies. About your question:

I mean that I need to subtract the variable (y) values, taken from graph 2, from the variable (y) values, taken from graph 1. I think I did something wrong, wasn't it??? 

0 Kudos
Message 5 of 40
(3,021 Views)

Does this make any more sense?

0 Kudos
Message 6 of 40
(3,019 Views)

DominicRoberton, 

My Labview version is 8.5, and your document I can't open... Smiley Sad

 

Would you be kind to send me once more saving for my version?

 

Thank you in advance... 

0 Kudos
Message 7 of 40
(3,014 Views)
Solution
Accepted by topic author Moony
Message 8 of 40
(3,009 Views)

Thaaaaaaaank you, sooooooooooo much. Thanks for your help.

 

Now I like it Smiley Very Happy 

0 Kudos
Message 9 of 40
(3,007 Views)

Please, answer my last question. To me is very fussy how can I get several graphs in one window...

Can you help me with this?

 

Best regards,

Moony 

0 Kudos
Message 10 of 40
(3,003 Views)