03-03-2006 04:59 PM
03-06-2006 04:03 PM
03-06-2006 04:31 PM
03-06-2006 04:57 PM
03-07-2006 06:47 AM
Thanks for the response! I'm going to try that.
I'm not sure what you're referring to regarding the full quadrant measurement.
The signals I'll be measuring will be sine waves from an analog input sampled as fast as I can.
One is measuring ac voltage (reduced down to +/-5V), the other is measuring ac current (also reduced and converted to a voltage). These will be measuring the amps and volts from a power tool in use. In some cases there might be some noise (an SCR will be switching one or both of the signals on and off so you get a "jagged" looking sine wave). I'm wondering if what you're referring to will be affected by this.
I will try your suggestion.
Regards,
Jeff
03-07-2006 08:15 AM
03-08-2006 11:20 AM
Ok I found a solution that I can understand and use fairly easy. I use the zero crossing function (in one of the math sections I think). It sets a true every time it finds a zero crossing. I then just keep resetting it, until the array of data is done. I store these positions in an array and take the average difference which ends up being my time delay since I sampled simultaneously using a cRIO.
I have the code if anyone is interested.
Thanks again for all the help!
Jeff
03-08-2006 11:49 AM
03-08-2006 12:09 PM - edited 03-08-2006 12:09 PM
Message Edited by rpursley8 on 03-08-2006 01:12 PM
03-08-2006 12:44 PM