07-29-2020 05:15 AM
Hello everyone,
I need to generate a TTL signal to control an AOM(acousto optical modulator) in real time.
I got a BNC-2110 block from NI which is connected to a PCIe-card. My idea is to connect one of the PFI-channels to the 'User-Defined Signals'-BNC ports and use the output to turn on and off the AOM.
So far all other instruments are controlled via Python, so I would like to do the same with the BNC-2110.
My problem is that I am rather unexperienced in handling the 'nidaqmx'-packages. I know that I can somehow set the 'DigitalDriveType' or the 'LogicFamily' but I do not know how to actually generate an output.
I found a few examples but they are not commented, so for me as a beginner not really helpful.
I would be grateful for any advise.
Thank you very much in advance.
Best regards,
Lukas
10-27-2020 09:22 AM
There is a DO example in below link which might help you. Setting the level of DOs depends on your DAQ card too, so first you might find out whether it has the option to change DO levels or not.
https://github.com/ni/nidaqmx-python/tree/master/nidaqmx_examples
Available python functions for NI DAQ are documented in below link.
https://nidaqmx-python.readthedocs.io/en/latest/
06-01-2022 11:58 PM
Hi
Have you been able to get this working? I sort of have a same goal with my BNC-2110. Instead of AOM, I have to start/stop moving the stage with the TTL pulse output as a first step.
Please get back to me when you get time
Thanks in advance