LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 50103 in dual-axis galvo mirrors scanning

Solved!
Go to solution

Hi all,

 

I used dual-axis galvo mirrors(GVS012, Thorlabs) to do xy scanning. But I got error 50103 and error 200290 when the two axis controlling in while the vi worked well with single axis. Is this because the sample clock? What should I do to solve this?

 

Thanks,

Mei

0 Kudos
Message 1 of 2
(2,201 Views)
Solution
Accepted by topic author M.Mei

If you do a search of the forums for "error 50103" you'll see it is a common question and have an answer.  Yes, it is because of the sample clock.  You can't start two different tasks on the same device like you did.  Combine those two channels into one task.

 

Fix that first, then maybe the -200290 error will go away also.  If not, then it has something to do with the timing of your loop or the regeneration mode of your task.  There are examples in the example finder for DAQmx Analog output non-regeneration you should look at.

 

PS, instead of a 1 iteration while loop to turn a scalar into an array, you should have used Build Array.  But actually, if you were only working with 1 channel, you could have used 1 Channel N Samples form of DAQmx Write then you could have wired in the scalar directly!  But that will all go away once you fix your code so there are two channels in one task.  Then you'll combine your two waveforms into a 1-D array using Build Array and feed that into N channel N samples.

Message 2 of 2
(2,178 Views)