07-08-2008 01:35 PM
07-10-2008 06:00 AM
Hi Dave,
I must admit, I am confused as to what you are trying to do. It almost sounds like you are trying to use the signal on Z as your timebase. I am not sure this can be done. Could you explain more what you want from this signal? Are you tring to count position? Or would you like the frequency or period of the signal?
07-10-2008 06:06 AM
07-10-2008 06:51 AM
Hai Dave,
Could you please show the another way how u solved, so that others visiting this thread will get benefits.
Thanks,
Mathan
07-10-2008 07:27 AM - edited 07-10-2008 07:28 AM
I did sort of a work around. I had basically an engine with four sparks timed by a Z pulse. I wanted to know which spark was occuring without having to burn up four channels on my nearly full counter card so my goal was to track the Z and apply the math of my known timing cycle to the Z timing so I'd know what spark was supposed to be happening at a given time.
There were a lot of flaws in that plan including that my program wouldn't know the Z pulse period until AFTER it occured. I'm still waiting for NI to release their "read future data.vi". Hopefully it will be in the "Time Travel.llb". release.
I realized that my timing card has a bunch of DIO's that I could use for the sparks. I did a mock up and it works so far. If I keep this going I'll have a wire to every terminal of my CB-68LP.
One thing I have learned in this year of Labview education is that sometimes your best solution to a difficult task is to come at it from a different angle.
I don't know if this would ever help anyone. I guess if you've maxxed out your counter card it could.
Cheers.
07-10-2008 09:50 AM
07-10-2008 09:54 AM
We usually don't run much higher than 40hz. Do you think I'll have problems?
Thanks
07-10-2008 10:00 AM
Kevin...forgot to ask...any clues on how I could time from the most recent Z-pulse? Based on my current program construction, if I time from the Z I'd need to set it to execute one of four cases during each period of the cycle.
The first 90 degress case 3 would be active. The next 90 case 4, the next 90 case 2, the next 90 case 1. I'd feel safer with that arrangement if I could figure out how to make it happen. I'm still fairly new to timing cards. This has been a great education.
Thanks Kevin...
07-11-2008
08:50 AM
- last edited on
04-21-2025
09:05 AM
by
Content Cleaner
1. At only 40 Hz, your software-timed DIO plan should be able to work pretty well. You won't have 100% assurance, but I'd venture that you can probably do better than 99%.
2. Questions to help me understand better.
A. What kind of timing events are being counted by the other 7 counters? Do you have encoder-like position signals available?
B. You speak of case 3 being active during the 1st 90 degrees (and other cases during other 90 deg segments). What exactly do you mean? Are these software case structure cases containing code that needs to run exactly during certain 90 deg segments? If so, what kind of code is running there?
C. What's the big picture here? Why do you need to know which 90 deg segment you're in? Are you generating actuation control signals (like valves)? What are the timing requirements -- not just speed, but also jitter, i.e., consistency?
D. Do you have budget available for something like a 6221? Sometimes a little extra hardware can save you from some complex and time-consuming software development and debugging. Your answers to the other questions might point toward the usefulness of additional data acq hardware...
-Kevin P.
07-14-2008 12:20 PM