Quantcast
Channel: Counter/Timer topics
Viewing all 1250 articles
Browse latest View live

NI 6608 timestamp TTL signal

$
0
0

Dear all,

 

I am currently trying to figure out how to timestamp each rising edge of a TTL signal. I have a magnetic rotary encoder with 1024pulses per revolution, outputting 2 TTL signals and a reference pulse once every revolution. My measurement setup consists of PXI with a NI6608 card. I have wired the TTL signals to the CTR0 Gate and CTR1 Gate (PFI38 and PFI34).

 

My main task is to measure the rotational speed with the best possible accuracy, and hence I would like to "timestamp" each rising edge based on the 80Mhz Clock, although I still have no idea how to do this. I currently imagine the solution being:

-create a counter based on the 80Mhz clock

-write counter to buffer for each rising edge

-output & clear buffer each 10ms

 

The maximum frequency of my TTL signal will be ~110kHz. Looking forward to your help!

 

With best regards,

Ben 


Linux NTP/PTP timestamps

$
0
0

Hello,

 

I have a 1095 PXIe Chassis and 7972R FlexRios. I am trying to get a RHEL computer to decode a timestamp. I know windows does this with the 6683H module, but is that is unsupported in Linux. Are there any modules that can decode timestamps for RHEL? Is there a route to get NTP/PTP timestamps from a server?

 

Thanks,

How to measure pulse width from a signal that is switching ground?

$
0
0

I need to measure pulse width on automotive injectors.  The trouble is that the ECU switches the ground side, not the high side.  When we connect the injector signals to the counter timer board, in this case a PCI-6602, the ground is pulled down and the injector opens continuously.

 

We can see this signal on the scope with high impedance, but not with the card because of the short to ground.

 

Thank you.

9411 Cabling - Impedance Matching

$
0
0

What is the recommended characteristic impedance of the cable used to connect a sensor to to the NI 9411's differential DIa/DIb channels? Would either 100 ohm or 120 ohm be appropriate?

6602 6612 differences

$
0
0

I have a project using a 6602 PCI to collect 2 arrays of time stamps of pulses from 2 encoders using DAQmx.dll i.e. .NET. c#.  In order to synchronize the 2 encoder tasks data for comparison, I create a "starter" task that is triggered by a digital edge trigger (a PFI).  Then I create a task for each encoder and make their digital edge triggers point to the output of the "start" task.  This is all working very well.  Now I have a new 6612 counter card and thought I could drop it in as a replacement, but instead I am getting the following error:

 

"The specified resource is reserved. The operation could not be completed as specified.

Task Name: _unnamedTask<0>

Status Code: -50103"

 

What difference between the 2 cards could be causing this?  I have looked for differences between the 6602 and 6612 but have only found where 6612 can handle more instead of less. 

 

Thanks for your time.

Route Internal Clocks to PFI lines

$
0
0

I am trying to route an internally generated clock to various modules (6674T and 6584 specifically) via their PFI or clock lines.

 

I tried using NI-sync for the 6674T to no success. I tried doing whats listed in this article too https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019P3gSAE&l=en-US as well as this article https://forums.ni.com/t5/LabVIEW/6674T-clock-distrubution-via-DStarA-with-4-7966-FlexRIO-modules/td-p/2719433?profile.language=en.

 

Is there a straightforward way to route a clock (in this case instantiated/defined in the 6584 'library') to the other modules and such? When I use NI-Sync, I cant just pull the clock up as a destination for a trigger or source

 

Thanks!

 

 

 

pulse output at 1 sample or burst at once for uniform pulse train generation: counters

$
0
0

hello,

for counter output to drive a stepper motor which option is better.

1. to generate 1 pulse at a time in a while loop with a rate defined by ms delay vi

or 

2. burst of pulses at once 

if we use option 1 is it accurate to pulse time periods of all train of pulses 

thanks

Driver issues after upgrading to Windows 10

$
0
0

