From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-05-2012 01:48 AM
Solved! Go to Solution.
06-05-2012 11:31 PM
Hello Tokodaisei
Thanks for using National Instruments Discussion forum.
Please provide a little more information about what you are actually doing.
1) How do you operate Nikon RX1000-22-1 Rotary encoder.i.e. moving it manually or it moves with some motor.
2) how do you produce analog pulse.(using DAQmx analog output? do you want to start it at the specific position of encouder.)
For that you need to first recognize the specific position of encouder and then generate a pulse at that instant,which then,
triggers the analog output.
3) Can you attach your code over here.
06-10-2012 09:37 PM
1.) The rotary encoder will move with the engine, so it will basically represent the crank angle.
2.) I am using DAQmx anaglog ouput to produce the signal and I need the pulse to be triggered at a certain angle which can be easily set by the user. The encoder has a signal that pulses 1000 times per revolution(signal A or B) and a different signal that pulses once every revolution(signal Z). We would be using that pulse to indicate TDC for the crank angle, and then use the more frequent pulses to determine injection delay.
3.) The filename and some of the notes are in Japanese, so I'll do my best to describe the important parts. 分周カウンターの信号 means "signal for division counter" and 分周のためのカウンター means "counter for division"
The imputs on the left, in the wire diagram, in descending order are Duty, duty delay time in microseconds, injection duration in microseconds, voltage, and below those four is パルス数(blah blah), this is the user defined number of pulses to wait before the analog output signal is generated.
06-11-2012 04:28 AM
Thanks for replying back.
I have seen your program code though エンジエクト生成信号.vi is missing.
I think you want analog output to be triggered at specific position of encoder genereting 1000 pulses/rev.
here, (present pulse *360)/1000 should give you the present angel of Crank shaft,where you need to gerenete a pulse signal
at particular position.This pulse signal should trigger Analog output VO.
You can use measure angular position of encoder and then connect A phase signal of encoder as a trigger source for
Analog Output.
you may find this link quite help.
Angular Position Measurement with a Quadrature Encoder:
https://decibel.ni.com/content/docs/DOC-17346
I took the liberty to gerenete a program which connects pulse source (A phase signal) to analog output when particular position of encoder is
reached.I have attached this program for your reference.
06-11-2012 04:28 AM
sample is here.
06-12-2012 11:34 PM
Thank you for the help. I left the one file out because its function was operating properly for me already. The suggestions you mentioned helped a lot.
06-13-2012 01:29 AM
I am pleased it helped you.
Always feel free to use National Instruments Discussion Forum.
regards,