LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

digital waveform array

Hello,

 

I have been trying to create an array of digital waveform plots without luck. Basically, if I build an array and pass in waveform plots as elements, the result is always a waveform table. The array is formatted the way I want, but I am unsure of how to convert the table back into a viewable plot. Anyone have any ideas? Thanks so much. 

Download All
0 Kudos
Message 1 of 5
(3,436 Views)

Hi Newnie217,

 

Thanks for the post!

 

Im afraid you can't make an array of graphs...


So are you trying to show all these waveforms on one plot? This can be done, by placing a digital waveform plot and wiring the output of the build array. 

 

If you wanted the look of stacked plots (i.e. waveforms share common x-axis and different y-axis), then charts have the built in option (right click>>Stacked plots) OR with charts, you have to (im afraid), but them look like stacked graphs. However, these are digital waveforms - so not sure you would want/need this!

 

I guess a better question is, why did you want an array of digital waveform plots?  

 

Kind Regards 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
Message 2 of 5
(3,407 Views)

I'm trying to write a program that can write up to 24 different registers sequentially (Each register is written one at a time but there can be as many as 24 different signals. Each signal contains 40 bits or so.) The plots are necessary from a debugging point of view so that I can verify the signal that is being sent out to each register. Ideally, I would be able to create a digital waveform array. The array that I've included in the VI example works nicely in the sense that it contains all the data contained in each element of the array, but the formatted table is hard to read when there are 40 bits coming out from each signal. Thanks for all the feedback and help. Much appreciated!

0 Kudos
Message 3 of 5
(3,398 Views)

Newbie217,

 

There is only so much data you can fit on one graph before it becomes too cluttered. 24 signals at 40 bits per signal? And you just need to verify that the registers are functioning?

 

You could always only send 10 bits to the graph...it would be much easier to read, or 4 graphs arranged vertically with 10 bits in each graph.  Or even a checksum if you are sending the same digital signal to every (count number of changes in signal, if each signal has x number of changes, then you are probably writing the same signal to all)

Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
0 Kudos
Message 4 of 5
(3,377 Views)

Newbie,

 

 What version of LabVIEW are you using to do this?  

 

If you use a digital waveform graph instead of an array of the digital waveform datatype, then you will be able to view each of the waveforms as a seperate bus on the graph.  While this may not be useful to see the numeric value of each bus, in LabVIEW 8.5 and later, a feature was added to be able to view busses in a tree view, allowing you to expand the bus and view the individual lines.   

 

Of course, if you want to view all of the digital data in a single table, you should probably just append the digital waveform array into a single digital waveform.  In the attached image, I have created an array of waveforms, then just appended each element in the array together so that they can be seen on a single graph.  This way, you still have an array of waveforms for easy output, with a display that lists them in the same table. 

 

appending digital signals 

Message Edited by Coal Man on 10-21-2008 10:49 AM
Brian Coalson

Software Engineer
National Instruments
0 Kudos
Message 5 of 5
(3,361 Views)