Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

"timeout 6251"

Hello all,

I am using 6251 for communicating with a microcontroller.In my case my microcontroller is generating a pulse width waveform which is having a duty cycle 75% and period 1ms.my high time is 750 micro second and low time is 250.I am getting the waveform from the microcontroller on the CRO.I configured the 6251 pfi12(ctr0) as counter input .i have tested the testpanel for 6251 with MAX.edge counting is happening in the counter test panel .At the sametime in PXI 1042(6251 is placed as device 2) Tx Rx led's are blinking in orange colour.That means waveform is received der right? when i execute my vi timeout error occurs.i am aataching the snapshot of my vi and the error code.

Error -200474 occurred at DAQmx Read (Counter DBL 1Chan 1Samp).vi:1

Possible reason(s):

Measurements: Specified operation did not complete, because the specified timeout expired.

Task Name: _unnamedTask<2>


Thanks for you help in advance
Techiess
0 Kudos
Message 1 of 2
(3,101 Views)

Hello Techiess,

I just tested out your application on my M-Series board and it worked correctly.  Both the Pulse Width and Period measurements only require one counter.  When you perform an edge count, the signal needs to be connected to the source of the counter.  However when performing a Pulse Width and Period measurement, the signal needs to be connected to the gate of the counter. If a signal is not present on the gate, then your task will timeout.

The best way to get the pinout for your device is through Measurement & Automation Explorer (MAX).  Right click on the 6251 under devices and interfaces, then select “Device Pinout.”  There will be a new window that pops up with your device pinout.  At the bottom of the page is table with the counter default pins.  CTR 0 Gate is pin 3 or PFI 9 and CTR 1 Gate is pin 41 or PFI 4. 

There are two simple ways to test this setup.  The first is to create a task in MAX for either Period or Pulse Width measurement.  The task gives you more functionality then the test panels.  You can also use a DAQ Assistant in LabVIEW to create the desired measurement.  There is a test button at the top of both the task in MAX and the DAQ Assistant, which makes sure your counter is working correctly. 

Once the DAQ Assistant is working correctly, you can right click on it and select “Generate NI DAQmx Code.”  If you created a task in MAX, you can simulate the code similar to the DAQ Assistant.  Place a task constant on the block diagram and select the desired task.  Then right click on it and select “Generate Code” >> “Configuration and Example.”

Respectfully,

Rob F
Test Engineer
Condition Measurements
National Instruments
0 Kudos
Message 2 of 2
(3,084 Views)