Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Analogue data aquisition, triggering and sample clock configuration using USB-63

Good afternoon.

 

I am experiencing a problem interfacing LabView with a recently purchased NI USB-6366 DAQ. Unfortunatly I'm new to LabView and have been given a LabView .vi file written by a member of academic staff. With an experimental run available soon, I'm looking for help grabbing data with the new DAQ.

 

Tje USB 6366 is in full working order and works with the build in test and test pannels of NI MAX. The attatched DAQ Labview code (DiffSense_2Chan.vi) also works having beed experimentally used with an NI cDAQ.

In the front panel of DiffSense_2Chan.vi. I can select an analogue input channel, in this case Dev1/ai0 which gives data in the NI MAX testing suite (closed for testing of the LabView).

If I also select the Div1/ai/SampleClock and press run I get an error, stating an error occurred at DAQmx Create Channel (AI-voltage-Basic).vi:2 with a possible reason being that the device cannot be accessed.

When this is closed a further error states that an attempt was made to perform a route when the source and the destination are the same terminal. This is complemented by:
Property: SampleCLK.Src
Property SampleCLK.ActiveEdge
Source Device: Dev1 (NI USB 6366)
Source Terminal: ai/SampleClock

I've tried multiple clock types from the drop down list that accesses the DAQ signal list, but to no avail.

I have a suspicion from the data sheet that the DAQ needs a trigger event to start getting data from the analogue input. It also looks like the ADC sample clock needs configuring as it can come from a variety of sources. I'm unsure how to implement these in LabView, being a total novice in it.

 

Unfortunatly I've been lumped with the task of getting the experiments done at short notice, with a different DAQ to that used previously and with no experience of LabView

Any help would be very useful.
Thanks.
Ed

0 Kudos
Message 1 of 3
(4,097 Views)

Start with one of the shipping examples such as Voltage - Continuous Input. That has a clock selector on the front panel and a trigger option.

 

For the 6366, you also need to totally eliminate that second task. Specify mulitiple channels in a single task (i.e. Dev1/ai0:1) and use NChan NSamp for the DAQmx Read.

0 Kudos
Message 2 of 3
(4,087 Views)

Thank you. I'll have a look now.

Ed

0 Kudos
Message 3 of 3
(4,083 Views)