Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1250

Quadrature generation with counter/timer card

$
0
0

I need to generate a quadrature output with a timer/counter card (6602,6624).  It has been done before in another test program using CVI and some other things, but I am heading up setting up a new test system based completely in LabVIEW and VeriStand.  The ultimate goal here is to have a VeriStand custom device that controls the quadrature output of these cards.  Where I am getting stuck is coming up with a way to strictly enforce a 90 degrees phase shift between the two waveforms.

 

What I have tried doing so far - in short - is use a timer delay before the second DAQmx Start Task VI (inconsistant/bad timing) so then I tried using triggers. I have the second wavform triggered based off the first waveform (triggers on a rising digital edge).  Obviously that gets the timing of the waveforms in line with each other but they are always in phase or 180 degrees out of phase (triggers on a falling edge).

 

I have tried using Initial Delay in the create channel VI and also I tried to use the Start.Delay property in the trigger property node, but I kept getting unnamed task errors and could not figure out why.  Ideally, I would like to be able to set a delay when the trigger for the second waveform occurs before the second waveform gets generated.

 

I'll take any ideas anyone might have as I have exhausted all the ones I have for today.  I have included a snippet of my code I am using to try to generate this output before putting it into a custom device.  Thanks for the help in advance.


Viewing all articles
Browse latest Browse all 1250

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>