What is the best way to generate and output a continuous sinusoidal on NI USB-6008?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!