stream_to_file
Save the streaming session to a fileNot a HTTP endpoint
This method is available only with Python and MATLAB clients. It uses mokucli to stream LI binary data to csv or other possible formats.
stream_to_file
accepts a single parameter file_name
which can be any valid name with one of csv, mat, npy
as extensions.
Examples,
from moku.instruments import DigitalFilterBox
i = DigitalFilterBox('192.168.###.###')
i.start_streaming(duration=10)
i.stream_to_file() # by default data is streamed to a csv file
1
2
3
4
2
3
4
m = MokuDigitalFilterBox('192.168.###.###');
m.start_streaming('duration', 10);
m.stream_to_file() % by default data is streamed to a csv file
1
2
3
4
2
3
4
NOT SUPPORTED
1