Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6215 analog output problems with analog input and counter reading

Hi, I am using Labview 8.2 and trying to get one channel analog input and one counter reading, meanwhile one channel analog output based on the analog input. 

 

I am using USB 6215.  It seems that I can get the analog input and counter reading o.k., but could not generate any analog output at 1000Hz.

 

The device does not support hardware sampling so I used continuous timing and sample clock.

 

Here are some screen shots.  Any suggestions on how to get the analog output work?

 

Thanks.

 

Fug101

 

USB6215a.jpgUSB6215b.jpg

0 Kudos
Message 1 of 7
(4,188 Views)

Hi Fug101,

 

Could you please post your code? 

Regards,
Jim Schwartz
0 Kudos
Message 2 of 7
(4,164 Views)

Hey,

Try changing DAQmx sampling in AO to conti. instead of finite and also set your AO to non-regeneration using DAQmx property node.

 

cheers

-Lab

 

 

0 Kudos
Message 3 of 7
(4,163 Views)

Code is attached.

 

Thanks.

 

 

0 Kudos
Message 4 of 7
(4,157 Views)

Thanks, how to set the property node? could not find out.

 

Could you please show an example.

 

 

Fug101

0 Kudos
Message 5 of 7
(4,155 Views)
I have attached a picture that will show you where to find the regeneration property node.
Regards,
Jim Schwartz
0 Kudos
Message 6 of 7
(4,133 Views)

Jim,


Thanks.

 

It seems now it starts to work.  But here comes another issue.

 

 

The Analog ouput does not update in time (embedded in the while loop).

 

 

Also, when it works, there is a significant delay between the sign flip (controlling the motor direction) and the real action of motor -- about 1 second.

 

 

The question is, how do I update the AO channel instantly when the sign is flipped.

 

 

Best,

 

fug101

0 Kudos
Message 7 of 7
(4,100 Views)