05-24-2020 01:19 PM
Here's what my data looks like and formatting wise i'm happy with that. I just chose to write the data in the columns because it looked nicer to me when viewed in excel.
But i wasn't able to handle the data like this in LabVIEW, that's why i deleted the first row to only have numerical data and transpose it afterwards.
05-24-2020 01:30 PM - edited 05-24-2020 01:31 PM
Here's a quick draft (simplified for one graph). Arguably simpler.
(note that the "%,;" in the format defines comma as decimal delimiter as Gerd already showed)
05-24-2020 04:51 PM
@MT_at_home wrote:
@altenbach wrote:
It is a really (really!) bad idea to call a file "csv" (comma separated values) because comma is the decimal delimiter in your language setting so it cannot be used as column delimiter. (my USA excel cannot open your file correctly!).
I'm sorry for that inconvinience, that's why i have set the semicolon ";" as a delmiter cause my excil won't work correctly with the comma ",".
I typically use a tab as the delimiter. It looks nicer in a text editor as well this way.
05-24-2020 05:20 PM - edited 05-24-2020 05:28 PM
Thank you so much for this example, i adapted it slightly to my needs and added a shift register now and i removed the initial zero out of the plot.
I was able to plot 3 graphs into one chart but sadly not the way i'd like it.
I'd like to keep the points of my scattered y-Values but put a fit through them.
The standard way of LabVIEW to plot the added charts is sadly just a linear fit without my scattered points.
I was able to show the scattered points by manually selecting the according Plot/Common Plots/(Icon with points and linear fit) for each plot.
Can this be done automatically? (in my VI atm. i did it manually for Plot 2)
I'd like to generate a legend with the color and filename of each plot alongside too.That's why i gathered the list of opened files in a array.
Additionally, when loading a new set of values there's always a 0/0 plotted as last value of the last chart i can't get rid off.
My goal in the end is to display:
1. the scattered values per dataset
2. a matching fit through each set of scattered points
3. a legend with the filenames and colors.
Here's what i'm stuck with atm:
05-25-2020 03:30 AM
Actually i was able to figure it out by now on myself for a linear fit. Just had to use the Active Plot and other matching property nodes.
05-25-2020 11:52 AM
@MT_at_home wrote:
Here's what i'm stuck with atm:
05-25-2020 01:03 PM - edited 05-25-2020 01:05 PM
Here is one possibility to get you started. It does an offset-free exponential fit, but any other model would be possible using the nonlinear fit tools. (Modify as needed. I am sure there are bugs)
(It seems a bit clumsy having to select a file followed by loading it and there is also no mechanism to prevent loading the same file twice. You could load all csv files into a listbox and select from there (similar to my program here). You could even allow multiple selections and load all selected from scratch with each change.)
05-27-2020 06:37 AM
Hello altenbach,
thank you for your examples and explainations, they helped me a lot and made me able to progress with my work.