What is the best way to generate and output a continuous sinusoidal on NI USB-6008?
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm implementing a microscope to image volumes. To do so, I'm using an electical tunable lens driven by a voltage to displace the vocal plane. Due to inertia it's beneficial to drive it with a sinusoidal signal. So I generate a data vector, consisting of 200 Samples (one period) and output it via Startbackground continuously (with listener rebuffering). Output frequency is 500 S/s = sinusoidalfrequency 2.5 Hz. Not very fast. But somehow, it's observable (using another NI DAQ-Device), that the sinusoidal voltage changes its frequency slightly or somewhere is a small delay after a certain time... This changes my results significantly and reconstruction of 3D images is getting bad. Let's assume the camera acquires constantly, the problem is somewhere in the NI device.
Currently I generate this signal:
n_Signal=linspace(0,2*pi,200);
Signal=2.3*sin(n_Signal+0.5*pi)+2.3;
Could it be that it's to long/short, to less samples etc? Does anybody have experience?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 National Instruments Frame Grabbers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!