LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build DIGITAL Waveform

Hey there,
I've read alot of posts about the topic but am still stuck here.  I do not understand why there is a 2-D(boolean) array as input for Build Digital Waveform and a 1D  array for Build Analog Waveform.
 
Basically I want to feed "Digital Waveform 1chan N-samp" with a digital waveform, so it can be synchronized with other(analog) waveforms I shall generate.
 
I have a 1D boolean array. I want to build a 1 channel digital waveform. What/ why does Build Digital waveform require a 2d array? What does the 2nd dimension contain? 
 
 
 
 
 
0 Kudos
Message 1 of 2
(3,288 Views)
Hi GregStef,

The reason the Build Digital Waveform takes in a 2-D array of booleans is that the output of that funtion (the digital waveform) can contain data for multiple digital lines.

If you look at the input to the build digital waveform, it is type digital data. There is a function called build digital data that takes in a 2-D array to form the digital data. If you look at the LabVIEW Help for this function, you will see that the input data "contains the data values where each row in the 2D array represents the data on the signals at a particular time with the most significant line of data first." In other words, this is a 2-D array where rows represent different times, and columns are different digital lines. This is done this way so that an entire digital port can easily be contained in one digital waveform. I hope this helps!
Nick R
NI
0 Kudos
Message 2 of 2
(3,252 Views)