09-18-2006 12:10 AM - edited 09-18-2006 12:10 AM
Message Edited by ericDev on 09-18-2006 12:12 AM
09-18-2006 12:51 AM
09-19-2006 08:48 AM
Hi Eric,
I just wanted to add a few points to devchander's solution to show you a couple of functions which might come in handy.
1)The DAQ Assistant will return data in a 'dynamic data' type which consists of both data (magnitude) and timing information. When performing a comparison you can use the dynamic data type, however it will return your answer in a dynamic data type which may not be what you are looking for. You can use the 'Convert from Dynamic Data' function to convert to either an array or single value. Feeding the array or single value to the comparison function (i.e greater than) will return a boolean array or boolean data type.
Hint: To locate a function when you know the name, but do not know which pallette it is in, simply click the search button at the top of the main functions pallette and type the name of the function.
2)In addition to displaying the TRUE/FALSE as a boolean indicator, you also have the option of outputting your result to a digital line on your DAQ device to control a physical LED or other indicator of your choice.
3)If you decide to work with arrays in your comparison (i.e. you read 100 data points at a time and would like to have a TRUE value if any one of the 100 points exceeds your limit) you may find the 'Or Array Elements' to be useful. This is located on the boolean portion of the functions pallette and resembles a backwards 'E'.
Hopefully this helps,
Jennifer O.