Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spliting substes of time of a Ns3 file #28

Open
G00Z-G00Z opened this issue Jun 29, 2023 · 0 comments
Open

Spliting substes of time of a Ns3 file #28

G00Z-G00Z opened this issue Jun 29, 2023 · 0 comments

Comments

@G00Z-G00Z
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant