LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Internal Clock NI USB DAQ 6212

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?

0 Kudos
Message 1 of 6
(258 Views)

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?


  • Which other device?
  • What did you try? Mind to share your VI and show us where that error occured?
  • What is "precise"? ms, µs, ns, as?

You can use the DAQmx internal clock with every hardware-timed task you like…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(245 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 6
(237 Views)

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

0 Kudos
Message 4 of 6
(201 Views)

jyux_0-1718896188456.png

jyux_1-1718896336034.png

 

Hello,

 

Here is my code. It is pretty simple. 

  • Which other device?
  • I am trying to trigger an AFG. 
  • What did you try? Mind to share your VI and show us where that error occured?
  • You can find the error and code in the attached picture.
  • What is "precise"? ms, µs, ns, as?
  • I want a delay of 10-55 us. 
0 Kudos
Message 5 of 6
(191 Views)

I am trying to replicate a TTL trigger using AO port of DAQ. So, shouldn't it be a static output?

 

0 Kudos
Message 6 of 6
(187 Views)