We recently had to upgrade our experimental control computers to Windows 10, and I'm having issues with devices not being detected ever since the upgrade. Screenshots of NI-MAX and the Device Manager from one of the computers is attached. I tried disabling Fast Startup, as suggested by this page, but it didn't work. I also tried updating the NI-DAQmx drivers to the current version, also with no success. For the USB devices, I've tried disconnecting/reconnecting and rebooting the devices, and that didn't work, either. Has anyone else run into this issue, and if so, do you have any suggestions for how to fix it?


Need a simple program (example?) for NI9361 to capture frequency at 1-second intervals.

$
0
0

Any advice? The NI examples are anything but simple to a LabView beginner, due to my lack of understanding the MANY tools being used in those examples.

 

Something simple is needed: continuously read input counts at 1-second intervals (and reset those counts to 0 for the next 1-second interval). That's all that is needed, no scaling, indexing, array-tracking, etc., etc., which just confounds a beginner in this pictographic LabView.

 

I understand that only 1 program is allowed in this module, so if all 8 inputs must be read at once. I will just ignore the unused inputs.

cDAQ 9174 CtrlInternalOutput duty time

$
0
0

Hi everyone,

I am new to the LabVIEW coding. I have a application for analog data sampling with cDAQ 9174, NI 9401 and NI 9215 programmed by my former colleague. In this app, he set the rate and duty cycle of a counter in NI 9401 but used cDAQ-9174/CtrlInternalOutput as the sampling clock source for analog data input. But he just set the sampling rate in DAQmx Timing VI for analog input task. Does anyone know how to know the duty time of cDAQ 9174 internal counter 1. Was the duty cycle of  cDAQ-9174/CtrlInternalOutput related with that in NI 9401 counter 1?

Thanks very much.

NI USB 6221 Counting

$
0
0

Hey everyone,

So we are looking to get an NI USB 6221 for a project. The idea is that we want to use it to read the data coming out of a photon counter (in the form of TTL signals), at a rate of 10mHz. We have tried using the USB 6008 but have realized that it has no timing capabilities, and can not use an external clock.

 

So our hopes are that the USB 6221 will be able to read the data out of the photon counter with and without an external clock. Is this reasonable? I have looked at the data sheet but would just like to confirm that it can actually do what we want it to do first.

 

Thanks!

Duty cycle measurement using NI DAQ USB-6003. (Help needed with C coding)

$
0
0

Hello, I am a beginner using DAQ and my objective is to read absolute rotary encoder PWM output signal. Currently I have got NI DAQ USB-6003 which has only one counter and two PFI-0,1 channels. My encoder output frequency is 1.1kHz. Could anyone help me with duty cycle measurement? It would be really grateful if you can help me with the algorithm (C language) too. Thank you! 

start and stop of counter output

$
0
0

hi, is there anyway to start and stop counter output after specific time without using DAQAssistant. i am using DaqAssistant to start a counter.

e.g, from 1 to 4 sec Counter out in on and from 4 to 8 counter output shud have to 0. and again after 4 sec counter out put have to be enabled .

Two pulse trains, one with delayed time

$
0
0

Hi,

 

I am trying to get two pulse trains using VI I attached here. I am able two produce two pulse trains but the amplitude of one is very low (0.2V) than expected. Can you please help me how to get same amplitude (5.0V) foe both pulse trains?

 

Regards,

Bharat

1-D Boolean array to be used as a Pause Trigger input of a counter

$
0
0

Hello everyone,

  

The issue that I have is I couldn't find an efficient way of creating a custom digital signal to feed the counter's gate input. I'll elaborate the problem later but first here are the details of the system that I am using: 

 

*DAQ device: PCIe-6363 (Port 0/line0-7 can be used for buffered operations, Port 1 and Port 2 can be used for unbuffered operations or as PFI lines) 

*SW: LabVIEW 17.0

*External 10 MHz clock is connected to PFI4. A 10 KHz continuous pulse is generated using a Counter Output Pulse Tick Task (ctr0) based on the 10 MHz external clock. The 10 KHz pulse will be used as the main clock (MAIN CLK) in the system. 

 

