Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate Digital signal using NI-DAQ MX with PCI6534

Hi all,
 
I would like to seek advice, as i require 2 signals to be syncronised whereby
Signal 1 - in the beginning, it is High(maybe for 2clk cycles), LOW(maybe for 2clk cycles), HIGH(maybe for 2clk cycles)
Signal 2 - in the beginning it is High, then it proceed to LOW only after maybe 2 clk cycles(after Signal 1 goes LOW), but goes HIGH at the same time as Signal 1
 
For this kind of scenario, can any advise me how to do it?
 
Thanks for the help!
 
Rdgs
Meilan
0 Kudos
Message 1 of 4
(3,946 Views)
Hi Meilan,

I am a bit unclear what you are looking for in your signals. Can you please make a small timing diagram of the signals you would like to create and post it? Also, what hardware are you using?
David L.
Systems Engineering
National Instruments
0 Kudos
Message 2 of 4
(3,929 Views)
Hi David,
 
Thanks for the reply, i will need to generate the timing waveform as shown in the attachment and i am using PCI 6534
0 Kudos
Message 3 of 4
(3,921 Views)
Meilan,

The timing picture is a huge help, thanks! I would suggest looking at the example 'Write Dig Chan-Int. Clk-Dig Start' (Help » Find Examples... » Hardware Input and Output » DAQmx » Digital Generation), and replacing the 'create digital waveform' vi with an array which represents the digital waveform you would like for each channel. You can create an array such that the period (number of samples) is the same, but the amount of time each channel is high and low varies according to your diagram.

You could also look at the example ' Cont Write Dig. Port - Ext clk ' for a good single channel example, which you can turn into a multiple channel example.
David L.
Systems Engineering
National Instruments
0 Kudos
Message 4 of 4
(3,908 Views)