03-01-2017 09:36 PM - edited 03-01-2017 09:38 PM
03-02-2017
03:28 PM
- last edited on
07-12-2024
08:53 AM
by
Content Cleaner
Hello ashenoy,
Here is an example to generate a digital signal using an analog I/O https://forums.ni.com/t5/Example-Code/Archived-NI-DAQmx-Creating-a-Custom-Pulse-Train-Using-Analog/t..., the signal you need is pretty slow so it will be fine. It seems the PCI-6713 has 2 counters if that's helpful as well.
For accessing the signal on the BNC 2110 is the same I/O that you set in the code.
Regards,
PedroR
03-02-2017 03:47 PM
Hi Pedro,
Thanks for your reply.
Can you let me know how to access the counter on the BNC (i.e. which BNC socket)? I think using the counter would be more robust. Is there a way I can control the frequency of the pulse generated by the counter?
Thanks!
03-02-2017
05:41 PM
- last edited on
07-12-2024
08:54 AM
by
Content Cleaner
ashenoy, take a look at LabVIEW examples by going to Help -> Find examples -> Hardware Input and Output -> DAQmx -> Counter Output. You can choose PFI (this is labeled on the BNC) as well as in the code, for this BNC you have 2 counters output in BNC form or you can output them using wires in the screw connection. You also choose the rate, duty cicle and if you want to have a trigger.
This link is very good when you are starting with DAQmx https://www.ni.com/en/support/documentation/supplemental/06/learn-10-functions-in-ni-daqmx-and-handl...
Regards,
PedroR