06-19-2024 01:43 PM
Hello All,
I am fairly new to Labview.
I am trying to write a VI for triggering a device and it needs to be precise. I want to access the internal clock in the DAQ for this but I am getting a Error -201025, so I want to make sure if:
1) The DAQ has an internal clock. If yes, how can I use that?
2) I am trying to build this code for triggering one more device (2 devices in total, with certain delay in 2nd trigger signal based on 1st). Are there any examples that I can follow for such?
06-19-2024 02:03 PM
Hi jyux,
@jyux wrote:
Hello All,
I am fairly new to Labview.
I am trying to write a VI for triggering a device and it needs to be precise. I want to access the internal clock in the DAQ for this but I am getting a Error -201025, so I want to make sure if:
1) The DAQ has an internal clock. If yes, how can I use that?
2) I am trying to build this code for triggering one more device (2 devices in total, with certain delay in 2nd trigger signal based on 1st). Are there any examples that I can follow for such?
You can use the DAQmx internal clock with every hardware-timed task you like…
06-19-2024 02:15 PM
Are you referring to the AI sample clock? As far as I am aware, the USB-6212 only has static outputs and therefore cannot output the clock. It is sounding like you might need a cDAQ with multiple modules that you can easily share triggers and sample clocks with.
06-20-2024 07:24 AM
It sounds like you are doing something similar to the Counter-Finite Output example that ships with LabVIEW. I'm using a USB-6212 to drive a stepper motor, with CO-0 going to a CO Pulse Freq function for Step Freq (which generates a DAQmx Channel that gives me the CO.Pulse.Term input), and Terminal 12 going to the CO.Pulse.Term that I just defined, which I use as the Step Counter. This is basically the code from the Example -- I've broken it up into an "Initialization", a "Generate a finite number of Steps", and a "Close up Shop" routine..
Bob Schor
06-20-2024 10:13 AM
Hello,
Here is my code. It is pretty simple.
06-20-2024 10:30 AM
I am trying to replicate a TTL trigger using AO port of DAQ. So, shouldn't it be a static output?