Hello eskay,
The "IMAQ threshold.vi" has inputs for the range of values you want to threshold between. You can feed new values into this VI each time you call it to change the threshold values.
If this doesn't answer your question please post what software you are using and some more detail on exactly what you are trying to do.
Nicholas C
National Instruments
Applications Engineering