LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting: Different Data Types with Timestamps


@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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 15
(826 Views)

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, 

0 Kudos
Message 12 of 15
(821 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 13 of 15
(819 Views)

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

0 Kudos
Message 14 of 15
(815 Views)

@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.


GCentral
0 Kudos
Message 15 of 15
(793 Views)