Hi Polina,
Great to hear you got it to work. Actually, my original advice was for PointGrey cameras, I forgot you were using an IDS uEye camera! I don't know what their pin configuration is, but if you see the strobe data, then I guess it should be working...
1. Regarding the strobe duration, again I don't know about IDS, but for PointGrey, if you set the duration to zero it actually makes the strobe be the same as shutter exposure time, which is usually slow enough that you'll see the pulses clearly on ephys samples and gives you maximum information about image acquisition.
2. If I remember correctly, the Bonsai IDS node takes a uEye configuration file as input. Whatever settings you have saved in the configuration file will be used for acquisition, including frame rate and any other settings. You can generate these files using the provided IDS uEye camera viewer.
3. You can find the frame counter in the ImageInfo.FrameNumber property (right-click on the IDS node). You may need to activate it in the configuration file using the uEye camera viewer, but I don't remember the menus by heart.
Finally, regarding initialization order, yes, this will be critical for easy analysis. In general, you want to start ephys acquisition first and only after start video acquisition. Now this depends actually on how the uEye camera operates with regard to strobing.
Can you check if the camera keeps sending pulses to the ephys even if there is no active acquisition going on? This happens with PointGrey and makes everything much more complicated as you have no way of properly controlling the start of acquisition with software... but let's worry about this when we get there, there are a number of possible workarounds.
Hope this helps.