Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Using NI 6254 DAQ card for DIO user pattern generator

I am trying to generate test software with the NI 6254 DAQ card. I am using VB.NET and trying to generate digital patterns triggered at a set frequency on 2 channels on one port. I have haven't found any examples that show me how to link the DIO state to an internal clock for triggering and period setting. looking for examples and guidance on this topic.
0 Kudos
Message 1 of 2
(3,053 Views)
Hello,

First, you should look at this Knowledge Base: http://digital.ni.com/public.nsf/websearch/67E849D5A5715BB486256F7A0064D85B?OpenDocument . It described how to set up hardware timed digital output. It looks like the best option for you would be to set up a continuous pulse train generation and use that pulse train to clock your digital output. You will have to build this code using a combination of a pulse train generation example and a digital output example.

You can find a pulse train example at:
C:\Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Examples\DAQmx\Counter\Generate Pulse\GenDigPulseTrain_Continuous\Vb

A digital output example can be found at:
C:\Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Examples\DAQmx\Digital\Generate Values\WriteDigChan\vb

Let me know if you have any further questions.

Regards,
Sean C.
0 Kudos
Message 2 of 2
(3,045 Views)