LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple analog output examples USB-6343

Solved!
Go to solution

I have tried going through the "Find Examples" and cannot figure out how to find what I want.  

 

I'm trying to do simple analog output on a USB-6343.  Some of the waveform examples say they work with the USB-6343 but I don't really want a waveform, just analog output at no more than 10Hz change rate.  Some of the simpler examples show that they work with the pcie-6343 but do not list the USB-6343.

 

I have worked with USB-6009 in the past, but the when I try to use an analog output task that uses 1 sample on demand, I get the error "Non-buffered hardware-timed operations are not supported for the device and channel type.  Set the Buffer Size to greater than 0, do not configure Sample Clock timing or set Sample Timing Type to On Demand" 

 

I have tried N samples, 100 samples to write at 10Hz - same error.  Continous samples - same error.  1 Sample - HW timed - same error.

 

Is there a set of I/O examples for the X-series?  Is it possible to search the examples by device rather than going through all the examples and checking the device list individually?

 

Is "buffer size" the "Samples to Write" in MAX?

 

0 Kudos
Message 1 of 4
(4,192 Views)
Solution
Accepted by wildcatherder

After contacting NI technical support I was supplied with the names of the simplest examples for Analog I/O:

 

Analog Output-Gen Voltage Update.vi            

Analog Input-Acq&Graph voltage-Int Clk.vi

 

These were found from the Getting Started screen by

click on "Find Examples" near the lower right corner

Filter results for Hardware by clicking on drop-down menu for Hardware in lower left corner and selecting USB-6343 (only connected hardware will be shown)

Be sure to check "Limit results to hardware" box below.

From the central pane double-click "Hardware Input and Output"

Double-click DAQmx

 

Path for Analog input -  Double-click on Analog Measurements - Double-click on voltage - Acq&Graph voltage-Int Clk.vi

 

Path for Analog output - Double-click on Analog Generation - Double-click on voltage - Gen Voltage Update.vi

 

The examples are for single data point.  Multiple samples and outputs are produced by putting the Write or Read VI inside a loop.  The Start and Clear functions should be outside the loop.

 

The additional information I needed from technical support was how to hardware-filter the results and identification of the simplest examples which were not obvious from the example names.

 

 

 

0 Kudos
Message 2 of 4
(4,174 Views)

Whats the different between single data point and multiple sample? In which condition should use multiple sample / single data point?

 

 

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