NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with select function

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:

 

teste chave select.JPG

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!

0 Kudos
Message 1 of 4
(3,733 Views)

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.

0 Kudos
Message 2 of 4
(3,731 Views)

I dont know why is in this section. I posted it on LabVIEW part!

Well Dennis I make it like that:

 

fine.JPG

 

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

Message Edited by EduU on 10-29-2009 11:06 AM
0 Kudos
Message 3 of 4
(3,726 Views)

I don't understand your logic.

 

Compare.PNG

0 Kudos
Message 4 of 4
(3,711 Views)