FlexLogger

cancel
Showing results for 
Search instead for 
Did you mean: 

Flexlogger

I am trying to make a plugin in LabVIEW for flexlogger to find the maximum and minimum value of selected channel 

But I'm getting an error of invalid timestamp while writing a data to the particular channel 

 

0 Kudos
Message 1 of 4
(159 Views)

Your provide information is too sparse and does not define the problem sufficiently.

0 Kudos
Message 2 of 4
(108 Views)

When you create a plug-in with the PDK, the template "Perform Calculation" does almost exactly what you're trying to do (except that it creates a single channel where you can select the Min or the Max).

ChristopheC_0-1735858595661.png

 

The reason you're getting an invalid timestamp error is likely because you're writing the data as a waveform. FlexLogger requires that the t0 of the next waveform you write to be greater that the timestamp of the last point you wrote from the previous call to Write 1D Wfm (DBL).
One way to get rid of the error would be to set the "Auto Calculate T0" input of the Write 1D Wfm (DBL) VI in your Process.vi to True.
Another way is to use the Write 2D DBL NChan NSamples instance of the write VI. If you use this instance, you'll have to set the Stream Timing in the Initialize or Configure Session VI. You'll need to know the dt for the Min and Max outputs.

Please let me know if any if the solutions proposed above solve your error.

Thanks!


Christophe

0 Kudos
Message 3 of 4
(81 Views)

Which version of FlexLogger are you using?
I forgot to mention that the last couple versions of FlexLogger ship with a Min-Max plugin that does what you request and is available from the Add channels>>Plug-in menu.

0 Kudos
Message 4 of 4
(79 Views)