ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pulses input

Hi,
I have a system where my sensor requires inputs in terms of pulses,presently i'm using counter channel of 6024E card and generating pulses for ceratin frequency.what i require is that ,since pulses are going at consistent rate.I need to skip some 2 or 3 pulses in between and then transmit again these normal pulses(idea is simulating the effect of noise on that signal and observe system behaviour from it).Can i achive it with the Counter channel or do i need to take any alternate route?
 
 
Thanks
Murali
0 Kudos
Message 1 of 4
(3,037 Views)
Murali,

There are 2 ways to accomplish this:

- stop and re-start your task in software to create that gap in between pulses
- create a finite counter output that triggers off a slower clock, this may not be possible with just the one card you have
- use the digital line to create a custom digital waveform

Abhinav T
Applications Engineer
Naitonal Instruments
Abhinav T.
Applications Engineering
National Instruments India

LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals
0 Kudos
Message 2 of 4
(3,013 Views)

Thanks for your reply Abhinav.


-If i stop and restart the task,i doubt about the time it will take for reconfiguring the hardware and transmittting this pulses again.

can i simply stop  it and start the task (just arm the counter by start task.vi without doing hardware configuration).

one more option i was thinking of is changing the freq on the fly,but can i input a freq of 0Hz for pulses generation to counter channel.If this is possible then i may think of configuring a certain freq first and in between configure it to 0 and then retransmit the original freq pulses.

Is there any program readily available for configuring Freq on fly?
If available, can u send it as it will helpful in trying it out.

- second option of achieving it by a finite counter is not feasible for me at present as i have only single hardware.

- Even i was also thinking of using digital line as a last option

-Murali

0 Kudos
Message 3 of 4
(3,007 Views)
Murali,

The only thing I could possibly dig up is the attached code. It uses Pulse Width Modulation to control the high time and low time. I am working on making an example that start and stops the task, will post when I come up with anything.

Abhinav
Abhinav T.
Applications Engineering
National Instruments India

LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals
0 Kudos
Message 4 of 4
(2,984 Views)