10-29-2009 09:04 AM
Well guys, I have a problem here and I didn't find any solutions
So maybe someone of you, can help me!
My problem is:
I have 2 numbers (100 and -200) and I have to plot the greater value.
The problem is for me the signal of -(minus) doesn't means nothing....
For the program I'm making, the -200 is greater than 100
So I tryed put bouth as absolute value, but when I have the "answer" only appears the "200"
and I need it appears -200
So I thought about something like that:
I use a select function and maybe do something like that:
So I have to make something at True or False value at S to make this work!
If true I receive 100, if is false I receive -200
Thanks!
10-29-2009 10:18 AM
What does this have to do with TestStand?
Yes, the select function will work just fine. You would wire the result of your comparison to the absolute values.
10-29-2009 11:00 AM - edited 10-29-2009 11:06 AM
I dont know why is in this section. I posted it on LabVIEW part!
Well Dennis I make it like that:
But now I have a problem
I do the same calc for 3 differents variables like A, B, C
and after that I have to calc which value is the "greater"
But my problem is, If I have the values "-350 300 -400"
the greater will be "300" but for me the "minus" don't mean anything
so I need the greater value is "400"
For all positive values, its works fine!
I compare A and B, after that the greater is compared with C and have a result!
but When I have negative values and positive values... I got that problem...
and When I have only negative values I have a problem too.
"-300 -400 -500" for me the greater value have to be "-500" but labview shows "-300"
because -300 is greater than -500 in algebriac.
And If I use absolute values I will always have a positive value... but I need to know if the value is negative or positive
Anyone, can help me with that?
Thanks
10-29-2009 01:28 PM
I don't understand your logic.