07-27-2007 12:26 PM
07-27-2007 12:40 PM
Hello Antoni
the main part of your program is missing. attach subvi so we can look at it.
i dont understand what you are trying to do: if you want to record only when the value change, you will get an array of alternating true-false. if you need a time stamp, you actually dont need the boolean value itself. to do that, a shared variable might be of use to you, as you can poll it to check if data has change (the shared variable includes a time stamp), on a standalone external application (or other vi).
07-27-2007 12:57 PM - edited 07-27-2007 12:57 PM
In order to use a shift register, you have to have a loop. The simple example below shows how you would compare the current value with the previous value. Note that using the Equal function on floating point numbers is still going to give you a lot of writes to the databaes. You'll want to decide on a how many digits of precision you want to use. Then, instead of the Equal, you could use something like the In Range/Coerce function.
p.s. Also note that I cleaned up your wiring. Try to keep a neater diagram.
Message Edited by Dennis Knutson on 07-27-2007 11:58 AM
07-27-2007 01:09 PM
07-27-2007 01:18 PM
07-27-2007 01:23 PM
07-27-2007 01:27 PM
07-27-2007 02:53 PM
07-27-2007 06:10 PM
07-27-2007 06:31 PM