custom waveform from python API

29 views
Skip to first unread message

Zach Saccomano

unread,
Dec 6, 2022, 7:05:42 PM12/6/22
to Michigan-Optoelectrodes
Hi, I have used custom waveforms with the GUI. It seems it should be easy therefore to send out a custom waveform from the python API? If so, whats the syntax for this?

Zach Saccomano

unread,
Dec 17, 2022, 7:20:56 PM12/17/22
to Michigan-Optoelectrodes
Hi just in case someone ever looks at this... A clarification: I understand that in some parts of the github its written that custom waveforms are not supported. However, I speculated that this comment was old, because (1) custom waveforms can be sent with the GUI (although the code for that is compiled) (2) there is a lot of code for custom waveforms written in osc1lite.py and (3) I get no error (but no light is delivered) if I execute the commands:

osc.set_channel(led_now, osc1lite.ChannelInfo(osc1lite.CustomWaveform(wave=list(u), index=1,clk_div=500000000)))      
osc.trigger_channel(led_now)

Am I misunderstanding the syntax? In contrast, if development for this was started, but never completed: I would be happy to work on it myself. If anyone has some notes (explaining some of the lines of codes that are not commented) that would be helpful. 

Thank you

Nathan Slager

unread,
Dec 17, 2022, 7:46:50 PM12/17/22
to Michigan-Optoelectrodes

Zach Saccomano

unread,
Dec 17, 2022, 10:26:22 PM12/17/22
to Michigan-Optoelectrodes
Hi, Thanks so much for your reply! Yes, I have used this document to do many experiments with square waveforms... but it does not include an example of sending custom waveforms from the API.
Reply all
Reply to author
Forward
0 new messages