Jump to content
  • 0

TimerPulseOut Question


C. Drutman

Question

I am trying to run the TimerPulseOut.c program, and no matter what I enter for the frequency, I measure ~114 Hz on my scope. The default value for the frequency is 1,000, and building and running the program gives ~14 Hz. If I change the frequency to 10 and rebuild and run, I still get ~14 Hz. Any suggestions? Thanks.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
On 12/30/2022 at 2:24 PM, Fausto said:

Hello @C. Drutman.

I tested a USB-1608GX-2AO module with MCC's UL for Linux and the 'TmrPulseOut.c' example worked as expected.  The TMR and GND terminals were connected to an oscilloscope and displayed a 1 kHz pulse output.

Which OS and Universal Library API version are you using?

Regards,

Fausto

I am using the USB-2627 with the ULDAQ-1.2.1 API. The TMR0 and AGND are attached via alligator clips to a BNC which connects to my scope. Someone suggested that I need to set the sampling rate of the board, but I did not see a call like that in the API or any of the examples.

Link to comment
Share on other sites

  • 0

I clipped my scope probe onto pin 33 on the J4 header connector and the TmrPulseOut.c example worked as expected, I got an 8000 Hz square wave. 

double check your connection and maybe try the other timer on pin 32.

And, there is no need to set a sampling rate.

Link to comment
Share on other sites

  • 0
18 hours ago, JRys said:

I clipped my scope probe onto pin 33 on the J4 header connector and the TmrPulseOut.c example worked as expected, I got an 8000 Hz square wave. 

double check your connection and maybe try the other timer on pin 32.

And, there is no need to set a sampling rate.

Not sure what changed, but this morning everything is working as advertised. Thanks everyone for all your inputs.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...