LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDS3034: how to set "data:width" to 2 (16 bits per point) using Labview, and the NI drivers?

....


> In a way, that is part of the issue with IVI. NI scares users into
> thinking that programming instruments is so hard that the only way to
> really get it done right is to let them do it. Theres's two problems
> with this line of reasoning. First, programming instruments isn't that
> hard and if you did the sums, you would probibly find you spent more
> time trying to workaround problems in existing drivers than it would
> have taken to write your own. Second, it ignores the point that NI
> never could write a decent instrument driver--and now if something is
> broken you have to buy another development environment from them to
> fix it.
>
> Kind of make you wonder what the real motivatio
n behind IVI is...
>


Actually, the point of IVI is to make for interchangable drivers, for
those that use common functionality and can't afford to have mfg down
due to a particular instrument being hard to locate. In reality, NI
would rather see drivers being built by the makers of the instruments
since they know the ins and outs of the particular instrument. The
fundamental problem here is that the more complete the driver, the less
willing the author is to write it over and over in multiple languages.
Ultimately, it seems that simple drivers are available in multiple
environments and languages, but more complex and more complete drivers
are available only as a DLL or some other component that is usable by
the largest number of people and the largest number of environments.

My suggestion is to make your wishes for various drivers known with both
NI and the instrument maker. Also make it clear which
language/environment you use and how complete you expect it to be.


Greg McKaskle
0 Kudos
Message 13 of 15
(683 Views)
Feedback to NI about instrument drivers (instrument coverage, language, development environment, OS platform, etc.) is best sent to instrument.driver@ni.com.

--Bankim
0 Kudos
Message 15 of 15
(683 Views)
Alessandra,

If you set the Acquisition Type to 'Average' the driver sets Data Width to 2, as you want it. With all other Acquisitions, the driver sets Data Width to 1. You can not set the data width directly through the driver, because it is not a public attribute. In order for the driver to maintain consistent instrument control it keeps settings such as data width and format private.

You can retrieve your waveform with the same FetchWaveform or ReadWaveform functions you maybe currently be trying to use.

--Bankim

Bankim Tejani
National Instruments
0 Kudos
Message 6 of 15
(823 Views)
One follow-up question:

What problem/issue were you trying to solve by setting the data width? Did you want to improve transfer speed, obtain a specific type of data, etc?

The IviScope Specification standardizes waveform data in the format of an array of ViReal64 (i.e. Doubles). The tkds30xx returns data that way regardless of the format through which it acquired the data from the instrument.

--Bankim
0 Kudos
Message 9 of 15
(823 Views)
Thanks, I actually needed to acquire in "average" mode. I'll try.
Alessandra
0 Kudos
Message 14 of 15
(683 Views)