-
FlexPro
- Zoom sur FlexPro
- Fonctionnalités & Options
- Domaines d’application
- Tous les avantages
- Nouveau dans FlexPro 2021
- Testez FlexPro gratuitement
- FlexPro View OEM Freeware
- Conseils d’achat
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produits
- News
- Support
- Société
- Emplois
- Contact
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
selecting positive values
- This topic has 5 replies, 2 voices, and was last updated 14 years, 1 month ago by mac ye.
-
AuthorPosts
-
November 9, 2010 at 2:23 am #12452mac yeMember
I got a problem in filtering positive values from a data set.
background:
A is a data set with pos and neg values. and I want to selet all the positive values and set all negative values to 0
so I create a data set B with same number of colums and initial value as 0I wrote a script in a function like this:
Dim i
For i=0 To 8000 Do
If A < 0 Then
B==A
End
EndBut it returns "no value"
Would you please give me an example for this?November 9, 2010 at 2:23 am #8131mac yeMemberI got a problem in filtering positive values from a data set.
background:
A is a data set with pos and neg values. and I want to selet all the positive values and set all negative values to 0
so I create a data set B with same number of colums and initial value as 0I wrote a script in a function like this:
Dim i
For i=0 To 8000 Do
If A < 0 Then B[i]==A[i] End End But it returns "no value" Would you please give me an example for this?November 9, 2010 at 5:39 pm #8747Bernhard KantzParticipantYou have to use = instead of ==.
But it’s better and faster to use the ValuesBelow-function and the index operator.Example:
Dim B = A B[ValuesBelowLevel(A, 0, EVENT_INDEX)] = 0
November 9, 2010 at 6:57 pm #8748mac yeMemberhello, thank you for your reply!
when I use the valusebelow func, it replies:
index assignment to signals, signal serials.. are not allowed. assign the components seperately.
So do you have any further recommendation?
Thank you!
November 9, 2010 at 11:58 pm #8749Bernhard KantzParticipantNovember 10, 2010 at 2:31 am #8750mac yeMemberThank you! It works!
-
AuthorPosts
- You must be logged in to reply to this topic.