LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamically create plots

I'm trying to create a VI that reads and parses a string of 37 delimiter separated values over the serial port and plots the data with respect to time. The values all correspond to a different measurement and the string is read every 30 minutes. However, I want to be able to select which data from the string to be plotted. For example, checking boxes for temperature and wind speed and humidity (16, 22, and 28th value in the string) and then clicking a button would create separate plots for each one and begin plotting this as the string is read. Or be able to choose any other set of values and begin plotting.

 

So far I'm able to read and parse the string of data into an array and manually plot what I want by connecting the nodes from scan from string but I'm not sure where to begin on making the interface for selectable plotting. Does anyone know of a general framework or have an example to look at? I have no idea how to go about this in an efficient manner.

Thanks!

0 Kudos
Message 1 of 4
(2,122 Views)

Check the attached VI...
Is this you're looking for... if so, in LabVIEW version 2012 this is now a native feature and you need not write additional code.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


Message 2 of 4
(2,112 Views)

That is close, but I'd want each parameter being graphed to be on a separate graph, since the scales are way different.

 

3.02,1,SAMP_INT_02,1359350595,0395,002,00,1.0,5.0,1.4, 63.1,280113,12.2,11.96, 69.61,18.60,051226,3252.1875,1, 11715.1426,4, 0.00, 0.20,-143.44, 0.08, 29.84, 20.40, 42.30, 20.40, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00,PW 100 3705 // /////

 

That is what the string looks like and I'd like to be able to plot any number of those parameters each on a separate graph. I've attached what I have so far, which simply finds the string, writes it to a text file, and parses out each field.

0 Kudos
Message 3 of 4
(2,090 Views)

Hi cdsc,

 

It sounds like moderator1983 was on the right track. Have you tried to use a similar property node to select which plot is visible on your mixed signal graph?

 

Regards,

Bobby Breyer
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,049 Views)