LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

waveform graph creating extra plot

Hi,
i have a sting array that eventually gets plotted into a digital waveform.  my problem is that the digital waveform graph is adding a plot called Plot 0 at the beginning of the graph and then it plots the data.  not quite sure how to fix it or why this is happening.  attached is the vi.

thanks,
Louis
0 Kudos
Message 1 of 4
(3,060 Views)
I can't say that I'm an expert on the digital waveform but I believe each column in the spreadsheet array represents a channel and each row a digital transition for that channel. Wire the input of the bottom for loop to the transpose array function.
0 Kudos
Message 2 of 4
(3,038 Views)

Hi Louis,

The digital waveform does plot each column as a channel as Dennis stated. I recreated your vi and wasn't able to reproduce the problem with it being called plot 0 and not graphing all the way across the chart. I am also able to transpose the array after the for loops with the type cast.vi and plot the 3 original values as 3 plots. You might want to try rebuilding the vi. I have attached mine.

Regards,

Hillary E
National Instruments
0 Kudos
Message 3 of 4
(3,011 Views)
Hi lfoitek,

First, I'd suggest replacing the waveform graph you have on the front panel with a new Digital Waveform Graph from the Controls Palette. Plot 0 is just simply the name of the first plot in your graph. You could edit these names in the Plots tab of the Waveform Graph Properties.

After looking at your VI, it seems that you are doing things more complicated than they should be. Do you really need the Nibbles in a String Array? Why not use a 2-D array of numerics from the start? I don't really see the point of converting everything back to strings just for the Spreadsheet String to Digital VI.

My edits to your block diagram are shown below. You can see that there are three ways to accomplish this task. I suggest using one of the methods other than the Spreadsheet String to Digital. The front panel with the graphs I mentioned above are also attached in a screenshot. I hope this helps!





Message Edited by lion-o on 01-28-2008 02:35 PM
Download All
0 Kudos
Message 4 of 4
(3,005 Views)