From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-03-2015 02:27 PM
Hi all,
I had a program where I read out an ascii tab-delimited, two-colum file. The first column contains X values. The second column contains Y values. I would like to construct a program which traces out this XY plot and outputs the last value. Everything is working like a charm except the graph is totally blank, and I can't understand why. Any help is appreciated.
Thanks in advance,
NSG
Solved! Go to Solution.
12-03-2015 02:40 PM
You did not include a datafile.
How many points are there?
Maybe you want a plot that shows points instead of connecting lines? (a line needs at least two points to show!)
What should happen when you run out of points?
12-03-2015 02:46 PM
Bob Schor
12-03-2015 02:54 PM - edited 12-03-2015 02:59 PM
Try something like this....
Some additional comments to your origianl code:
12-03-2015 03:26 PM
Oh cool I appreciate it. I have attached the data.
With the plot I meant that I wanted the graph to trace it out but keep the trace, not just roll with a single point but hold onto the it as it goes through the entire voltammogram I have attached.
Thanks again.
12-03-2015 04:13 PM - edited 12-03-2015 04:15 PM
@Sidelingscroll wrote:
With the plot I meant that I wanted the graph to trace it out but keep the trace, not just roll with a single point but hold onto the it as it goes through the entire voltammogram I have attached.
Like this, maybe?
12-04-2015 08:32 AM
That's great. Here's my final program and text input file (I had to multiply the values in the second column by 10^6 to get them to display correctly, but that's ok)