
Originally Posted by
drlava
This SDK has now been updated to version 2.1, supporting more DACs
Thank you for writing that library. I have two 2.5W LaserCubes I am trying it on.
Couple of questions and suggestions if you don't mind.
1 - Have you considered to put your project on Github so others can contribute to it? So far I failed to find it.
2 - The constant N_FRAMES is defined in the demo as 400 but on line 66 and 183 the number 400 is hard coded.
3 - I would love to see more comments in your demo code.
It all works but the scan speed gradually gets worse over the time the demo runs. The perfomance data written to log.txt when running LDL.bat is similar to your included log_LaserCube.txt
Code:
Information:
Wrote 400 Frames to DAC
Checked DAC's buffer status 2360 times
DAC's API averaged 2.006 ms per send request
and averaged 1.932 ms per status check
totalling 13.406 ms used by the DAC API per frame
Histogram of wait time used by status function calls:
0 ms: 0
1 ms: 154
2 ms: 2132
3 ms: 74
Histogram of wait time used by frame write function calls:
0 ms: 0
1 ms: 24
2 ms: 347
3 ms: 25
4 ms: 1
5 ms: 0
6 ms: 0
7 ms: 1
8 ms: 2
By the way the LaserCube performance is not great when compared to the other log files in your SDK zip.
Regards
Paul