03-31-2004 08:09 AM
04-05-2004 06:27 AM
04-05-2004 10:26 AM
04-08-2004 06:55 AM
07-21-2006 05:43 PM
07-24-2006 12:14 PM
Hello jtanabe,
You are correct. The example posted above in
Traditional DAQ is used to input a trigger signal to the card. The PFI
pins allow you to route signals into and out of your card, they are not capable
of directly generating signals. To generate a square wave you would use
either a counter or digital line. A counter would allow you to generate a
square wave with a specific frequency and duty cycle, and a digital line would
allow you to do something similar depending on the card you have. For
example with an E Series device you write a single value to a digital port at a
time, and therefore it is software timed. The frequency you can update
the digital port/line will completely depend on your software and the speed of
your system.
For more information on PFI lines please see a PFI
Knowledge Base found here. If you are just starting out, or if you are
using an M Series Board I would recommend (if your hardware supports it) using
the DAQmx driver. It is easier to create applications, and it allows you
to use the Data Acquisition Assistant Express VI if you are using LabVIEW. There are examples that demonstrate how to generate square waves online and in NI Example Finder. If you are using LabVIEW you can find examples by selecting Help >> Find Examples. In the window that appears select Hardware Input and Output >> NI-DAQmx >> Generating Digital Pulses.
Regards,
Jesse O.
Applications Engineering
National Instruments
07-24-2006 03:24 PM
07-24-2006 04:32 PM
Hello Jordan,
The DAQPad-6070E is only supported by Traditional DAQ. You can find more
information on this here. One
way to trigger your application is through a digital line. Simply write a
value of 1 and then 0 to your line (assuming you have it in a low state
initially).
Please take a look at the example called Write 1 Pt to Dig Line (E).vi
typically located in C:\Program Files\National Instruments\LabVIEW
X\examples\daq\digital\E-series.llb\Write 1 Pt to Dig Line (E).vi
This example shows how to use a digital line to send out a logic level.
You can then use this as a digital trigger. Alternatively, you could use
software triggering. By this I mean that you could start your data
acquisition when some software condition is met. There are no NI-DAQ VIs
that allow you to perform software triggering, this is something that you would
code. If you look at the AI Start VI, you will see that all the trigger
inputs are optional. If they are not set you do not need a trigger.
If you wanted to use a software trigger you would simply call the start
(without the trigger inputs set) and read
I hope that helps. If you have any questions about this let us know.
Regards,
Jesse O.
Applications Engineering
National Instruments
01-24-2008 09:58 AM
01-25-2008 01:15 PM
Hi bckr,
Here are some resources for Register-Level Programming:
DAQ Register-Level Programming Resources
Measurement Hardware Driver Development Kit Frequently Asked Questions
I hope this helps you get started.One final note: In the future, please start a new thread for a new question. It keeps our forums more organized and more members are likely to respond to a new thread than one that is several months old and has several responses. Thanks!