DQMH Consortium Toolkits Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

How to start a new TDMS file after n seconds

Hello community,

 

how would I go about splitting TDMS files after a fixed period of time (I use the CML DQMH template)?

 

I already have an idea and would like to ask for feedback:
- open Logger module
- in the Message Handling Loop (MHL) I would duplicate the "Initialize File" case and rename it to "Next File" (and change status code etc.)
- next, I would add a helper loop with a timeout of my desired time interval
- then, have the Helper Loop in the timeout case send the message to call "Next File" (in MHL)

 

Is that a reasonable approach or am I missing something important (maybe this will not produce the exact time duration or something)?

 

Thanks

Martin

0 Kudos
Message 1 of 4
(1,409 Views)

Hello, if you are using the CML template, please note that the ´log Data´ request is being called by the helper loop in the acquisition module, so who really controls the log time is the acquisition module, The approach of adding a helper loop in the logging module is correct only to change the TDMS file handler every so often. I think your proposal looks good.

Cheers,

Enrique

0 Kudos
Message 2 of 4
(1,366 Views)

Without knowing much about the CML example (frankly I never cared to look at it in detail), do you need the helper loop? Can't you do the time measurement directly in the 'log data' MHL case?




DSH Pragmatic Software Development Workshops (Fab, Steve, Brian and me)
Release Automation Tools for LabVIEW (CI/CD integration with LabVIEW)
HSE Discord Server (Discuss our free and commercial tools and services)
DQMH® (Developer Experience that makes you smile )


0 Kudos
Message 3 of 4
(1,360 Views)

I don't use DQMH, but this thread got my attention because of the title.  I made a TDMS toolkit that I posted on VIPM.IO called the Tremendous TDMS package.  It has a bunch of TDMS tools with the ability to make a new file based on the time of day, based on the size, based on frequency, or a circular buffer.

 

https://www.vipm.io/package/hooovahh_tremendous_tdms/

 

And here is a video demonstrating how to use some of the toolkit.

 

https://youtu.be/4nSz8UR2XfI

Message 4 of 4
(1,338 Views)