04-29-2015 05:11 AM
Hi,
I have a NI PXIe-6612 Counter/Timer with DIO.
Using the HSDIO L/V Inst Drivers, I'm trying to get a single output (PFI 35/P1.3/CTR 1 SOURCE) to generate a continuous TTL 1MHz Square Wave with a 50% Duty Cycle.
I looked through the examples but am unable to find one that matches my requirements.
Please point me in the right direction or provide sample vi.
Regards...
Ian
04-30-2015 07:51 AM
HI Ian,
Your NI PXIe 6612 card doesn't actually support the HSDIO drivers, so even if you did find an HSDIO example to create your pulse train, it would not work with your hardware.
Your card is a Counter/digital I/O card and falls under the Data Acquisition family, so the drivers for the card are actually the DAQmx Drivers. To generate a continuous 1MHz square wave with a 50% duty cycle you want an example for a counter output for a continuous pulse train. I've included a few links below.
http://www.ni.com/example/30090/en/
https://decibel.ni.com/content/docs/DOC-12164
https://decibel.ni.com/content/docs/DOC-3751
I hope this helps.
Vsenior
05-28-2015 12:24 AM
Hi,
Thanks for that, and it does indeed do the job of putting out a continuous squarewave; however it relies on a "While Loop" with in the Labview code to achive this!
Is it not possible to achieve the same result without any Looping, i.e configure, trigger and ignore?
Regards...
Ian F
05-28-2015 12:41 AM
Technically it does use a while loop, but if you look at the logic it really doesn't have anything to do with the signal generation. The whole point of the DAQmx function inside the loop is to stop the loop if there is an error. Otherwise the loop simply sits there looping and wasting computer resources until the stop button is pressed.
This is one of those places where I wish NI would put a little more time into the examples.
Mike..
05-28-2015 01:26 AM
Hi Mike,
Thanks for the very prompt reply, and I completely agree with your thoughts; however before I "Close" this subject, I'm just going to give it a try on my H/W after removing the Loop from the example code, fingers crossed!
Watch this space.
Regards...
Ian F
05-28-2015 07:05 AM