01-21-2013 02:35 AM
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 ?
01-22-2013
08:25 AM
- last edited on
04-30-2025
06:37 PM
by
Content Cleaner
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,
01-26-2013 08:59 PM
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
01-26-2013 09:00 PM
I have attached the code as well
01-28-2013
11:41 AM
- last edited on
04-30-2025
06:37 PM
by
Content Cleaner
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,
01-28-2013 03:05 PM
Thanks Kaitlin. I will let you know if I have any trouble in doing this.