LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2 d array data to digital waveform

Hi,
Can some one please give an example of a 2 d array to digital waveform.  the array is binary strings.  i've tried alot of conversions and i still no luck.  the 2 d array is actually a 1 d array because it only has values in the first column.  the way this works is if the data in the array is



1111 (row 1 column 0)  ---sample 1
1010 (row 2 column 0)  ---sample 2


this is like a logic analyzer for displaying data.  you need to take the first bit in row 1 and  combine it with the first bit in row 2 to make signal 1and so on until the binary string is done.  in this example you make 4 signals and the data output looks like

signal 1 = 11
signal 2 = 10
signal 3 = 11
signal 4 = 10

when you graph the data it has the signal on the y axis and the number of elements on the x axis ( 2 for this case). 

signal 1     |  high    high
signal 2     |  high     low            
signal 3     |  high     high
signal 4     |  high     low
                     
                       1         2
                  sample
 

0 Kudos
Message 1 of 5
(3,196 Views)
Hi,
 
I have taken the example from this thread http://forums.ni.com/ni/board/message?board.id=170&message.id=202402 and added a bit more to create a Digital Waveform Graph.
 
This was the first time I have used this so it was interesting to try something new.
 
You should take a look at the shipped examples that come with labview for the Digital Waveform data type. They might influence how you design you logic analysis application.
 
Hope this helps
 
David
Message 2 of 5
(3,176 Views)
David,

thank you so much.  is there way to get the data to plot differently.  in the example you sent that has and array of
0000,
1100
1010

it plots 000 on top and then 001 second, 010 third, and 011 last.  is there a way to reverse it, so it plots 011, 010, 001, then 000 on the bottom.  it's kind of like plotting the most significant bits in the first plot and so on.
0 Kudos
Message 3 of 5
(3,165 Views)
Just remove the reverse bit order function.

-Nathan
Message 4 of 5
(3,157 Views)
Thanksevryone for the help, i should have caught that. 
0 Kudos
Message 5 of 5
(3,153 Views)