06-10-2015 05:29 AM
I am trying to record the time for zero crossing in order to get the phase angle and inevitably get the power facto . soi was trying out a few ideas to see if this is achievable and i came up with this . can someone tell me where i am wrong . or what to do get the right values ..
Solved! Go to Solution.
06-10-2015 05:38 AM - edited 06-10-2015 05:39 AM
1. You need to pass the waveform into the Get Waveform Time Array.
2. No need to wire up the N on the FOR loop since you are using Autoindexing tunnels.
3. The Conditional Indexing tunnel is your friend here.
06-10-2015 08:43 AM
Thank you soo much for replying me . but i have tried this and still unable to get it .. I want to get the time for each instant the waveform crosses the zero point
06-10-2015 08:51 AM
Can't troubleshoot without your code. But it looks like you did not pass the waveform into the Get Time Array function.
06-10-2015 09:23 AM
Here is my code
06-10-2015 10:03 AM
You missed the Conditional part on that autoindexing tunnel. Right-click on the output indexing tunnel of the timestamps. Now select Tunnel Mode->Conditional. You now just wire up the output of the Zero Crossing to that conditional part of the tunnel.
I also recommend getting rid of the wait inside of that loop. Just let it go as fast as it can. It won't take long to run through this array, so I would not worry about it using up your CPU.
06-10-2015 04:13 PM
Thank you soo much . i have officially learnt something new about the conditional tunnel mode . first time i have heard of it . Amazed right now ..:manvery-happy: