03-02-2022 06:17 AM
In my data acquisition vi, I want 5 parameters to be displayed on an XY-graph w.r.t. their timestamp. I just wrote a test vi to get the display of 5 random numbers (first saving them in a text file and then reading them back). I tried a lot but I am always getting a blank offset at the beginning on the XY graph display (vi and image attached). How to get the correct display for the selected number of points? Can anybody help me out? I am working on LV 2016.
03-02-2022 10:58 AM
Right click the X scale, turn off loose fit.
03-02-2022 06:11 PM
This is strange code. Here are some questions --
Bob Schor
03-02-2022 10:26 PM
I want to store the data for a long run and that is why I am plotting them wrt data and time. If somebody wants to see what was the value of, say parameter 1, on a particular date and time then he/she can easily do that by selecting appropriate no. of points on X-axis (index).
Secondly I am not doing any computations with the spreadsheet file. I am simply storing the parameters into that file and reading them through 'Read from text file' function. "Index" is basically the number of (latest) data points on X-axis to be displayed on the XY graph. e.g. if I select index as 10, the graph will display the last 10 rows of those 5 parameters saved into that file. But still, whenever I am running the program it is showing an offset on the graph display. If I disable 'loose fit' then also this problem persists. Thanks
03-03-2022 03:35 AM
The VI you posted doesn't seem to do much without the text file.
It wouldn't be too hard to recreate one, but it would be even easier if you posted one.