10-16-2007 12:00 PM
10-17-2007 04:53 AM
10-17-2007 09:33 AM
10-18-2007 06:11 AM - edited 10-18-2007 06:11 AM
Message Edited by steorn on 10-18-2007 06:16 AM
10-18-2007 09:18 AM
Hi Shaun,
I have nearly finished outlining a solution to your problem. Before I post though, do you want to create a value change event on the falling edge of the A output of the encoder (Port 0, Bit 0), the B output of the encoder (Port 0, Bit 1), or both A & B?
Thanks,
Ian
10-18-2007 09:39 AM
10-22-2007 04:33 AM
10-22-2007 05:02 AM
Hi Shaun,
Here is an outline of my proposed alternative solution:
This would effectively mean:
Would this satisfy your goal? I am unsure as to your level of experience with LabWindows/CVI so just let me know if you need help implementing this alternative approach.
Kind Regards,
Ian C.
10-22-2007 09:18 AM
10-22-2007 10:55 AM
Hi Steve,
Don’t worry I’m more than happy to help as much as you require and I’m here to do so. I’ve elaborated on what I’ve said in the following bullet points. Perform a search in CVI help on any of the following functions that you are unfamiliar with:
· You can use the DAQmxCreateCIAngEncoderChan function on counter 0 to detect your angle. This doesn’t produce a ChangeDetectionEvent, hence all the hardwiring.
· You can use the DAQmxCfgChangeDetectionTiming to configure the timing of your analogue input acquisition to acquire upon each rising and or falling edge of whatever triggering inputs you require.
The timing is somewhat trickier, how accurate do you want your time stamping to be? In an earlier post you referred to time stamping. CNVGetTimestampInfo returns a stamp to the nearest second, but I assume you require millisecond accuracy or greater?
Many Thanks,
Ian