Skip to content

Spliting substes of time of a Ns3 file #28

@G00Z-G00Z

Description

@G00Z-G00Z

Hello! I have a problem splitting the ns3 files.

So in my application, we are running some trials at specific time interfvals.
However, we do not turn off the sensor when we are making the trials

For example:

  1. We turn on the sensor
t Action Duration
t=0 Take trial one 10secs
t=10 wait 40secs
t=50 Take trial two 10secs
t=60 Take trial three 10secs
t=70 wait 5secs
t=75 Take trial four 10secs
  1. Turn off the sensor

This produces a very large .nsx & .nev files due to the wait times.
Using the python utilities, I already have the exact intervals of trials.
However, we'd like to save subsets of nsxfiles with the specific time lenght of the trials:

E.g:

  • trial-001.nsx (t=0, 30secs)
  • trial-002.nsx (t=50, 10secs)
  • trial-003.nsx (t=60, 10secs)
  • trial-004.nsx (t=75, 10secs)

The Nsx api allows to save subsets of time, but not specific intervals of time.

Is there a way to save a specific interval of time?
Also, another alternative using the subsets would be to create smaller substes
and then combine them to generate the interval I need...

Thanks for your time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions