LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

network oscilloscope

Hi
I currently use a very simple method to display data that was captured by a TI C6711 dsp, and is sent over a network to a pc running Labview for displaying data and controlling the system. (see attached file for one of the vi's I'm using: it displays every block of 240 points that comes in every 12mSec, and can send out 2 levels that are set on the graph. It also writes the data to disk when the stop button is clicked)
I am kinda new to Labview, and I pretty sure my code is not the most efficient way to do this ;-, so any tips to make it better are welcome.

Now my actual question: I have to improve the vi, so that the display acts like an oscilloscope. However, I cannot think of a way to implement this immedeately, since I also need
some kind of triggering and because the data only comes in per 240samples.
I did a search on the forum but I did not find projects similar to mine, although I'm sure someone has done it before..

Any help will be greatly appreciated!

-Stijn
0 Kudos
Message 1 of 3
(2,704 Views)
Hello Stijn,

Thank you for contacting National Instruments.

If your question is how to display data in the same way an oscilloscope does, the answer is to use a chart instead of a graph. Right click on the chart and select Advanced >> Update Mode >> Scope Chart. This mode has a retracing display similar to an oscilloscope. As it receives each new value, it plots the value to the right of the last value. When the plot reaches the right border of the plotting area, it erases the plot and begins plotting again from the left border. You may want to consider using both a graph and a chart to view the same data in different ways.

I hope this answers your question. If not, let me know.

Matthew C
Applications Engineer
National Instruments
Message 2 of 3
(2,704 Views)
Matthew,
thanks for your answer. The Scope Chart Mode is very interesting..
I actually wanted to know how to implement the way a DSO works in LV (setting trigger level and timebase etc.), but this isn't necessary anymore since I decided to use my dsp to calculate the data to be plot, hence acting as a DSO. Then it sends this data to LV, so LV should only display it, and I'm probabely going to use the Scope Chart for that.

-Stijn
0 Kudos
Message 3 of 3
(2,704 Views)