Hi to all,.
I apologize if my English is no so good, I hope it's good enough to explain my problem.
I'm quite new to both NI boards and Measurements Studio: I searched in past threads without find a complete answer to my questions.
I have a PCI-6229 DAQ board configured by MAX. Then, I acquire data with Visual Basic .NET. We're speaking about analog input tasks.
My question is: how to actually limit the input range of measured data (possilby in MAX)?
I know I can define the input data range but the actual values may change a little either over or under these limits. I need a sort of "clamping" so if I set say 5V as maximum allowable value and the board read 5,01V I want to read 5V.
Currently I achieve this in my software with several if..then statements for each analog input:
[pseudocode]
if readvalue > MAX then outputvalue = MAX
elseif readvalue < MIN then outputvalue = MIN
else outputvalue = readvalue
However, I'm wondering if I can setup MAX to do this automatically.
Thanks for any answer.
Marco Trapanese
--
Femtotech