12-23-2024 09:33 AM
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
12-29-2024 11:50 AM
Your provide information is too sparse and does not define the problem sufficiently.
01-02-2025 05:08 PM
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).
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
01-02-2025 05:12 PM
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.
These cookies are necessary for the website to function and cannot be disabled in our systems. These cookies are usually set only when you complete an action online, such as setting your privacy preferences, logging in, or filling in forms. You can set your browser to block or alert you about these cookies, but then some parts of the site may not work. These cookies do not store any personally identifiable information.
These cookies allow us to count visits and traffic sources so that we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies, we will not know when you have visited our site and cannot monitor its performance.
These cookies enable the website to provide enhanced functionality and personalization. They may be set by us or by third-party providers whose services we use on our pages. If you do not allow these cookies, some or all of these services may not function properly.
These cookies may be set through our site by our advertising partners and social media services. They may be used by those companies to build a profile of your interests and show you relevant advertising on other sites. They do not store directly personal information but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.