frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

How to concatenate several .rec files ?

TeoTeo
edited October 2020 in Data Recordings

In some cases, you might want to stitch together several .rec files.

While we do not offer any tools for this feature (such as the rec_splitter for the opposite operation) you can easily do it manually.


For example, let's say you have 2 .rec files (rA which runs for 5 minutes and rB running for 8 minutes)

Create a new diagram with 2 players (pA et pB) linked to the same recorder.

Configure pA properties as follow : 

offset = 0 : 00 : 00:000 
beginning time = 0 : 00 : 00:000
end time = 0 : 05 : 00:000

and pB like so :

offset = -0 : 05 : 00:000 
beginning time = 0 : 00 : 00:000 
end time = 0 : 08 : 00:000

The newly created .rec will contain rA and rB one after the other.


If you have more than 2 .rec files, it might better to automate the process. The logic remains the same, thus the "algorithm" would be something like :

  1. Create a diagram with a player.
  2. Load data set 1 into player
  3. Connect player to recorder
  4. Run
  5. Check player percentage -> when 100% -> Player shutdown (not the full diagram just the player)
  6. Player load data set 2
  7. Player.offset = - currenttime ("moins currenttime"). 
  8. Run & repeat steps 5 to 8 as needed


related references :

user manual p. 77

Tagged:
Sign In or Register to comment.