LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

oscilliscope data sent to plot

I have a system configured with data coming from a tektronics scope in a series of data points (dbl). I want to plot these on some sort of graph in real time. The problem comes with the fact that I want to have the data be shown with say, a red line if a parameter goes true or green if the parameter is false... essentially, I want to be able to distinguish between the data points, depending on whether a condition (that changes with time) is true or false.
Any help would be greatly appreciated.
Geoff.
P.S. Let me know if you need more information...
0 Kudos
Message 1 of 4
(2,763 Views)
One place to get started is this KnowledgeBase entry on changing plot colors, which points to an example of the same.

Another popular method (perhaps because it is or was taught in NI's LabVIEW Basics class) is the notion of making a chart blink when an over-limit condition is detected. You can also do that with a property node by selecting the Blinking property.

If you're asking more generally for advice on handling your data, then you can follow up with more specifics.

Hope that helps,
John
0 Kudos
Message 2 of 4
(2,754 Views)
So, I realize that I am going to need two distinct plots on the screen simultaneously. The problem is that the data will all be coming from the same subVI. I have a flag that will tell which source the data is coming from. I tried using a case structure where if true, the data is routed to path 'A' and path 'B' is set to zero. Then false will route the data to path 'B' and so on... The two paths are then bundled together before being sent to the strip plot. The arrangement, although it seems to me would work, puts the data all in path 'A' and the zeros all in path 'B'. I guess I just need to rethink the whole thing.... Basically, I have two data sets (from the same source) and I need them separated and plotted as a function of time.
Thank you.
Geoff.
0 Kudos
Message 3 of 4
(2,729 Views)
The easiest thing to do would be to put a different chart terminal in each case of your case statement. See the attached image of this, where you just see the "Source B" case, with the Source B chart terminal in it, and the Source A case has the Source A chart terminal.

--John
0 Kudos
Message 4 of 4
(2,720 Views)