Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital waveform output problem

Solved!
Go to solution

Hello, my hardware is PCI 6251, 6351 and BNC-2120.

I made vi that can make analog waveform signal to digital waveform signal. 

I have problem with digital output.

In vi digital waveform graph, I can see the digital waveform which changed by analog waveform. 

so, I made digital output vi which can export to port0/line0 and check with oscilloscope.

The result was it doesn't work properly. only shows low signal when frequency is 100Hz and shows only high signal at 800Hz.

Thank you!

 

nicky15_0-1599639651795.png

nicky15_1-1599639762453.png

 

 

0 Kudos
Message 1 of 6
(1,476 Views)

A digital waveform is only meaningful when you have hardware-driven sample timing.  Your 6351 will support this more directly, you just need to set up a call to DAQmx Timing as part of your DO task config.   And when you have hardware-driven timing, you'll need to write the waveform to the task *before* you start the task.

 

As a note, your dataflow will make sure your AI task starts before DO.  It'll be up to you to know whether this is desired.

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 2 of 6
(1,442 Views)

Thanks for your help!

I have solved that problem using a DAQ Assistant. but still have sampling problem.

I'm going to use that digital signal for sampling clock source, Which is unequal frequency source. 

So, using that unequal(variant) frequency source, the data could not have a equal dt (sampling)point.

but the result was data has a equal dt point. do you know what's wrong with it? 

 

Again Thank you for your help.

nicky15_0-1599662794719.png

nicky15_1-1599663321701.png

 

 

0 Kudos
Message 3 of 6
(1,438 Views)

You're going to need to describe things more completely with more detail.

 

It sounds to me like you're mixing up the constant sample clock rate with the variable rate at which your digital output signal toggles.  If you want to use the digital output signal as a variable rate sample clock for something, you'll probably need to send that signal on a physical wire from port 0 to a terminal that has PFI timing signal capability (often also doubling as port 1 or port 2 for standard DIO).

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 4 of 6
(1,407 Views)

Thank you for your reply!

 

I have try what you told and it works, but the vi was too complex. 

so, I changed plan to use Analog Comparison Event.

In X and M series manual which i use(ni 6351, ni 6251), there is analog comparison event but i could not find analog comparison event in DAQmx Terminal. Do you know how can i use it? 

In picture div 1 is xseries(ni 6351), div2 is Mseries(ni 6251)
image.pngimage.png

0 Kudos
Message 5 of 6
(1,391 Views)
Solution
Accepted by topic author nicky15

Note to future readers:  problem solved in a different forum thread over here.

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 6 of 6
(1,372 Views)