LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 50103-


@Mcdan wrote:

There are likely several different approaches you can take to solve this problem.  Which DAQ device are you using?  The easiest approach may vary depending on what hardware you have available.

 

In general, you can get around the -50103 error in one of two ways.

1) Use a single timed DAQmx task with both analog output channels.  With this approach, you need to carefully generate the data so that each channel updates to the appropriate values at the appropriate time.  The advantage of this approach is that since both channels share the same sample clock, synchronization between the two channels is already done.  The challenge here then is simply in generating the correct data for each channel.

 

2) Use a digital or Counter task for the camera, and an analog task for the galvo.  This naturally will avoid the resource contention you're running into, but you will need to ensure that your digital output and analog output tasks remain synchronized.  How this is done could differ depending on what hardware you are using.

 

Am I right in assuming that the analog output voltage of one channel directly controls the position of the galvo?

Am I right in assuming that you're using a digital edge to trigger the camera to take a picture?

 

Dan


Hey Dan,

I believe I am using NI 6722 with BNC 2110 as the accessory.

 

You are absolutely correct that the analog ouput voltage from one channel controls the position of the galvo and the the digital edge is used to trigger camera in the other channel.

 

I think I am going to try the second approach because I have synchronized them already later in the labview previously.

Thank you so much for the help and if i come across other problems I will post again.

 

0 Kudos
Message 11 of 13
(363 Views)

@Mcdan wrote:

There are likely several different approaches you can take to solve this problem.  Which DAQ device are you using?  The easiest approach may vary depending on what hardware you have available.

 

In general, you can get around the -50103 error in one of two ways.

1) Use a single timed DAQmx task with both analog output channels.  With this approach, you need to carefully generate the data so that each channel updates to the appropriate values at the appropriate time.  The advantage of this approach is that since both channels share the same sample clock, synchronization between the two channels is already done.  The challenge here then is simply in generating the correct data for each channel.

 

2) Use a digital or Counter task for the camera, and an analog task for the galvo.  This naturally will avoid the resource contention you're running into, but you will need to ensure that your digital output and analog output tasks remain synchronized.  How this is done could differ depending on what hardware you are using.

 

Am I right in assuming that the analog output voltage of one channel directly controls the position of the galvo?

Am I right in assuming that you're using a digital edge to trigger the camera to take a picture?

 

Dan


Hey Dan,

 

I just found out that digital output is not possible with the camera that I am using. I have use the analogous output to create the digital signal. Can you exaplin the first solution in more details?

 

Thanks

0 Kudos
Message 12 of 13
(358 Views)

I've gone ahead and attached an example of each method (sorry they're a bit messy).  Both examples create a ramp pattern with AO, and a 5 V pulse in the middle of each step with another channel.  In one example, I use a counter to create the digital pulses, in the other I use a second AO Channel.  The general idea in the two AO channel solution is that we know that both channels are outputting samples at the exact same time.  As such the pattern we write to the channels must have the correct values relative to the other channel at all times.  With the counter example, I use the AO sample clock as the source of my counter task, and define my counter output pattern with respect to ticks of the AO sample clock.  Hopefully these examples will help clarify my thoughts more than my attempt to type an explanation.  Please let me know if you're unclear about what I've done.

Download All
0 Kudos
Message 13 of 13
(351 Views)