Hey Alex,
It's nice to hear that you can use this code. Do you get a response from the AOM driver for the "Gpar" command for this/each channel? If not I would check if the BLACS worker uses the right channel names as set on the device. If the channel names set in the labscript_devices file does not match with the ones on the device, the command from self.client.send(ch.encode()+b"|Gpar\r\n") will be probably ignored by the AOM driver. You could also try send this command and read the response in a small separate python script (or other TCP connection) and check if the response makes sense.
Best wishes,
Johannes
Alex --
You received this message because you are subscribed to the Google Groups "the labscript suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to labscriptsuit...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/labscriptsuite/dc2bad06-4eb9-47b4-9e48-44bc4331e5dbn%40googlegroups.com.
Hello Johannes,

Hi Alex,
In your screenshot the connection to the TCP server seems to be fine, because the response "CONNECTED" is sent when the Client connects in the beginning of your script. Your reasd command might only read a single line, so to get the response of the Gpar command you can try just reading again.
The channel names are what is shown on the panel of the Timebase
device (you can also change them in the settings at "custom
names"), so in your case probably also "CH-1" etc.
This is the name you have to use in labscript when you define the
AOM channels in the "connection" keyword of the device.
I'm also not familiar with doing that in Powershell, so you could also test using the same python syntax as in the BLACS worker, like this:
Best wishes,
Johannes
--
You received this message because you are subscribed to the Google Groups "the labscript suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to labscriptsuit...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/labscriptsuite/CABg%3DbWWw2zAzWzxkjYezfS-N7BusvBmt0Wt0HE6gTPhdhVtiQg%40mail.gmail.com.
To view this discussion, visit https://groups.google.com/d/msgid/labscriptsuite/8e037cb0-8281-4933-b2db-ee63462c2e10%40tuwien.ac.at.
I think the triangle ramp can only start at the lower frequency, and the first sweep will always be up. If you want to go down (again), you have to first ramp upwards and then set the digital output to low by calling TimeBaseFreqSweepTrigger.go_low(t) in your labscript experiment. The ramp function was just meant as a "wrapper" to set the ramp parameters all in a single function with the same parameters as in the AnalogOut class (which is not necessary). However, these parameters are static so you could only define a single type of ramp per experiment and channel, unlike the ramps one can do with AnalogOut channels. You could also set start, stop, step size, step time and mode once individually end then just use "go_high(t)" and "go_low(t)" without ever calling the "ramp" function. You could also extend the "ramp" that you can call it multiple times where each time the digital output is changed but the parameters are set only when you call the function the first time.
To view this discussion, visit https://groups.google.com/d/msgid/labscriptsuite/CABg%3DbWX5_zuTWsj4OMgUtyLzJ3yJzF4Rv%2B4A_nMHcWLS%2BcLo%2Bg%40mail.gmail.com.

To view this discussion, visit https://groups.google.com/d/msgid/labscriptsuite/d74b87e0-f129-456b-aee3-2556307890bc%40tuwien.ac.at.