Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

resources:eval:dpg:labview_8 [09 May 2012 17:09]
Jason Coutermarsh Approved
resources:eval:dpg:labview_8 [03 Jan 2013 20:42]
Line 1: Line 1:
-======LabVIEW 8====== 
-After the DPG Software Suite is installed, all the VIs required to communicate with a DPG are placed in the Instrument Drivers section of the Instrument I/O Palette. 
- 
-{{ :​resources:​eval:​dpg:​lv8_palette.png?​nolink&​ |}} 
- 
-The List Devices VI returns a list of all the attached DPGs. All other DPG VIs will need this reference in order to communicate with the desired DPG.  
- 
-Before a specific DPG can play data, it needs to be configured. This configuration determines the electrical characteristics of the physical interface between the DPG and the DUT. The List Available Configurations returns a list of all the configurations that the referenced DPG supports. The Configure Device can then be used to select which configuration to use.  
- 
-After configuring,​ various parameters can be set via the Set Setup VI. The current setup can be read with the Get Setup VI.  
- 
-To download the data vector into the DPG, use the Download Vectors VI. This is a polymorphic VI; it will display several different input data types. This VI will re-format various types of data into a data-type that the referenced DPG can use. Once the data is loaded, the Play, Pause, and Stop VIs can be used to control the data playback. 
- 
-===== DPG Palette ===== 
- 
-This pallet contains the following VIs and sub-palettes:​ 
- 
-|{{ :​resources:​eval:​dpg:​lv7_listdevs.png?​nolink&​ |}}|[[#List Devices1|List Devices]]| 
- 
-==== Utility Sub-Palette ==== 
- 
-|{{ :​resources:​eval:​dpg:​lv7_getsetup.png?​nolink&​ |}}|[[#Get Setup1|Get Setup]]| 
-|{{ :​resources:​eval:​dpg:​lv7_dclkfreq.png?​nolink&​ |}}|[[#​Measure Data Clock Frequency1|Measure Data Clock Frequency]]| 
-|{{ :​resources:​eval:​dpg:​lv7_setsetup.png?​nolink&​ |}}|[[#Set Setup1|Set Setup]]| 
- 
-==== Examples Sub-Palette ==== 
- 
-|{{ :​resources:​eval:​dpg:​lv7_examplesimplesine.png?​nolink&​ |}}|Example:​ Simple Sine Generator| 
- 
-==== Data Sub-Palette ==== 
- 
-|{{ :​resources:​eval:​dpg:​lv7_dlvect.png?​nolink&​ |}}|[[#​Download Vectors1|Download Vectors]]| 
-|{{ :​resources:​eval:​dpg:​lv7_play.png?​nolink&​ |}}|[[#​Play1|Play]]| 
-|{{ :​resources:​eval:​dpg:​lv7_pause.png?​nolink&​ |}}|[[#​Pause1|Pause]]| 
-|{{ :​resources:​eval:​dpg:​lv7_stop.png?​nolink&​ |}}|[[#​Stop1|Stop]]| 
- 
-==== Configure Sub-Palette ==== 
- 
-|{{ :​resources:​eval:​dpg:​lv7_getconfig.png?​nolink&​ |}}|[[#Get Current Configuration1|Get Current Configuration]]| 
-|{{ :​resources:​eval:​dpg:​lv7_listconfig.png?​nolink&​ |}}|[[#List Available Configurations1|List Available Configurations]]| 
-|{{ :​resources:​eval:​dpg:​lv7_loadconfig.png?​nolink&​ |}}|[[#​Configure Device1|Configure Device]]| 
- 
-===== VI Reference ===== 
- 
-==== List Devices ==== 
-This VI returns an array of Hardware References. Each of these references is the software representation of an actual DPG connected to your computer. All other VIs will take this reference as an input. 
- 
-{{ :​resources:​eval:​dpg:​lv8_listdevs_full.png?​nolink&​ |}} 
- 
-|{{ :​resources:​eval:​dpg:​lv8_errorin.png?​nolink&​ |}}|**error in (no error)**| 
-|{{ :​resources:​eval:​dpg:​lv8_hardwarereferencearrayout.png?​nolink&​ |}} |**Hardware Interface Reference Array out** Contains an array of Hardware Interface References. Each item of the array represents one physical DPG currently connected to this PC. Use this when one or more DPGs are connected. The order in which the devices appear in the array is non-deterministic. Adding or removing DPGs from your PC may alter the order. Do not rely on the order being the same from one execution to the next.| 
-|{{ :​resources:​eval:​dpg:​lv8_hardwarereferenceout.png?​nolink&​ |}}|**First Hardware Interface Reference out** Contains the first item in the above array. Using this output eliminates a small amount of external wiring in cases where only one DPG will ever be connected to the PC.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorout.png?​nolink&​ |}}|**error out**| 
- 
-==== Get Current Configuration ==== 
- 
-This VI retrieves the name of the configuration currently loaded into the DPG. 
- 
-{{ :​resources:​eval:​dpg:​lv8_getconfig_full.png?​nolink&​ |}} 
- 
-|{{ :​resources:​eval:​dpg:​lv8_hardwarereferencei.png?​nolink&​ |}}|**Hardware Interface Reference** A reference to the specific DPG you are using. These references can be obtained from the [[#List Devices1|List Devices]] VI.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorin.png?​nolink&​ |}}|**error in (no error)**| 
-|{{ :​resources:​eval:​dpg:​lv8_hardwarereferenceout.png?​nolink&​ |}}|**Hardware Interface Reference out** Contains the same information as the reference which is input at the Hardware Interface Reference port. This port allows for control over the order of execution, as this VI will not pass on its reference until it has completed all its tasks.| 
-|{{ :​resources:​eval:​dpg:​lv7_stringout.png?​nolink&​ |}}|**Current Configuration** The name of the configuration currently loaded into the DPG. Only valid when a standard configuration (not a custom configuration) was loaded into the DPG.| 
-|{{ :​resources:​eval:​dpg:​lv7_boolout.png?​nolink&​ |}}|**Is Configured** True when the DPG has a configuration loaded into it. False indicates the DPG has not yet been configured after a power-cycle.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorout.png?​nolink&​ |}}|**error out**| 
- 
-==== List Available Configurations ==== 
-This VI returns a list of all the standard configurations that the referenced DPG supports. 
- 
-{{ :​resources:​eval:​dpg:​lv8_listconfig_full.png?​nolink&​ |}} 
- 
-|{{ :​resources:​eval:​dpg:​lv7_hardwareinterfacereferencein.png?​nolink&​ |}}|**Hardware Interface Reference** A reference to the specific DPG you are using. These references can be obtained from the [[#List Devices1|List Devices]] VI.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorin.png?​nolink&​ |}}|**error in (no error)**| 
-|{{ :​resources:​eval:​dpg:​lv7_hardwarereferenceout.png?​nolink&​ |}}|**Hardware Interface Reference out** Contains the same information as the reference which is input at the Hardware Interface Reference port. This port allows for control over the order of execution, as this VI will not pass on its reference until it has completed all its tasks.| 
-|{{ :​resources:​eval:​dpg:​lv7_stringarrayout.png?​nolink&​ |}}|**Available Configurations** An array of the names of all standard configurations available on the referenced DPG. This list may expand as new configurations are added to the DPG.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorout.png?​nolink&​ |}}|**error out**| 
- 
-==== Configure Device ==== 
- 
-This VI configures the DPG for the type of interface the evaluation board expects. 
- 
-{{ :​resources:​eval:​dpg:​lv8_loadconfig_full.png?​nolink&​ |}} 
- 
-|{{ :​resources:​eval:​dpg:​lv7_hardwareinterfacereferencein.png?​nolink&​ |}}|**Hardware Interface Reference** A reference to the specific DPG you are using. These references can be obtained from the [[#List Devices1|List Devices]] VI.| 
-|{{ :​resources:​eval:​dpg:​lv7_stringin.png?​nolink&​ |}}|**Configuration Name** The name of the configuration you'd like to use. A list of all available configurations for the DPG you are connected to can be obtained from the [[#List Available Configurations1|List Available Configurations]] VI. A custom configuration file can be provided via the Custom Configuration Path input. Either the Configuration Name or Custom Configuration Path must be supplied.| 
-|{{ :​resources:​eval:​dpg:​lv7_pathin.png?​nolink&​ |}}|**Custom Configuration Path** A custom configuration file can be provided to allow for features not available in the standard configurations. If you have been provided a custom configuration file by Analog Devices, wire its path here. Either the Configuration Name or Custom Configuration path must be supplied.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorin.png?​nolink&​ |}}|**error in (no error)**| 
-|{{ :​resources:​eval:​dpg:​lv7_hardwarereferenceout.png?​nolink&​ |}}|**Hardware Interface Reference out** Contains the same information as the reference which is input at the Hardware Interface Reference port. This port allows for control over the order of execution, as this VI will not pass on its reference until it has completed all its tasks.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorout.png?​nolink&​ |}}|**error out**| 
- 
-==== Synchronization Mode ==== 
-This VI reads and writes the Synchronization Mode settings. These settings are only used when a DPG is used in a multi-board environment. To read the current value, do not wire anything to the New Mode input. 
- 
-{{ :​resources:​eval:​dpg:​lv8_syncmode_full.png?​nolink&​ |}} 
- 
-|{{ :​resources:​eval:​dpg:​lv7_hardwareinterfacereferencein.png?​nolink&​ |}}|**Hardware Interface Reference** A reference to the specific DPG you are using. These references can be obtained from the [[#List Devices1|List Devices]] VI.| 
-|{{ :​resources:​eval:​dpg:​lv7_enumin.png?​nolink&​ |}}|**New Mode** The new mode to set the board to. This can be set to "No Change"​ to keep the current mode.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorin.png?​nolink&​ |}}|**error in (no error)**| 
-|{{ :​resources:​eval:​dpg:​lv8_hardwarereferenceout.png?​nolink&​ |}}|**Hardware Interface Reference out** Contains the same information as the reference which is input at the Hardware Interface Reference port. This port allows for control over the order of execution, as this VI will not pass on its reference until it has completed all its tasks.| 
-|{{ :​resources:​eval:​dpg:​lv7_enumout.png?​nolink&​ |}}|**Current Mode** Returns the current Synchronization Mode of the DPG referenced.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorout.png?​nolink&​ |}}|**error out**| 
- 
-==== Get Setup ==== 
-This VI returns the current setup of the DPG. Setup includes information such as the Play Mode, Play Count, and Starting Address. It is only valid after a configuration has been loaded into the DPG. 
- 
-{{ :​resources:​eval:​dpg:​lv8_getsetup_full.png?​nolink&​ |}} 
- 
-|{{ :​resources:​eval:​dpg:​lv7_hardwareinterfacereferencein.png?​nolink&​ |}}|**Hardware Interface Reference** A reference to the specific DPG you are using. These references can be obtained from the [[#List Devices1|List Devices]] VI.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorin.png?​nolink&​ |}}|**error in (no error)**| 
-|{{ :​resources:​eval:​dpg:​lv7_hardwarereferenceout.png?​nolink&​ |}}|**Hardware Interface Reference out** Contains the same information as the reference which is input at the Hardware Interface Reference port. This port allows for control over the order of execution, as this VI will not pass on its reference until it has completed all its tasks.| 
-|{{ :​resources:​eval:​dpg:​lv7_enumout.png?​nolink&​ |}}|**Play Mode** In Loop mode, the data vector is continuously transmitted after the Play command is received by the DPG. In Count mode, the DPG will only loop a set number of times before stopping. The number of cycles is set by the Play Count value.| 
-|{{ :​resources:​eval:​dpg:​lv7_u32out.png?​nolink&​ |}}|**Play Count** When in Count Play Mode, this value determines how many times the data vector will be played before stopping. In Loop Play mode, this value has no effect.| 
-|{{ :​resources:​eval:​dpg:​lv7_u32out.png?​nolink&​ |}}|**Start Address** This value sets the starting address for the data playback. This determines at what point in the vector the DPG will begin playing at.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorout.png?​nolink&​ |}}|**error out**| 
- 
-==== Set Setup ==== 
-This VI changes various parameters on the DPG. This command is only valid after a configuration has been loaded into the DPG. 
- 
-{{ :​resources:​eval:​dpg:​lv8_setsetup_full.png?​nolink&​ |}} 
- 
-|{{ :​resources:​eval:​dpg:​lv7_hardwareinterfacereferencein.png?​nolink&​ |}}|**Hardware Interface Reference** A reference to the specific DPG you are using. These references can be obtained from the [[#List Devices1|List Devices]] VI.| 
-|{{ :​resources:​eval:​dpg:​lv7_enumin.png?​nolink&​ |}}|**Play Mode** In Loop mode, the data vector is continuously transmitted after the Play command is received by the DPG. In Count mode, the DPG will only loop a set number of times before stopping. The number of cycles is set by the Play Count value.| 
-|{{ :​resources:​eval:​dpg:​lv7_u32in.png?​nolink&​ |}}|**Play Count** When in Count Play Mode, this value determines how many times the data vector will be played before stopping. In Loop Play mode, this value has no effect.| 
-|{{ :​resources:​eval:​dpg:​lv7_u32in.png?​nolink&​ |}}|**Start Address** This value sets the starting address for the data playback. This determines at what point in the vector the DPG will begin playing at.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorin.png?​nolink&​ |}}|**error in (no error)**| 
-|{{ :​resources:​eval:​dpg:​lv7_hardwarereferenceout.png?​nolink&​ |}}|**Hardware Interface Reference out** Contains the same information as the reference which is input at the Hardware Interface Reference port. This port allows for control over the order of execution, as this VI will not pass on its reference until it has completed all its tasks.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorout.png?​nolink&​ |}}|**error out**| 
- 
-==== Download Vectors ==== 
-This is a Polymorphic VI. Several different data types can be used to download data vectors into the DPG. 
- 
-===One Vector of type I32=== 
- 
-{{ :​resources:​eval:​dpg:​lv8_dlvect_i32.png?​nolink&​ |}} 
- 
-|{{ :​resources:​eval:​dpg:​lv7_hardwareinterfacereferencein.png?​nolink&​ |}}|**Hardware Interface Reference** A reference to the specific DPG you are using. These references can be obtained from the [[#List Devices1|List Devices]] VI.| 
-|{{ :​resources:​eval:​dpg:​lv7_i32in.png?​nolink&​ |}}|**Vector** The data vector to be sent| 
-|{{ :​resources:​eval:​dpg:​lv8_errorin.png?​nolink&​ |}}|**error in (no error)**| 
-|{{ :​resources:​eval:​dpg:​lv7_hardwarereferenceout.png?​nolink&​ |}}|**Hardware Interface Reference out** Contains the same information as the reference which is input at the Hardware Interface Reference port. This port allows for control over the order of execution, as this VI will not pass on its reference until it has completed all its tasks.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorout.png?​nolink&​ |}}|**error out**| 
- 
- 
-===Two Vectors of type I16=== 
- 
-{{ :​resources:​eval:​dpg:​lv8_dlvect_i16.png?​nolink&​ |}} 
- 
-|{{ :​resources:​eval:​dpg:​lv7_hardwareinterfacereferencein.png?​nolink&​ |}}|**Hardware Interface Reference** A reference to the specific DPG you are using. These references can be obtained from the [[#List Devices1|List Devices]] VI.| 
-|{{ :​resources:​eval:​dpg:​lv7_i16in.png?​nolink&​ |}}|**I Vector** The data vector to be sent to the I channel| 
-|{{ :​resources:​eval:​dpg:​lv7_i16in.png?​nolink&​ |}}|**Q Vector** The data vector to be sent to the Q channel| 
-|{{ :​resources:​eval:​dpg:​lv8_errorin.png?​nolink&​ |}}|**error in (no error)**| 
-|{{ :​resources:​eval:​dpg:​lv7_hardwarereferenceout.png?​nolink&​ |}}|**Hardware Interface Reference out** Contains the same information as the reference which is input at the Hardware Interface Reference port. This port allows for control over the order of execution, as this VI will not pass on its reference until it has completed all its tasks.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorout.png?​nolink&​ |}}|**error out**| 
- 
- 
-===Two Vectors of type Double=== 
- 
-{{ :​resources:​eval:​dpg:​lv8_dlvect_double.png?​nolink&​ |}} 
- 
-|{{ :​resources:​eval:​dpg:​lv7_hardwareinterfacereferencein.png?​nolink&​ |}}|**Hardware Interface Reference** A reference to the specific DPG you are using. These references can be obtained from the [[#List Devices1|List Devices]] VI.| 
-|{{ :​resources:​eval:​dpg:​lv7_dblin.png?​nolink&​ |}}|**I Vector** The data vector to be sent to the I channel. It will be internally converted to an integer of the appropriate width. No scaling will be performed.| 
-|{{ :​resources:​eval:​dpg:​lv7_dblin.png?​nolink&​ |}}|**Q Vector** The data vector to be sent to the Q channel. It will be internally converted to an integer of the appropriate width. No scaling will be performed.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorin.png?​nolink&​ |}}|**error in (no error)**| 
-|{{ :​resources:​eval:​dpg:​lv7_hardwarereferenceout.png?​nolink&​ |}}|**Hardware Interface Reference out** Contains the same information as the reference which is input at the Hardware Interface Reference port. This port allows for control over the order of execution, as this VI will not pass on its reference until it has completed all its tasks.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorout.png?​nolink&​ |}}|**error out**| 
- 
-==== Measure Data Clock Frequency ==== 
-This VI returns the frequency (in Hz) of the Data Clock provided to the DPG by the evaluation board. If this value is 0, no data clock was detected. 
- 
-{{ :​resources:​eval:​dpg:​lv8_dclkfreq_full.png?​nolink&​ |}} 
- 
-|{{ :​resources:​eval:​dpg:​lv7_hardwareinterfacereferencein.png?​nolink&​ |}}|**Hardware Interface Reference** A reference to the specific DPG you are using. These references can be obtained from the [[#List Devices1|List Devices]] VI.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorin.png?​nolink&​ |}}|**error in (no error)**| 
-|{{ :​resources:​eval:​dpg:​lv7_hardwarereferenceout.png?​nolink&​ |}}|**Hardware Interface Reference out** Contains the same information as the reference which is input at the Hardware Interface Reference port. This port allows for control over the order of execution, as this VI will not pass on its reference until it has completed all its tasks.| 
-|{{ :​resources:​eval:​dpg:​lv7_dblout.png?​nolink&​ |}}|**Measured Frequency (Hz)** Returns the measured frequency of the Data Clock provided by the evaluation board.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorout.png?​nolink&​ |}}|**error out**| 
- 
-==== Play ==== 
-Starts playback of the data vector. If the DPG is currently stopped, or has not been started since being configured, playback will begin at Start Address. If the DPG is currently paused, playback will begin at the point that it was paused at. 
- 
-<​note>​**Note:​** The Play VI will check for the presence of a Data Clock before starting playback. If a data clock isn't detected, an error will be thrown.</​note>​ 
- 
-{{ :​resources:​eval:​dpg:​lv8_play_full.png?​nolink&​ |}} 
- 
-|{{ :​resources:​eval:​dpg:​lv7_hardwareinterfacereferencein.png?​nolink&​ |}}|**Hardware Interface Reference** A reference to the specific DPG you are using. These references can be obtained from the [[#List Devices1|List Devices]] VI.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorin.png?​nolink&​ |}}|**error in (no error)**| 
-|{{ :​resources:​eval:​dpg:​lv7_hardwarereferenceout.png?​nolink&​ |}}|**Hardware Interface Reference out** Contains the same information as the reference which is input at the Hardware Interface Reference port. This port allows for control over the order of execution, as this VI will not pass on its reference until it has completed all its tasks.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorout.png?​nolink&​ |}}|**error out**| 
- 
- 
-==== Pause ==== 
-Pauses the playback of the data vector. When the next [[#​Play1|Play]] command is issued, playback will resume from the position at which it was paused. 
- 
-{{ :​resources:​eval:​dpg:​lv8_pause_full.png?​nolink&​ |}} 
- 
-|{{ :​resources:​eval:​dpg:​lv7_hardwareinterfacereferencein.png?​nolink&​ |}}|**Hardware Interface Reference** A reference to the specific DPG you are using. These references can be obtained from the [[#List Devices1|List Devices]] VI.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorin.png?​nolink&​ |}}|**error in (no error)**| 
-|{{ :​resources:​eval:​dpg:​lv7_hardwarereferenceout.png?​nolink&​ |}}|**Hardware Interface Reference out** Contains the same information as the reference which is input at the Hardware Interface Reference port. This port allows for control over the order of execution, as this VI will not pass on its reference until it has completed all its tasks.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorout.png?​nolink&​ |}}|**error out**| 
- 
-==== Stop ==== 
-Stops the data vector playback. Unlike the [[#​Pause1|Pause]] command, the DPG will not remember where it was stopped at. The next [[#​Play1|Play]] command that is issued will start playback from [[#Start Address1|Start Address]]. 
- 
-{{ :​resources:​eval:​dpg:​lv8_stop_full.png?​nolink&​ |}} 
- 
-|{{ :​resources:​eval:​dpg:​lv7_hardwareinterfacereferencein.png?​nolink&​ |}}|**Hardware Interface Reference** A reference to the specific DPG you are using. These references can be obtained from the [[#List Devices1|List Devices]] VI.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorin.png?​nolink&​ |}}|**error in (no error)**| 
-|{{ :​resources:​eval:​dpg:​lv7_hardwarereferenceout.png?​nolink&​ |}}|**Hardware Interface Reference out** Contains the same information as the reference which is input at the Hardware Interface Reference port. This port allows for control over the order of execution, as this VI will not pass on its reference until it has completed all its tasks.| 
-|{{ :​resources:​eval:​dpg:​lv8_errorout.png?​nolink&​ |}}|**error out**| 
  
resources/eval/dpg/labview_8.txt · Last modified: 03 Jan 2013 20:42 (external edit)