labscript-suite / labscript

The 𝗹𝗮𝗯𝘀𝗰𝗿𝗶𝗽𝘁 library provides a translation from expressive Python code to low-level hardware instructions.
http://labscriptsuite.org
BSD 2-Clause "Simplified" License
9 stars 48 forks source link

Controlling triggering edges of pseudoclocks #98

Closed zhang-wenjun closed 1 year ago

zhang-wenjun commented 1 year ago

Hi, I'm using PrawnBlaster as the master pseudoclock to synchronize all of my instruments, including a Novatech DDS (409B-AC). When configured as triggers input through the "TS" port, it is triggered by falling edges, instead of rising ones. However, the default setting for PrawnBlaster is to use rising edges. Is there any convenient way that I can tell PrawnBlaster's labscript class to generate code based on falling edge triggers? Or to simply reverse the output of PrawnBlaster.

(Another question with Novatech actually based on the 3rd party library naqslab_devices, but in case you know the solution.) It seems that the "synchronous" mode requires trigger signals both on "TS" and "IOUD" ports, falling "TS" to tell the device to move on to the next table step, and rising "IOUD" to tell the device to trigger. Is there a convenient way that I can do this?

Thanks, a lot!!

zhang-wenjun commented 1 year ago

Sorry that I just found there were already some discussions and this is the wrong place to post. Closing this issue.