Now let's go back to the description of the issue. Assume one (ctr1 in the VI) of the counters (in total there are four counters) in the DAQ device  is being used to count the raising edges of some digital signal available at the input port of the counter. For this task, the "Sample Clock Task.vi" is configured such that the source of sampling (source input of the task) is connected to MAIN CLK (output of the associated counter). Furthermore, a Pause Trigger Property  Node is used to pause/resume edge counting task. Attached VI shows the system configuration so far. 

 

Here my question is: If the information of shape and time (with respect to MAIN CLK) of the pause trigger signal are known prior to start of all the tasks in the system, how am I going to generate and implement the pause trigger signal at Pause.DigLvl.Src input?

 

To clear things up:

Assume, I have a 1-D Boolean array (not necessarily be periodic), whose elements and size are known and going to be used to generate the pause trigger waveform. AT EACH rising edge of the MAIN CLK,  if the current element of the Boolean array is TRUE (or FALSE), then the state of the Pause Trigger will be HIGH (or LOW).  That waveform should appear at the GATE input of ctr1. Is it possible to achieve this? If yes, what would be most efficient way in terms of using resources? Two counters (out of four) left, for example, it would be better if less number of counters are utilized at the end. 

 

Attempts:

I, first, tried to use Digital Output Write Task, which is sampled with MAIN CLK to write the elements of the Boolean array to one of the output ports. However, GATE input of the counter cannot be set to hardware-timed Digital I/O lines (in this case port 0/line0-7). I can select one of the PFI lines (Port1 and Port2) but now those lines are not available for buffered operation that I am using during Write Task.

 

Second attempt that I am considering is to use "Change Event Detection" feature to realize the pause trigger waveform from a custom Boolean array. This approach is again based on updating the line Port0/line0  at each clock edge, where any transition from LOW to HIGH can be captured by Change Event Detection. I don't know the details of this feature so any feedback regarding the method and/or other issues would be greatly appreciated.  

 

Thanks for reading.

Best,

CHA 


RESET ESCAPE TIME ON WHILE LOOP BY USB - 6525

$
0
0

Hello.

I have problem with sequence loop. First start(USB-6525) while loop program run complete when I start(USB-6525) run again program start run normally but escape time is not reset. I need reset escape time when I start(USB-6525).

Please help to explain how I revise it.

Thanks.

Ai

Data acquisition using FPGA in a while loop

$
0
0

I am currently trying to read from and encoder using a SEA 9521. The encoders datasheet states the kind of timing that needs to be done with variables iI am not quite sure how to figure out. Attached pictures are of how I have it set up in labview and the encoders data sheet on the timing. I am lost on it if there is not enough information please let me know. 

NI9401 counter port is interferenced by NI9482

$
0
0

NI9401 is used for calculating encoder signal, but when NI9482 is activated to control 220Vsolenoid valve, there are a lot of noise are found in the NI9401 port while the encoder signal isn't generated.  NI9401 is located in the first groove and  NI9482 in the fourth groove of NI 9174.

 

How can I eliminate the noise?  

Counter/Timer device PCI-6602 output frequency.

$
0
0

Dear Community, 

 

I am in the process of building a HIL (Hardware in the Loop) setup to test Automotive ECU's. I am currently using Simulink Real Time R2016B to do this.

 

I need to generate a crankshaft and camshaft signal. This is a block signal with fixed amplitude and variable frequency, a so called: Hall effect sensor. 

 

To simulate a drive cycle, I wish to update the frequency 500 times per second. Up to a frequency of around 3.5 Khz. The signal amplitude should range from 0-5V. Furthermore, I need to simulate 5 different hall effect sensors to the ECU. 

 

I have narrowed down that I need the NI 6602 PCI card, since it has 8 timers, where the other cards have only 4.

 

Is it possible to generate stable engine or wheel speed signals with this hardware board?

 

Kind regards, 

Peter

PXI-6612 Max frequency counter

$
0
0

Hello everyone,

 

I have a question about NI PXIe-6612 frequency counter card.

I saw on datasheet that we can measure 80MHz frequency on one input but is it possible to push it further? I mean to measure 100Mhz with using double counter? or using prescaller x8 to reach 100MHz frequency measure?

 

Thanks.

 

Thomas.

Viewing all 1250 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>