Events not working in NS2 #103
-
For some reason my events are not being detected by NS2 and even when i generated a new events file within NS2 it is not detected or displayed. events work as usual in NS1. any help is much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi I need some more details on this issue to help. Could you share your *.events.mat file and I can try to troubleshoot. When you say you generate an events file within NS2, is this from the Analysis menu (Analysis->Events->Create_empty_events_fie)? Do you see an error in Matlab? |
Beta Was this translation helpful? Give feedback.
-
Your questions sparked some ideas that allowed me to resolve the strange issue, which I am still unsure the cause of. Basically i had an events file generated from the standalone function bz_findripples that would not autoload into NS2. I then made a new file from analysis menu like you suggested and pasted in timestamps - still didnt load. i finally deleted it, reran bz_ripples from the NS2 GUI and everything loaded up as it should. |
Beta Was this translation helpful? Give feedback.
-
As with your metadata, I believe this is also caused by deviation from the events format. You can find an example rippe.events.mat file here, and documentation here. The struct has to have the same name (StructName) as the name in the filename. basename.StructName.events.mat, and the struct has to have a timestamps field with correct dimensions. |
Beta Was this translation helpful? Give feedback.
As with your metadata, I believe this is also caused by deviation from the events format. You can find an example rippe.events.mat file here, and documentation here.
The struct has to have the same name (StructName) as the name in the filename. basename.StructName.events.mat, and the struct has to have a timestamps field with correct dimensions.