Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Reloading registers

In continues pulse traine mode you can update the pulse width and delay on the fly.

How do you do this in retriggerd pulse mode.

This can be done with the old 16 bit timers so why not with the 32 bit timers. This is very limiting

It sort of works but seem to update only after a second call.

Resetting the timmer everry time the delay or pulse width is change is not an option for me as it breaks our products.

To give you an idear.
counter1 open flow valve. (ok)
Conter2 close spill pulve, (presure increase)

reset counter1 to change delay ( Flow off) pressure increase Bang. No good.

Thanks
Colin
0 Kudos
Message 1 of 4
(3,478 Views)
Hi Colin,

I found this example program on our Developer's Zone. Generating a Retriggerable Pulse with Changing Pulse Specifications Maybe this is just what you are looking for?

I hope this helps!

Russell
Applications Engineer
National Instruments
http://www.ni.com/support
Message 2 of 4
(3,478 Views)
Hi Russell

Looks like it might help but the link does not work.
I will try to find it but I will proberly get losted.
Thanks
Colin
Forgot to say I am not using Labview but Borland c++ builder.
0 Kudos
Message 3 of 4
(3,478 Views)
Hi Russell

Found it.
I will look at it at work as we have Labview there.

I have tried using Switch Cycle before but found that on the first change nothing happend and on the second change the first value is used and so on. Perhaps I am doing something wrong so I will experiment a bit more.

When I first start the counter I start then as normal for rettrig pulse than change to using Switch Cycle.

Might stop me breaking Injectors or pipes (Diesel injectors test bench)

Thanks
Colin

Delphi Diesel Systems
London
0 Kudos
Message 4 of 4
(3,478 Views)