Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital waveform output graphs append

Hi,

 

I'm new to labVIEW and trying to generate a digital output data ( port 0; line 0) at each cycle of the clock (PFI 12 -rising edge) using NI USB 6289. I want to combine these two graphs so that I can view easily the timings. I created a digital input (port 0; line 1) from the sample clock and used while loop but it overwries the clock each time in the graph. How to plot the clock and the data to be written in the same graph (multiplot) without overwriting ?

Download All
0 Kudos
Message 1 of 6
(7,317 Views)

Hi Easwar,

 

Take a look at the help documentation for the Digital Waveform Graph, and I believe you'll see what you need (bolded):

 

"The digital waveform graph accepts the digital waveform data type, the digital data type, and an array of those data types as an input. By default, the digital waveform graph displays data as digital lines and buses in the plot area. Customize the digital waveform graph to display digital buses, digital lines, or a combination of digital buses and lines. If you wire an array of digital data where each array element represents a bus, the digital waveform graph plots each element of the array as a different line in the order that the array elements draw to the graph."

 

You should use the Build Array VI (in append mode) to do this:

 

Build Array Function - https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/build-array.html

 

This should get you squared away.

 

Regards,

Regards,
Chris Elliott
x36772
0 Kudos
Message 2 of 6
(7,285 Views)

Thanks for the information Chris ! I have one more question.

- How is it possible to see the digital waveform in a graph generated(SDI) from the digital write function ? I want to see both the timing information from the clock and data written. 

- I'm using DAQ assistant to trigger (CS) the sample clock and after 7 clock cycles ( 7 bit data written), I want to stop the trigger automatically. Also I want to append to that same graph to see the three waveforms with thier timing information. Pleas help. Thanks

Timing diagram.png

 

0 Kudos
Message 3 of 6
(7,251 Views)

I have attached the code as wellScreen Shot 2013-01-09 at 10.39.37 PM.png

0 Kudos
Message 4 of 6
(7,249 Views)

Hi Easwar,

 

It seems that the updated code may not be attached. It also looks like you may have found your answer here:

 

https://forums.ni.com/t5/Digital-I-O/Digital-Potentiometer-AD-7376-using-USB-6289/m-p/2293194

 

Please let us know if this helps or if you have any further questions. 

 

Regards,

Kaitlin N.
National Instruments
Applications Engineer
0 Kudos
Message 5 of 6
(7,227 Views)

Thanks Kaitlin. I will let you know if I have any trouble in doing this.

0 Kudos
Message 6 of 6
(7,213 Views)