03-20-2017 02:19 PM
@petermotiv wrote:
Hi Ben,
Also need to preserve the Timestamp, not a sample number. So X-axis can be a TimeStamp data type?
Thanks for the help Ben!
I get the impression you did not look at the threads I linked. Take a look at those threads and download the code to see how they work.
Timestamps are the "t0" of a Waveform.
Ben
03-20-2017 02:58 PM
Yo Ben (& Others) ...
OK so getting close. .. looks like the Waveform graph may be the right guy. On right-clicking and setting properties on the X-axis to absolute time and adding in system date,
03-20-2017 03:05 PM
You still are not using the WF data type... and missing the wonderful flexibility available once you figure them out.
I realize I can only "lead a horse to water and can not force them to drink" but for your sake I am begging you sip of the sweet nectar when using a Waveform data type to plot data.
Ben
03-20-2017 03:21 PM
Hi Ben,
One of the links did not work for me (attached), but I did review the other over again. I reviewed it in the very beginning, and after the back and forth posts, this example make more sense, I mistakenly was still using XY Graphs.
I have enough info to likely figure it out from here as you mentioned lol. I will reply back to this thread once I figured it out, and place a PDF for all to review as a compile solution.
Thanks for the help,
-Peter
03-22-2017 10:19 AM
@petermotiv wrote:
Hi cbutcher,
This is a great idea, thanks. I have seen NaN(NIL/NULL): populated in front-panel, but I am not sure how to populate NaNs in a 2D Array. I see there is a method to check for NaNa in the compare palette, but to assign an NaN, not sure.
Maybe I am wrong, all software environments are different, but if you have a 2D Array, and throw down a number, it will pad zeros, not NaNs, see attached quick-try, I only place the '4' in the const int array[][]
Sorry - I didn't see this post! If you didn't find the answer already, then here it is:
You can't make an integer NaN, but for floating point values, just type 'NaN' into a constant. On LV2016 (and probably a great many earlier versions) typing 'NaN' into an integer constant will change it to a floating point constant. If you wanted to create an array of mostly NaN values, I suppose you could use the Initialize Array and/or perhaps Replace Array Subset primitives.