LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Printing the y values of a sine wave and corresponding timestamp

Hi, i would really appreciate some help with this.
Im trying to take the y values of my generated sine wave before and after the filter and add corresponding timestamp for all the values in the array.

This seems rather complicated since the timestamp is a string.
I managed to get the y values before and after the filter with some spaces printed as you can see in the picture but i didint solve how to get the time stamp to each values.
The timestamp should be in a column right after or before each value of the two columns.

I added some pictures, hope someone is able to help.

Regards, 
Edward

0 Kudos
Message 1 of 2
(395 Views)

Hi Bowika,

 


@Bowika2000 wrote:

This seems rather complicated since the timestamp is a string.
I managed to get the y values before and after the filter with some spaces printed as you can see in the picture but i didint solve how to get the time stamp to each values.
The timestamp should be in a column right after or before each value of the two columns.


Some thoughts:

  • Using ExpressVIs and DDT wires doesn't help to understand/solve the problem…
  • Converting to plain arrays gets rid of ALL timing information in the signals!
  • Have you ever considered to use waveforms? Well, there is a full palette to create waveforms, including sine waves…
  • Waveforms contain timing information, consisting of start time and dt between samples…
  • Do you need an absolute timestamp before each sample or a relative time since start of signal?

@Bowika2000 wrote:

This seems rather complicated since the timestamp is a string.


Only when you need a string!

Timestamps can be expressed as time since an epoch: in that case they are simple numbers…

 

Again what exactly do you need?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(372 Views)