What is the best way to generate and output a continuous sinusoidal on NI USB-6008?
1 次查看(过去 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!