06-08-2006 02:58 AM
06-08-2006 07:26 AM
My network pc is not near my LV system so I can't look at your vi 'til later. I'm willing to take a guess though and will follow up after I have a chance to look closer.
Your reference to a simple example and the 'Wait Until Done' makes me suspect that you're configured in a way that requires you to restart or reconfigure your pulse task after finishing your pulse but before the next once-per-rev trigger comes around.
There's a different way to configure your counter so that this stuff all happens in the counter hardware on the DAQ board and there'll be no need for restarting / reprogramming. In hw mode, you could handle a million RPMS if your engine could keep up!
The mode is known as 'Retriggerable Single Pulse Generation.' You should be able to find out more by searching here on ni.com or in the LV help or shipping examples. You may also find useful info with terms like "delayed pulse". Meanwhile, here's a brief overview:
You should wire in 'Ticks' as the units input in the DAQmx Create Virtual Channel.
While configuring the task, you'll need to insert a DAQmx Trigger property node. One of the trigger properties will let you specify that the task should be retriggerable.
If I recall correctly, it's the next part that gets more tricky and un-intuitive. You need to specify that your 360 line/rev encoder should act as the timing source for generating your pulse. It would seem natural to specify that with your call to DAQmx Timing. However, it isn't quite that simple. (As I recall, probably from DAQmx 7.4 or so). You need to pull down the 'Implicit (Couner)' version of DAQmx Timing and when you do, you lose the input terminal that allows you to specify the source of the timing clock. Instead, there's another property node you need to use. I *think* it's found as one of the DAQmx Channel property node items.
Hope this helps get you started,
-Kevin P.
06-16-2006 04:00 PM
Tried to take a look at your vi, but it's in LV 8.0 and I'm still running LV 7.1. Can you save back to version 7.1?
-Kevin P.
06-19-2006 04:19 AM
Hi, it won't let me save to previous version, I think it's because I started of with version 8.
Anyway, if you look at the thread I have managed to get moved on a little by using the
example 'Generate digital pulse retriggerable' which is much the same as what you
had suggested, excpet it does not have a Timing node. This example works at high speeds.
My problem now is how to cause the pulse to be delayed all the time, not just initially ?
If you have any ideas they would be appreciated,
Sandra
06-19-2006 04:23 AM
sorry, the use of the example comes from a reply on a slightly different thread:
http://forums.ni.com/ni/board/message?board.id=170&message.id=186971
thanks for your help so far,
Sandra