I was playing around with the plugin devkit and thought I'd make a simple wrapper around a waveform generator. I have it generating 1000 S/s, 100 samples at a time with a periodic timing of 100ms (set with Set Plugin Timing).
It works as expected in the PluginEnvironmentSimulator, but in Flexlogger the timing scale is off by a factor of 1e6 (dt is set to 1000 seconds instead of 0.001 seconds as confirmed by examining the produced TDMS file).
I've tweaked the dt going into CreateChannel_v2 (I tried 0.001 initially, then 1000 with no change) and the dt going into Set Stream Timing (0.001 initially, then 1000). All of these lead to the same result, the resulting tdms file has a waveform x-step width of 1000 in every combination I've tried. Putting the output onto a graph in FlexLogger also makes the time zoom past.
Again, with the PluginEnvironmentSimulator, it works exactly as expected and the time axis steps past at a stately second per second...
Playing with it a bit more and the Create Channel_v2 dt input doesn't seem to have an effect in either place. Setting it to 0.001, 1000, or no input at all and both places behave the same (Flexlogger is 1000000x fast, simulator works as expected).
Set Stream Timing does affect the simulator, making it speed past like FlexLogger does if set to 1000 and works as expected set to 0.001.
Any ideas what might be the matter here?
Project attached, LV2024Q1/FlexLogger 2024Q4