Home

SHELDON INSTRUMENTS, INC. QuVIEW FOR USE WITH LabVIEW

image

Contents

1. The PQ Digital I O Pin C3x vi makes use of the DSP s peripheral port as a general purpose digital I O port where each pin s direction may be individually controlled Fin Direction Board PL Digital Output PQ_ Digital Input O Port Number error out error in no error Digial 1 0 Pin Source PQ Digtntal YO Pin C3x v1 Pin Direction LabVIEW input specifies if a particular line will operate as an input or an output PQ Digital Input PQ Input unscaled value to be writen if the pin of interest is configured as an output I O Port Number LabVIEW input specifies one of two ports where the digital I O pin is located Only valid for those DSP s that have more than a single peripheral port otherwise defaulted to the only port available Digital I O Pin Source LabVIEW input selects a specific pin of the DSP s port for use as a digital I O PQ Digital Output PQ output representing the value present on a requested digital I O pin NOTE Only valid wth C33 DSPs 3 3 Common Queue PO Counters amp Timers These functions are internal to the DSP and make use of its peripheral port for unique digital sampling functions E HPQ Counter amp Timers 3 3 1 P Counter The PQ Counter vi function operates in much the same way as an event counter where the events can be defined by boolean pulses derived from any one of the comparison VIs PO Wrap Mode Board POL Enable Syne Irn PG Counter Reset erro
2. PQ X gt Y PQ output that returns the value wired to the PQ TRUE if X gt Y or the value wired to the PQ FALSE if X lt Y 4 5 9 PO In Range PO TRUE Input Value Board PO Hi n PQ s n PO Lofn error in no error PO FALSE Input Value PQ In Range i PO Lo lt lt Hi error out PQ Hil n PQ input upper limit value PQ X n PQ input to compare PQ Lofn PQ input lower limit value PQ Lo lt X lt Hi PQ output that returns the value wired to the PQ TRUE if X falls within the two limits or the value wired to the PQ FALSE if X does not 4 5 10 PQ Clip Within Upper Limit 4 Board PO_s n error in no error Lower Limit b PO Clipped Output n error out PQ_Clip Within y i PQ X n PQ input Upper Limit a LabVIEW constant used to determine the upper limit to clip X n n Lower Limit b LabVIEW constant used to determine the lower limit to clip X PQ Clipped Output Y n PQ output reflecting the input X n bound by the upper and lower limits 4 5 11 P Max amp Min Board PO_ n error in no error Width PQ Max amp hin wi PL Max shn PLL Min sin w error out PQ X n PQ input Width N LabVIEW constant to determine the number of points inside a moving block from which to extract the high and low peak values PQ Max X n PQ output of the maximum value from a block of N points PQ Min X n PQ output of the minimum value from
3. The PQ Port Read vi reads up to 24 bits of raw binary data any within the DSP memory space Used as a building block for other functions Data Size Bits Representation Board PL Input Data PL Input Data Array error in no error efor out Channel Selector Offset Channel Selector Array OFF PQ Port Read 24 bit max vi Data Size Bits LabVIEW input specifies the width of the port in bits ranging from 1 to 24 bits Representation LabVIEW input selects to read either signed or unsigned binary data from the digital I O port defaulted to read unsigned integer values Channel Selector Offset LabVIEW input specifies the actual location of the port to be read in the DSP s memory space Channel Selector Array Offset LabVIEW input array which specifies an array of actual locations of ports to be read in the DSP s memory space PQ Input Data PQ output up to 24 bits of binary data read from the digital port represented as a floating point value PQ Input Data Array PQ output array up to 24 bits of a binary data read from an array of digital port represented as floating point values 3 2 5 PQ Digital Output Port 24 bit max The PQ Digital Output Port vi writes up to 24 bits of raw binary data to the digital I O port when it is configured as an output Daughter Module Board PG Output Data error in no error error out PQ_ Digital Output Port 44 bit max vi PQ Output Data PQ inp
4. 4 0 Point Queuing Function VIs 4 1 PQ Constants 4 1 1 4 1 2 PQ Constant PQ Latch 4 2 PQ Arithmetic 4 2 1 4 2 2 4 2 3 4 2 4 4 2 5 4 2 6 4 2 7 4 2 8 4 2 9 PQ Add PQ Subtract PQ Multiply PQ Divide PQ Absolute Value PQ Negate PQ Inverse PQ Square Root PQ Inverse Square Root 4 2 10 PQ Scale aX b 4 2 11 PQ Polynomial 4 3 PQ Trig and Log 4 3 1 4 3 2 4 3 3 4 3 4 4 3 5 4 3 6 4 3 7 4 3 8 PQ Logarithm Base N PQ Natural Logarithm PQ Logarithm Base 10 PQ Power X to Y PQ_Exp e X PQ Exp 10 X PQ Sine PQ Cosine 4 4 PQ Calculus 4 4 1 4 4 2 4 4 3 PQ Derivative PQ Integral PQ Slope 4 5 PQ Comparison 4 5 1 4 5 2 4 5 3 4 5 4 4 5 5 4 5 6 4 5 7 4 5 8 4 5 9 PQ Equal to Zero PQ Not Equal to Zero PQ Equal PQ Not Equal PQ Less Than PQ Less Than or Equal PQ Greater Than PQ Greater Than or Equal PQ In Range 4 5 10 PQ Clip Within 4 5 11 PQ Max amp Min 4 5 12 PQ Trigger 4 5 12 1 Trigger Conditions 4 6 PQ Display amp Log to Disk 4 6 1 4 6 2 4 6 3 4 6 4 4 6 5 4 6 6 PQ Scope PQ Packed Scope PQ WaveScope PQ Synch Scope vi PQ Synch Packed Scope vi Common Synchronous Scope Parameters 4 7 PQ Boolean 4 7 1 4 7 2 4 7 3 4 7 4 4 7 5 4 7 6 4 7 7 4 7 8 4 7 9 4 7 10 4 7 11 4 7 12 4 7 13 4 7 14 4 7 15 4 7 16 4 7 17 4 7 18 PQ Logical AND PQ Logical OR PQ Logical XOR PQ Logical
5. Q Hamming Window yi VQ X n VQ input VQ Hamming of X n VQ output 5 5 3 3 VQ Triangle Board YQ sr error in no error error out YQ Triangle Window i WO Triangle of ni VQ X n VQ input VQ Triangle of X n VQ output 5 5 3 4 VQ Blackman Board yQ nt error in no error error out Q Blackman Window yi VO Blackman of 4n VQ X n VQ input VQ _ Blackman of X n VQ output 5 5 3 5 VQ Exact Blackman Board VOQ_sinp error in no error error au Q Exact Blackman Window i WO Exact Blackman of ni VQ X n VQ input VQ _ Exact Blackman of X n VQ output 5 5 3 6 VQ Blackman Harris Board wQ An error in no error error out QO Blackman Harris Window i VO Blackman Harris of 4trip VQ X n VQ input VQ_ Blackman Harris of X n VQ output 5 5 3 7 VQ Flat Top Board WO Flat Top of nb Wo Mdm Gon error in no error lt error out Q Flat Top Window i VQ X nt VQ input VQ Flat Top of X n VQ output 5 5 3 8 VQ Kaiser Board vO n Bela error in no error YQ Kaiser Window vi WO Kaiser of 4nt error aut VQ X n VQ input Beta LabVIEW input that defines the Beta weighting variable VQ Kaiser of X n VQ output 5 5 3 9 VQ Cosine Tapered Board WO Cosine Tapered of mt v_n error in no error error out YQ Cosine Tapered Window yi VQ X n VQ input VQ Cosine Tapere
6. nonzero the counter increments or decrements to this PQ value before wrapping or latchingmust be always positive PQ Count Direction PQ input that determines the direction of the count lt 0 When set to a PQ Zero value the counter increments to threshold default nonzero When set to a PQ Nonzero value the counter decrementsto threshold PQ Y n PQ output that returns actual count value PQ Final Count Sync PQ output used to indicate the state of the counter output useful for synchronizing events 0 The counter output has reached its final value and returns a PQ zero value 1 The counter is busy and returns a PQ One while counting or reset 3 3 2 PQ Event Counter Input SI MOD68xx The PQ Event Counter Input SI MOD68xx vi function is very flexible and especially useful for managing a variety of clocking and event schemes to trigger a variety of operations PL EC Wrap Mode Board PEC Enable PL EC Reset eror in no error Event Source PQ Event Counter input 1 MOD68xx v1 PQ_EC Count PQ_EC Trigger Output efor oul PQ EC Wrap Mode PQ input used to control if the EC counter must autowrap to the reset state when the count reaches the threshold value lt 0 When set to a PQ Zero value or less the counter is reset or wrapped when the threshold is reached as long as there is a tick source default nonzero Otherwise when set to a PQ Nonzero value the counter output PQ Y n i
7. Bus LabVIEW output that describes the bus type of the DSP card in place 0 ISA l PCI AMCC 2 PCMCIA 3 PCI PLX 4 Par C6711 5 DLL Processor LabVIEW output that describes the DSP processor on the carrier card 0 C30 1 C31 2 C32 3 C33 4 C6711 5 X86 Analog Input Parameters LabVIEW output cluster that defines the base address of the analog input hardware as seen by the DSP Analog Output Parameters LabVIEW output cluster that defines the base address of the analog output hardware as seen by the DSP Digital I O Parameters LabVIEW output cluster that defines the base address of the digital I O hardware as seen by the DSP Boundary Factor LabVIEW output to describe the native address boundary in terms of bytes used by the DSP Channel Offsets LabVIEW output array that directly reflects the array present on the Channels s input terminal 3 4 4 10 Reset DSP This VI enables or disables the DSP and only used once during card initialization Intended for advanced users only Board Reset error in no error Reset DSP i Error t error out Reset LabVIEW input which selects to Reset the DSP or not Reset 0 Assert disables the DSP Reset 1 Deassert activates the DSP Reset 2 Toggle default setting to toggles the DSP s Reset line in order to restart the COFF file loading process 3 4 4 11 Configure PCI Communications 6711 PLX Configures the communication mode to be
8. PO Logical NOR i 4 7 7 PQ Logical NOT XOR Performs a Logical NeXOR or NOT Exclusive OR on two PQ inputs and return PQ True False values PO TRUE Input Value Board POM nexor Y Poln Po Yin error out error in no error PO FALSE Input Value PQ_Logical NXOR yi 4 7 8 P JK Flip Flop This function models the behavior of a JK flip flop The terminals are as follows Board Poin PQ_JILn PO kin error out error in no error PQ_JK Flip Flop vi PQ J n PQ input J terminal of JK flip flop PQ K n PQ input K terminal of JK flip flop PQ Y n PQ output of flip flop 4 7 9 PO Bitwise Shift 24 bits max Performs a Bitwise Shift on the single PQ input with the Shift factor determining both the direction and the amount of the PQ input to shift The PQ variables represent a 24 bit integer Board PO_Aln PL Shift Factor r error in no error i PQ_Birwise Shift 24 bits mag vi POA lt g gt emor cut 4 7 10 P Bitwise Rotate 24 bits max Performs a Bitwise Rotation on the single PQ input with the Rotate factor determining both the direction and the amount of the PQ input to rotate The PQ variables represent a 24 bit integer Board PAAL Pl Rotate Factor r eror in no error PQ Biuwise Rotate 24 bits max vi PO_A irot emor out 4 7 11 P Bitwise Extraction 24 bits max Performs a Bitwise Extraction on the single PQ input and returns a PQ output fomat
9. 4 12 Configure PCI Communications C33 PLX Configures the communication mode to be used between the host and the DSP for the SI C33DSP PCI based boards and only used once during card initialization Board vendor Device error in no error Comm Params Results error ouk Configure PCI Communications C33 PLX Yi Vendor Ignored Device Ignored Comm Params A LabVIEW input cluster of various parameters to specify what communication mode to be used The user can define the type of communication mode that best suits a particular application between a specific boundary The parameters to set are as follows Comm Params Read Mode Below Lirnit wite Mode Below Lirnit PASSIVE DAMT arget PASSIVE DAMT arget Host T arget Host T arget DSP H74 Combe BB o o Read DAM Lirit Write DAM Lirnt a0 a0 Read Mode bove Limit Write Mode 4bove Limit PASSIVE Block OMA PASSIVE Block OMA Host BM Host Bh DSP N74 DSP N74 Combe BB 1 Combo BB 1 Read Mode Below Limit Communication mode for reading below boundary limit Read Mode Above Limit Communication mode for reading below boundary limit Read Limit Boundary value for host reads Write Mode Below Limit Communication mode for writing below boundary limit Write Mode above Limit Communication mode for writing above boundary limit Write limit Boundary v
10. First Terminate Case LabVIEW cluster output must be connected to the From Open Terminate Case terminal of the next VQ Terminate This Case vi 6 4 2 VO Terminate This Case End of each case within a VQ Case Structure Board WO Input error in no error From Open Terminate Case error aut To Terminate Close Case Q Terminate This Case yi VQ Input VQ input to pass results from the case From Open Terminate Case LabVIEW cluster input must be connected to the To First Terminate Case terminal of the VQ Open Case vi or To Terminate Close Case terminal of the previous VQ Terminate Case v1 To Open Terminate Case LabVIEW cluster output must be connected to the From Open Terminate Case terminal of the next VQ Terninate This case vi or to the From Last Terminate case terminal of the VQ Close Case vi 6 4 3 VO Close Case Structure End of VQ Case Structure Board WoO Output error in no error error out From last Terminate Case YQ Close Case Structure yi From last Terminate Case LabVIEW cluster input must be connected to the To Terminate Close Case terminal of the last VQ Terminate Case v1 VQ Output VQ output 6 5 VQ Conditional Execute Structures 6 5 1 VQ Begin Conditional Execute Executes functions depending on the value of VQ Enable if the value of VQ Enable input is 1 this VI will allow execution of subsequent functions upto VQ End Conditional Execute else if the val
11. In Width eror in no error error out Pulse In Source PQ Pulse Input Pin 1 MHOD66xx v1 Pulse In Source LabVIEW input selects one of the available pulse input pins present on the auxiliary digital I O port PQ Pulse In Period PQ output that returns the last overall period that occured between consecutive positive edges derived from the external TTL level pulse train input The period is relative to the number of H clock periods sourced from the DSP carrier card PQ Pulse In Width PQ output that returns the number of H clock periods that occured between every rising and falling edge of an external TTL level pulse train The period is relative to the number of H clock periods sourced from the DSP carrier card NOTE The H Clock rate varies depending upon the particular DSP installed on the carrier card Currently all Sheldon Instruments hardware supports the following H clock rates 1 SI C31DSP PCI cards The H clock rate for the C31 DSP ranges from 20Mhz to 30Mhz 2 SI C33DSP PCI cards The H clock rate for the C33 DSP is fixed at 37 5Mhz 3 SI C67xDSP PCI cards The H clock rate for the C67x DSP is fixed at 37 5Mhz 3 3 4 PQ Pulse Output The PQ Pulse Output v1 is used to generate TTL level output pulse trains used in PWM applications May be optionaly used in conjunction with the PQ Pulse Width Computation vi Please consult the TI DSP s user manual for mor details concerning the H clock characteristics
12. NOT PQ Logical NAND PQ Logical NOR PQ Logical NOT XOR PQ JK Flip Flop PQ Bitwise Rotate 24 bits max PQ Bitwise Extraction 24 bits max PQ Bitwise AND 24 bits max PQ Bitwise AND PQ Bitwise OR PQ Bitwise XOR PQ Bitwise NOT PQ Bitwise NAND PQ Bitwise NOR PQ Bitwise NOT XOR 4 8 PQ Digital Filters 4 8 1 4 8 2 PQ IIR Filter 4 8 1 1 IR Direct Filter Coefficients Design PQ IIR Cascade Filter 4 8 2 1 IR Cascade Filter Coefficients Design 4 8 3 PQ FIR Filter 4 8 3 1 FIR Filter Coefficients Design 4 8 4 PQ Shock Response 4 8 4 1 Smallwood Coefficients 4 8 5 PQ LMS Adaptive Filter 4 9 PQ Process Control 4 9 1 PQ PID with Integral Reset 4 9 1 1 PID Design 4 9 2 PQ Setpoint Ramp Generator 4 10 PQ Special Functions 4 10 1 PQ Average 4 10 2 PQ Average Float Point Compensated 4 10 3 PQ Squelch Noise Gate 4 11 Waveform Generation 4 11 1 PQ PlayBack 4 11 2 Waveform Design 4 11 3 PQ Waveform Playback 4 12 Z Transforms 4 12 1 PQ Z Delay 4 12 2 PQ Feedback Node 4 12 3 PQ Summing Node 4 12 4 PQ Multiplying Node 4 12 5 PQ Feedback Delay 4 13 PQ Miscellaneous 4 13 1 PQ Add PQ Function to List 4 13 2 PQ User Function 5 0 Vector Queuing VIs 5 1 VQ Constants 5 1 1 VQ 2D Constants 5 1 2 VQ Constant 5 2 VQ Arithmetic 5 2 1 VQ Addition 5 2 2 VQ Subtraction 5 2 3 VQ Multiplication 5 2 4 VQ Division 5 2 5 VQ Quotient amp Remainder 5 2 6 VQ Complex Add
13. OUT COFF file for the DSP COFF Mode LabVIEW input used to define the mode of operation of the COFF file as it relates to the Flash memory 0 Mode 0 Normal Load COFF Load amp Run default run mode irrespective of Flash being present or not The COFF file is simply downloaded to the C671x s boot ROM then the DSP is taken out of its idle or reset state which triggers DSP code execution 1 Mode 1 Create Flash File amp Run A separate Flash COFF file is created which essentially contains the QuX netlist appended to the normal DSP COFF file Once the file is created the operation continues as in Mode 0 where the COFF file is simply downloaded to the C671x s boot ROM then the DSP is taken out of its idle or reset state which triggers DSP code execution NOTE One must take caution with the naming of this file it is recomended that the flash designation be appended to the end of the filename 2 Mode 2 Run From Flash File The host does nothing more than remove the DSP from its idle or reset state which will force code execution NOTE The flash file must be preloaded into the Flash boot ROM in order for this mode to operate correctly Flash Path and Filename LabVIEW filepath input used to indicate the location of the Flash file The flash file essentially contains the QuX netlist appended to the normal DSP COFF file 3 4 4 3 Configure C33 PCI Configures the SI C33DSP PCI carrier card by loading its correspondi
14. This VI synchronously transfers data from a DSP buffer to host memory The data may be displayed on the screen as an oscilloscope as well as be transferred to disk Each data point transferred is represented as a 32 bit single precision floating point value 4 6 5 PQ Synch Packed Scope vi Setup Params wo Display 5S amples Charn Board Runtime Params pe PL_Analog Channel Array f eror in PL Enable PQ Synch Packed Scope i rr 90 116 Data a Status error out This VI synchronously transfers data from a DSP buffer to host memory The data may be displayed on the screen as an oscilloscope as well as be transferred to disk Each data point transferred is represented as two 16 bit integers concatenated to form a single 32 bit fixed point value Concatenating or packing two 16 bit words into a single 32 bit word effectively increases data transfer bandwidth as well as doubling the amount of data points within a given block of requested memory in both the DSP and the host domains 4 6 6_Common Synchronous Scope Parameters Setup Parameters LabVIEW cluster representing parameters to configure the operation of the VI they include Note These parameters are to be set before running the application VI and cannot be altered during runtime or after the DSP is active running an application Setup Params Host Buffer Size Total lt31072 DSP Black Size Channel spse DSP Block Count Cha
15. VO Mint Input Windows Coefficients eror in no error efor out Constant Window Coefhicients Design wi Window Function LabVIEW input to select the algorithm with which to compute the windowing coefficients of interest VQ X n Input VQ input only used to derive the size of the vector since it must coincide with the number of windowing coefficients Constant LabVIEW input ancillary variable necessary to compute coefficients for some variety of windowing functions VQ X n Output VQ output that only mirrors the VQ Input terminal as a convenience may be optionally used to feed the VQ input terminal to the VQ _ Window vi function Windows Coefficients LabVIEW output array actual windowing coefficients to be fed into the same terminal on the VQ Window vi function 5 5 3 _ VO Windows Alternate VIs These functions are redundant as they duplicate the functionality of the Window Coefficients Design vi and the VQ Window vi functions and are not necessary Only provided as a convenience if only one function icon is desired to represent a single windowing algorithm TO Windows Alternate Is a i _ Alt Windows HAYQ Windows Alternate Is 5 5 3 1 VQ Hanning Board O Hanning of x4r w in error in no error error out Q Hanning Window yi VQ X nt VQ input VQ Hanning of X n VQ output 5 5 3 2 VQ Hamming Board WO Hamming of 4n Wo mt tt are ES alk a error out error in no error
16. Y n VQ input VQ Real X Y VQ output difference of real parts of X n and Y n VQ _ Imag X Y VQ output difference of imaginary parts of X n and Y n 5 2 8 VQ Complex Multiplication WO Real tY WO Imag tY error our Board VO Real tn VO Imag xn error in no error WO Real Yin WO Imag Yin QO Complex Multiplication wi VQ Real X n VQ input VQ Imag X n VQ input VQ Real Y n VQ input VQ Imag Y n VQ input VQ Real X Y VQ output real part of complex multiplication of X n and Y iy VQ Imag X Y VQ output imaginary part of complex multiplication of X n and Y n 5 2 9 VQ Complex Division Board WO Real xin WO Imag 4n error in no error VO Real Yin WO Imag Y n YQ_Complex Division i YO Real si WO Imag aY error aut VQ Real X n VQ input VQ Imag X n VQ input VQ Real Y n VQ input VQ Imag Y n VQ input VQ Real X Y VQ output real part of complex division of X n and Y n VQ Imag X Y VQ output imaginary part of complex division of X n and Y nj 5 2 10 VQ Vector Summation This VI returns a vector VQ Sum Xi n equal in size to each of the vectors in the input array VQ Array of X n which are also of the same size Each i th element of the result is the sum of the respective 1 th elements of the input vectors 1 e the 3rd element of VQ Sum Xi n is the sum of the 3rd elements of all of the input VQ X n vectors B
17. a block of N points 4 5 12 PQ Trigger The PQ Trigger function is the classical implementation of an analog trigger detector When the trigger conditions are met a PQ zero value or TRUE is returned while a PQ non zero value indicates that the conditions are not met The resultant of the trigger function may can be used to synchronize any signal to any time dependent event It can be fed into the PQ Sync In or PQ Trig In inputs of the PQ Index PQ Peak Detection PQ Scope PQ Packed Scope and PQ Max amp Min functions Board PO Input n error in no error Trigger Conditions PO Triggered Qutput PQ Trigger level error out PQ_Trigger i PQ X n PQ input signal to be examined Trigger Conditions LabVIEW cluster used to determine the conditions upon which a trigger condition is met Please refer to the next section for more details PQ Triggered Output PQ output that returns a low asserted value or a PQ zero for a true or trigger condition met or a high value or PQ non zero value for a false or no trigger PQ Trigger level PQ output value representing the value of the input when the trigger condition ocurred 4 5 12 1 Trigger Conditions Trigger Conditions TrigLevel sa 1 40 Slope Free Run lp Hysteresis sa 0 00 Le Delay Pretrig a 1 Trigger Level The TRIGLEVEL value determines the voltage level at which the specified trigger channel must intersect The trig
18. and reverse coefficients 4 8 2 PO IIR Cascade Filter The IIR filters are setup as two separate VIs a conventional LabVIEW based filter design VI and a DSP PQ IIR Cascade Filter VI The PQ IIR Cascade Filter VI is implemented on the DSP using the well known summation of two terms or recursive formula Please refer to the Analysis Library Reference Manual Board Posin e IIR Filter Cluster error in no error PQ_IIR Cascade Filter wi PQ Filtered Output Pq Coefficients error out PQ X n PQ input IIR Filter Cluster LabVIEW input cluster containing the forward and reverse coefficients The cluster may be derived by using one of the outputs of the LabVIEW based design VIs PQ Filtered Output PQ output that returns a continuous filtered value without the need for initial conditions analogous to a conventional analog filter PQ Coefficients PQ output that simply mirrors in the PQ domain the actual coeficients used by the cascade algorithm 4 8 2 1 TIR Cascade Filter Coefficients Design To be used as a companion VI with the PQ IIR Cascade Filter VI IIR Filter Characteristics IIR Filter Cluster IIR Cascade Filter Coefficients Design vi IIR Filter Characteristics LabVIEW input cluster to define the IIR filter characteristics IIR Filter Cluster LabVIEW cluster containing the forward and reverse coefficients 4 8 3 PQ FIR Filter The FIR filters are setup as two separate VIs a conventi
19. for custormer to add custom VQ Functions Number of Input Blocks Board Function Sumber feneration error in no error Bheads Parameters QO User Function error que Number of Input Blocks Number of input VQ vector blocks Function Number A number which identifies the funcion with what DSP knows what to do Generation An incremental value to know when data 1s updated and ready to be processed Bheads An array of pointers to the several vectors needed for current function Parameters An array of parameters or constant values needed by the function 5 11 8 VQ Get Generation Gets Current Generation number Board Generation error in ino error error out QO Get Generation y i Generation Current generation 5 11 9 VQ Update Generation Updates Generation of a VQ vector with generation value of another VQ Not intneded for general use Board Wo Hogt WO sorig WO icopy error out error in no error Q Update Generation wi VQ X org VQ vector from where generation must be taken from VQ _ Y copy VQ vector where generation must be copied updated to VQ _ Y out same as VQ Y copy except after execution generation of vector is same as of VQ X org 5 11 10 VQ Update 1 Generation Increments a Generation numer Board vO out WoO sarig WO copy error out error in no error Q Update 1 Generation i VQ X orig VQ vector from where generation must be t
20. from its idle or reset state which will force code execution NOTE The flash file must be preloaded into the Flash boot ROM in order for this mode to operate correctly Flash Path and Filename LabVIEW filepath input used to indicate the location of the Flash file The flash file essentially contains the QuX netlist appended to the normal DSP COFF file Sample Rate Chan LabVIEW input used to define the sample rate per channel of a multifunction analog I O daughter module DSP Clock Speed LabVIEW input to define the DSP clock speed used to calculate various timebases NOTE The H Clock rate varies depending upon the particular DSP installed on the carrier card Currently all Sheldon Instruments hardware supports the following H clock rates 1 SI C31DSP PCI cards The H clock rate for the C31 DSP ranges from 20Mhz to 30Mhz 2 SI C33DSP PCI cards The H clock rate for the C33 DSP is fixed at 75 Mhz 3 SI C67xDSP PCI cards The H clock rate for the C67x DSP is fixed at 75Mhz 3 4 2 Configure DSP Configures the DSP carrier card by loading its corresponding COFF file The COFF file contains all communications between the host PC and the DSP along with all of QuVIEW s DSP resident functions Intended for advanced users OS Type INIT File Path error in no error error out COFF Mode FLASH Path and Filename l Configure DSP vi OS Type LabVIEW input Operating System Type It is important to indicate what type
21. integers with all channel data interleaved Points Read LabVIEW output that indicates the number of points read through a queuing iteration Points Remaining LabVIEW output that indicates the number of points remaining during disk recording Channel Count LabVIEW output that indicates the number of channels used for display or disk recording 4 6 3 PQ WaveScope Stream Samples Cchan Scope Buffer Size Board voltage Output Queue f Points Read wave File Path Points Remaining Stream File PO Analog Channel Array error in no error Tf Channel Count Error error out PO PlayBack PQ WavreScope yi The PQ WaveSope VI is used for simultaneous stream to disk and playback from disk This same functionality can be achieved using several discrete VIs However for convenience this special purpose VI will allow both operations to be performed more efficiently The inputs to this VI are analogous to those used on the PQ Scope VIs reviewed above NOTE The number of channels to record must be equal to the number of channels to playback PQ Playback PQ 1D output array containing the playback data WaveFilePath Path and filename of the playback file StreamFile Path and filename of the file to be recorded 4 6 4 PQ Synch Scope vi Setup Params Display SamplesChan Board Runtime Params PQ_Analog Channel Array Error Ir PO Enable PQ_ Synch Scope vi Woltage Data Float Status eror out
22. list is complete After receiving this indicator the DSP commences code execution Board G Output C1 Input error in no error error out Terminate Queue y i Q Input Queuing input may be either VQ or PQ variables and optionally used to force presedence The use of the error in and error out cluster terminals 1s recommended for imposing deterministic precedence Q Output Queuing output may be either VQ or PQ variables and optionally used to force presedence NOTE It may be necessary to maintain precedence within LabVIEW by wiring in the Error In terminal In this way the Terminate Queue VI will be guaranteed to execute last Only a single Terminate Queue vi is required 3 5 2 Read from DSP board This VI allows the host to read one or more 32 bit words from the DSP s memory space Raw Mode Board Coun Start Address error in no error Read from DSP Board yi Data Read error ouk Count LabVIEW input that sets the number of sequential DWord locations that are read from the DSP Start Address LabVIEW input used to indicate an address location within the DSP s address space from where the reads are to begin RW Mode LabVIEW input that determines the communications mode The following optins apply RW Mode 0 Default Uses the mode specified in the Configure Communications subVI RW Mode 1 Hostpoll Forces the hostpoll mode of communications between the host and DSP please consu
23. no error Channel Selector Offset Channel Selector Aray Offset PQ_Chpped Analog Output Channel wi Scale Factor error out Channel Selector Offset LabVIEW constant used to select a single analog output of interest Not to be used if an array is wired to the Channel Selector Array Offset terminal Channel Selector Array Offset LabVIEW array of constants used to select an array of analog outputs Convenient if many analog outputs are to be written simultaneously as it avoids the wiring of separate icons If wired it becomes the default channel selector terminal as the Single Channel Selector Offset terminal is ignored PQ Analog Output Data PQ input containing the actual scaled value to be written to a single selected analog output If an array of channels is selected this terminal is ignored PQ Analog Output Data Array PQ input array containing an array of scaled values to be written to an array of analog outputs Should be used if the Channel Selector Array terminal is used since both array sizes must be the same and have a one to one correspondence Scale Factor LabVIEW output used to read the exact analog voltage scaling factor 3 1 5 PQ Clipped Unscaled Analog Output The PQ Clipped Unscaled Analog Output v1 simply writes one or more analog outputs as raw bipolar signed binary values no scaling or calibration takes place except for the clipping of the limits so as to avoid wrapping Daughter Modu
24. of points to drop for display or disk recording PQ Trig In PQ input that specifies a PQ trigger source Pretrig Delay LabVIEW input that takes in a negative value for pretriggering and positive values for postriggering this value is limited by the amount allotted in Scope Buffer Size input Stream LabVIEW boolean input that specifies if the outgoing data is being written to a target file or not Voltage Output LabVIEW two dimensional output array that contains the voltage scaled data to be used by LabVIEW All Voltage Outputs LabVIEW one dimensional output array very similar to Voltage Output except all channel data is interleaved Points Read LabVIEW output that indicates the number of points read through a queuing iteration Points Remaining LabVIEW output that indicates the number of points remaining during disk recording Channel Count LabVIEW output that indicates the number of channels used for display or disk recording The PQ Scope VI allows LabVIEW to receive data from the DSP This data can then be displayed and or streamed to disk The minimal inputs to the PQ Scope VI whether streaming or displaying is an array wired into the PQ Analog Channel Array This array can be built by wiring in any PQ variable within the block diagram The data is returned to LabVIEW in the form of a 32 bit floating point voltage formatted as a two dimensional array With PQ Analog Channel Array being the only input wired PQ Scop
25. particular analog channel of interest DSP Values An array containing the Offset and Magnitude error values of a particular analog I O channel of interest converted to DSP format 3 1 13 4 Store Cal Table Stores a Calibration table into LabVIEW host memory For advanced users and not intended for general use Board Cal Table error in no error Store Current Calibration Table v i Cal Table Array of Cal Table values 3 1 13 5 Save Cal File Saves a Calibration table into a file For advanced users and not intended for general use Board Path to Cal Table error in no error Save To Calibration Table File y i Path to Cal Table Path to Calibration Table file Cal Table An array of values to be saved into the Calibration file 3 1 13 6 Store Cal Point Stores a calibration value of a single analog channel For advanced users and not intended for general use Board Direction Channel error in no error Magnitude Offset Store Single Cal alue yi Direction Denotes 1f the calibration is to apply to an analog input or an analog output Channel Channel number of the analog I O channel of interest Offset Offset error value to be applied to a particular analog channel of interest Magnitude Magnitude error value to be applied to a particular analog channel of interest DSP Values An array containing the Offset and Magnitude error values of a particular analog I O channel of inter
26. points to be sampled Max Peaks Maximum number of peaks to count detect VQ Peak Indexes VQ output Index numbers indicating where the peaks troughs occurred PQ Past Index PQ output index of the last peak PQ Double Last Index PQ output PQ Peak Count PQ output count of peaks troughs detected PQ Peak Trough PQ output highest Peak Trough value detected in the vector PQ Max Threshold PQ output value of Maximum Threshold PQ Min Threshold PQ output value of Minimum Threshold 5 7 5 VQ Max amp Min Obtains the maximum and minimum values of a VQ vector WOU Max of 4r WOU Min of sn error out Board wQ n error in no error Output Yector Size QO Max amp Min y i VQ X n VQ input Output Vector Size LabVIEW input Specifies the output vector size such that each element is the Max or Min of a Vector VQ Max of X n VQ output vector with the maximum values detected in a vector VQ Min of X n VQ output vector with the minimum values detected in a vector 5 7 6 VQO_FSK Compare Frequency Shift Keyed Board WO PSK of sdn YQS N error in no error error out Oukput Yector Size Y _FSK Lompare Yi VQ X n VQ input OutputVector Size LabVIEW input defines the size of VQ FSK of X n VQ FSK of X n VQ output 5 8 VO Vector Manipulation ee F Hm e HAYQ Vector Manipulation ooge Baas oti oes Dt LO 5 8
27. returns the Maxi Max response for each frequency Board PO sin Smallwood Coefficients f error in no error PQ Shock Response vi VO Shock Response error ouk PQ X n PQ input Smallwood Coefficients LabVIEW bundle of two arrays These arrays are the a and b coefficients for the Smallwood filter The bundle of coefficients is taken from the Smallwood coefficient generator VQ Y n VQ output Each point in the outgoing vector corresponds with the array of frequencies wired into the Smallwood Coefficients terminal 4 8 4 1 Smallwood Coefficients Used as a companion VI to the PQ Shock Response VI Frequencies a dT Smallwood Coefficients Smallwood Coefficients vi Frequencies A LabVIEW array of desired frequencies Q LabVIEW input that defines the quantization level dT LabVIEW input defining the sample period of the input in question Smallwood Coefficients A LabVIEW output cluster of the a and b coefficients for a Smallwood filter to be wired into the Shock Response VI 4 8 5 PQ LMS Adaptive Filter This VI performs an adaptive filtering algorithm using the Least Mean Squared method The data that is input at PQ X n is passed through the filter created by PQ Y n ref and PQ err The PQ coefficients output is an array of values that must be read using the DSP READ function described above Mode Weights Board PO_ Sint ri error in no error Pl rin ret PL err PQ_LMS
28. used between the host and the DSP for the SI C6xDSP PCI based boards and only used once during card initialization Board vendor Device error in no error Comm Params Configure PCI Communications C6711 PLE yvi Vendor Ignored Device Ignored Comm Params A LabVIEW input cluster of various parameters to specify what communication mode to be used The user can define the type of communication mode that best suits a particular application between a specific boundary The parameters to set are as follows Comm Params Read Mode Below Lirit Wirite Mode Below Lirit LTIVE Hostpall Hast T arget DSP I0 DSP I0 i Combo Syne Flg BF DAeg E Combo Syne Flg BF DAeg E Read Lirnit Wi rite Lirnit a0 gt Ap 7 7 Read Mode Above Lirnit Wwirite Mode Above Lirnit LTIVE LTI E Host BM Host BM DSP DMA DSP I0 Combo Sync BP FIFO EE i Combo Async BP FIFO B Read Mode Below Limit Communication mode for reading below boundary limit Read Mode Above Limit Communication mode for reading below boundary limit Read Limit Boundary value for host reads Write Mode Below Limit Communication mode for writing below boundary limit Write Mode above Limit Communication mode for writing above boundary limit Write limit Boundary value for host writes Results LabVIEW output array returning the communication parameters selected 3 4
29. 1 PQ GoTo While Loop Structure 6 3 2 PQ Begin While Loop Structure 6 3 3 PQ End While Loop Structure 6 4 VQ Case Structures 6 4 1 VQ Open Case Structure 6 4 2 VQ Terminate This Case 6 4 3 VQ Close Case Structure 6 5 VQ Conditional Execute Structures 6 5 1 VQ Begin Conditional Execute 6 5 2 VQ End Conditional Execute 6 6 VQ While Loop Structures 6 6 1 VQ Begin While Loop Structure 6 6 2 VQ End While Loop Structure 7 0 Supplemental SI Functions 7 1 Construct Channel Array 7 2 Boolean to Channel Array 7 3 Application Launch SSSSSSSSSSHSSHSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 1 0 QuVIEW Software Installation It is imperative that all QuVIEW files be loaded into the correct location for proper operation 1 1 QuVIEW Files Organization All QuX discs contain at minimum these folders which are organized as follows uxX gt QuBASE gt QuBASE 6 gt QuBase_net gt VB6 extras gt VB NET extras gt OQuVIEW gt LabVIEW4 gt DemoVIs LV4 gt user lib gt LabVIEWS5 gt menus gt OQuVIEW gt si lib gt user lib gt LabVIEW6 gt menus gt Qu VIEW gt si lib gt user lib gt LabVIEW7 gt menus gt OQuVIEW gt Sheldon LV5 gt QuBASE QuVIEW files QuBASE files for Visual Basic 6 QuBASE files for Visual Basic NET Useful utilities to complement Visual Basic Useful utilities to complement Visual Basic NET All QuVIEW examples an
30. 1 VO Subset Board VO int VOL nde VOL Size error in no error VOL Subset PO_ Indexed Value emor out YQ Subset_vi VQ X n VQ input VQ _ Index VQ input used to determine the location of the first point within the current vector that starts the new vector block VQ Size VQ input used to determine the size of the new vector block VQ Subset VQ output new vector subset PQ Indexed Value PQ output value extracted from the vector as indexed by the VQ Index input 5 8 2 VQ Concatenate Vectors Concatenates the two input vectors into a single output vector Board YO 1r YO 2r error in no error QO Concatenate yi VQ _ X1 n VQ input vector VQ_ X2 n VQ input vector VQ _ Y n Resulting single VQ output with VQ X2 n concatenated after VQ Xi n 5 8 3 VQ Mirror This VI is useful for turning the output of a single sided Real FFT into a full sided Real FFT Board Wo n vQ n va error in no error error ouk QO Mirror i VQ X n VQ input VQ_Y n VQ output that is doubled in size with the new half having its elements reversed 5 8 4 VO Reverse Board Q_ snp error in no error Y Reverse yi VQ X n VQ input VQ_ Y n VQ output with its elements reversed 5 8 5 VO Real Bit Reversal Performs a bit reversal function on the real part only used as a subVI for FFTs Board YO in emor in no eror emor cut YQ Real Bit Reversal vi VO
31. Adaptive Filter vi PO Filtered Output PL Coetticients error out Mode LabVIEW input selects the mode of operation 0 Single Convolution Ignore PQ Err Ignores the PQ Error input Below is a block diagram oo l PO Fef 3 gt poate Coeff 1 Double Convolution Use PQ Err Uses the PQ Error input Below is a block diagram pe poate Coeff Weights LabVIEW input that defines the number of weighting values or coefficients to be used PQ X n PQ Input signal source mu LabVIEW input to define the mu weighting variable PQ Y n ref PQ input reference source signal PQ err PQ input error input PQ Filtered Output PQ output that returns a continuous filtered value without the need for initial conditions analogous to a conventional analog filter PQ Coefficients PQ output that simply mirrors in the PQ domain the actual coeficients used by the LMS algorithm 4 9 PO Process Control 4 9 1 PO PID with Integral Reset The PQ PID Controller VI is implemented on the DSP using the well known Proportional Integral Derivative algorithm Max Limit Algorithm Board PQ Yon Po Setpoint Array of PID constants error in no error PO Reset exponent M For recursive term Min Limit PQ PID with Integral Reset vi PO PID Output error gue PQ X n PQ input derived from the controlled system output PQ Setpoint PQ input used to pass on the desired setpoint of the contr
32. Analog Input Channel fh fe RET y CALED UHE ALET OUTPUT Hout OUTPUT The PQ Analog Input Channel vi integrates the complete functionality associated with reading one or more analog inputs This functionality includes reading the raw bipolar signed binary value and then scaling and converting it to a floating point value that represent its voltage based on the ADC s resolution and signal range Daughter Module Board PL Analog Data PL Analog Data Array Scale Factor Error out error in no error Channel Selector Offset Channel Selector Array OFF Masinum Channel Count PQ_Analog Input Channel wi Channel Selector Offset LabVIEW constant used to select a single analog input of interest Not to be used if an array is wired to the Channel Selector Array Offset terminal Channel Selector Array Offset LabVIEW array of constants used to select an array of analog inputs Convenient if many analog inputs are to be read simultaneously as it avoids the wiring of separate icons If wired it becomes the default channel selector as the Single Channel Selector Offset terminal is ignored Maximum Channel Count LabVIEW constant used to limit the maximum number of elements in the Channel Selector Array input Allows the number of elements inside of the Channel Selector Array to be altered in real time while a VI is running PQ Analog Data PQ output containing the actual scaled reading from a
33. Bit Reversed int VQ X n VQ input VQ Bit Reversed X n VQ output 5 8 6 VO Complex Bit Reversal Performs a bit reversal function on both the real and imaginary parts used as a subVI for Complex FFTs Board VO Aint Real VO ine Imag emor in no error VO Bit Reversed int Real L WO_Bit Reversed int Imag error out OQ_Complex Bit Reversal Yi VQ X n Real VQ input VQ X n Imag VQ input VQ Bit Reversed X n Real VQ output VQ Bit Reversed X n Imag VQ output 5 9 VQ Matrices a ke Yector Queue YU Matrices m Be ee Ee Be 5 9 1 VO Matrix Addition Computes the addition of two NxM matrices Board WO _ T4 6 wo fat error out error in no error QO Matrix Addition vi VQ _ A VQ Input vector VQ_ B VQ Input vector VQ_ A B VQ output elements are the addition of each corresponding A and B element 5 9 2 VQ Matrix Subtraction Computes the subtraction of one NxM matrix from another Board WO 4 vO E error in no error s Q Matrix Subtraction wi VQ _ A VQ Input vector VQ_ B VQ Input vector VQ_ A B VQ output elements are the difference of each corresponding A and B element 5 9 3 VQ Matrix Scale Scales each element of an NxM matrix with a gain factor k and a bias factor b Board Wo k A b VO A error in no error error out Scale Factor k Bias Factor b YQ Matrix Scale yvi VQ A VQ Inp
34. Board POL Pulse Out HI Count PO Pulse Out LO Count error in no error Pulse Out Source PQ_ Pulse Output Pin 81 MODG68xx v1 emor out PQ Pulse Out HI Count PQ input Width Duration of the output pulse asserted HI the number of periods between the rising and falling edges relative to the number of DSP H clock periods The period 1s relative to the number of H clock periods sourced from the DSP carrier card PQ Pulse Out LO Count PQ input Width Duration of the output pulse asserted LO the number of periods between the falling and rising falling edges relative to the number of DSP H clock periods The period 1s relative to the number of H clock periods sourced from the DSP carrier card NOTE The sm of these two values is equivalent to the overall pulse period Pulse Out Source LabVIEW input selects one of the available pulse output pins present on the auxiliary digital I O port NOTE The H Clock rate varies depending upon the particular DSP installed on the carrier card Currently all Sheldon Instruments hardware supports the following H clock rates 1 SI C31DSP PCI cards The H clock rate for the C31 DSP ranges from 20Mhz to 30Mhz 2 SI C33DSP PCI cards The H clock rate for the C33 DSP is fixed at 37 5Mhz 3 SI C67xDSP PCI cards The H clock rate for the C67x DSP is fixed at 37 5Mhz 3 3 5 PQ Pulse Width Computation Computes the conversion values to be downloaded to PQ Pulse Output vi DSP Clock Speed
35. Board Pulse Frequency Hz Pulse Width nsec eror in no error PQ_ Pulse Width Computation 1 MOD66xx vi1 PQ Pulse Out HI Count PO Pulse Out LO Count error out DSP Clock Speed Mhz LabVIEW input to select the time period based on the DSP Clock speed Pulse Width nsec LabVIEW input to define output pulse HI asserted level duration in nanoseconds Pulse Frequency Hz LabVIEW input to define the overall pulse frequency in hertz PQ Pulse Out HI Count PQ output Width Duration of the output pulse asserted HI the number of periods between the rising and falling edges relative to the number of DSP H clock periods The period is relative to the number of H clock periods sourced from the DSP carrier card PQ Pulse Out LO Count PQ output Width Duration of the output pulse asserted LO the number of periods between the falling and rising falling edges relative to the number of DSP H clock periods The period is relative to the number of H clock periods sourced from the DSP carrier card NOTE The sm of these two values is equivalent to the overall pulse period NOTE The H Clock rate varies depending upon the particular DSP installed on the carrier card Currently all Sheldon Instruments hardware supports the following H clock rates 1 SI C31DSP PCI cards The H clock rate for the C31 DSP ranges from 20Mhz to 30Mhz 2 SI C33DSP PCI cards The H clock rate for the C33 DSP is fixed at 37 5Mhz 3 SI C67x
36. Condition PQ input used to set the initial value from which to start the ramp Step Mode LabVIEW input that determines if the Step Constant is to be expressed as units of mV or a percentage between the initial and final points Step Constant LabVIEW input used to determine the gradient of the slope of the PQ Final Setpoint output If the Step Mode is set for mV each sample will increment or decrement by this mV value until the final setpoint is reached If the Step Mode is set for percentage each sample will be incremented to a proportion equal to the percent of the difference between the current or initial value and the final setpoint value PQ Final Setpoint PQ output used to pass on the ramped setpoint 4 10 PQ Special Functions PQ Special Functions a rs d F f gt an FE d a Ep 4 10 1 PQ Average The PQ Average function computes and returns a moving average of the input data points based on the Width variable Therefore the moving average output will behave similar to a lowpass filter Upper Limit Board PO_ n Avg Width eror in ho error Lower Limit Initial Y alue PO_ Average of x n emor out PQ Average vi PQ X n PQ input Avg Width LabVIEW constant to determine the number of points from which to compute the moving average Upper Limit LabVIEW input defines the upper limit clipping value if the wind up phenomenon is detected Lower Limit LabVIEW input defines the
37. DSP For all DSPs COFF files have a OUT extension and reside inside of the SIC30DSP directory Path to Cal Table LabVIEW filepath input used to indicate the location of the Calibration Table for the given daughter module Please notice this table is unique to each board and cannot be used among different boards The values in this table reflect each analog I O channels gain and offset errors The calibration table file 1s created by the CALIBRATION LLB and has a TBL extension COFF Mode LabVIEW input used to define the mode of operation of the COFF file as it relates to the Flash memory 0 Mode 0 Normal Load COFF Load amp Run default run mode irrespective of Flash being present or not The COFF file is simply downloaded to the C671x s boot ROM then the DSP is taken out of its idle or reset state which triggers DSP code execution 1 Mode 1 Create Flash File amp Run A separate Flash COFF file is created which essentially contains the QuX netlist appended to the normal DSP COFF file Once the file is created the operation continues as in Mode 0 where the COFF file is simply downloaded to the C671x s boot ROM then the DSP is taken out of its idle or reset state which triggers DSP code execution NOTE One must take caution with the naming of this file it is recomended that the flash designation be appended to the end of the filename 2 Mode 2 Run From Flash File The host does nothing more than remove the DSP
38. DSP PCI cards The H clock rate for the C67x DSP is fixed at 37 5Mhz 3 3 6 PQ PWM Event Counter CLKx on C3x The PQ PWM Event Counter CLKx on C3x is an extremely powerful function that operates as a frequency counter on one of the four serial port clock pins of the C3x DSP It returns a PQ Last Pulse Width value and a PQ Last Edge Time value based on the C3x s internal free running Timer 0 clock In essence the PQ Last Pulse Width is the number of Timer 0 counts that occur between every rising or falling edge of an external TTL level pulse train In order to compute the actual frequency of the external pulse train divide the PQ Last Pulse Width value into one fourth the C3x s clock speed For example 1f the C3x s clock speed is rated at 60Mhz divide 15Mhz by the PQ Last Pulse Width value The PQ Last Edge Time simply returns the last value of the C3x s internal Timer 0 value as opposed to a net difference provided by the PQ Last Pulse Width output Please consult the C3x User s Guide for further details about the C3x s internal architecture Board Digial 70 Pin Source LE Pin Parameters po eror in no error PL EC Reset PU EC Wrap Mode PQ PWHfEvent Counter CKRICKX on C3x v1 PO_ PWM Period EC Enable Out PO PY ih width PO_ Pw Last Tick Count error out Digital I O Pin Source 0 3 LabVIEW input ranging from 0 to 1 for a C31 and C32 or 0 to 3 for a C30 that determines which of the four serial clock port
39. Determinant A The resultant Determinant matrix of VQ A 5 9 9 VO AxXfn Computes the Cross product of an NxR matrix times an Rx1 matrix or vector and returns a single Nx1 matrix or vector VOM Po Al VO Output Vector YI vector E eror out eror in no error YQ Hatriz u Product Yector wi VQ A VQ input vectors VQ X n VQ input vectors VQ Ax X n VQ Cross Product of VQ A by VQ X n 5 9 10 VO AxB Computes the Cross product of an NxR matrix times an RxM matrix and returns a single NxM matrix error in no error OQ_ Matis A nProduct Matix B vi VQ A VQ input vectors VQ _ B VQ input vectors VQ A x B VQ Cross Product of VQ A by VQ B 5 9 11 VQ Solve Linear Equations Solves for a linear system with variables represented by a square NxN matrix Board O_ 4 WO_TB error in no error vO LC error aut Q Solve Linear Equations i VQ A VQ input matrix VQ _ B VQ input matrix VQ _ C Resultant VQ matrix containing the linear parameters for the input matrices 5 10 VQ Conversion O conversion a 5 10 1 VO Build VQ Block From PQ Source Board VO in PO_ n emor in no eror emor out PO_Vector Size Masimunm Yector Size PQ Build Q Block from PQ Source vi PQ X n PQ input used to determine the input source from which to build a vector block PQ Vector Size PQ input used to determine the number of poi
40. Is VQ _ Filtered X n VQ output that returns a filtered vector only on the input vector in question 5 6 1 1 TIR Direct Filter Coefficients Design TIF Filter Characteristics IIR Filter Cluster IIR Direct Filter Coefficients Design y i IIR Filter Characteristics LabVIEW input cluster to define the IIR filter characteristics IIR Filter Cluster LabVIEW cluster containing the forward and reverse coefficients 5 6 2 VO IIR Cascade Filter The IIR filters are setup as 2 separate VIs a conventional LabVIEW based filter design VI and a DSP VQ IIR Cascade Coefficient Design VI The VQ IIR Cascade Filter VI is implemented on the DSP using the well known cascade formula Please refer to the Analysis Library Reference Manual Constantly Update Coefficients Board vin HR Filter Cluster error in no error VO Filtered in PL Coefficients error out O_ WK Cascade Filter vi Constant Update Coefficients LabVIEW boolean input that determines if the filter coefficients are to be constantly updated or not Defaulted to not constantly update in order to maximize throughput VQ X n VQ input IIR Filter Cluster LabVIEW cluster containing the forward and reverse coefficients The cluster may be derived by using one of the outputs of the LabVIEW based design VIs VQ Filtered X n VQ output that returns a filtered vector only on the input vector in question 5 6 2 1 TIR Cascade Filter Coefficients D
41. L Constants Constant 1D ray of Constants error out error in no error Data Address Generation Q_ Constant Constant Update LabVIEW boolean input indicates if data will be continuously downloaded to the DSP for each execution iteration or not Sync LabVIEW boolean input indicates if execution is to be carried out Asynchronously regardless if data is updated from the host Constant LabVIEW input a single constant value The value wired to this terminal is used by default if the 1D Array of Constants is left unwired 1D Array of Constants LabVIEW input a 1D array of constants The array wired to this terminal overrides the single value wired into the Constant terminal VQ _ Constants VQ output containing the constants wired in from LabVIEW Data Address LabVIEW output a DSP pointer indicating where the input data was allocated in the DSP For advanced users only Generation LabVIEW output a generation number of the data block allocated used by other VQ s for synchronization For advanced users only 5 2 VO Arithmetic Functions 5 2 1 VO Addition Board Wo M Y vO aint YO Yin error que error in no error Q Addition i VQ X n VQ input VQ Y n VQ input PQ X Y VQ output sum of X n and Y n 5 2 2 VQ Subtraction Board Wo MY vG sAn Wor Ynt error out error in no error Q Subtraction yi VQ X n VQ input VQ Y n VQ input VQ X Y VQ output difference of
42. LIB These VIs are used for implementing ultra high speed real time processing with the added flexibility of using LabVIEW icons A library of functions for real time acquisition signal processing and control exists for algebra calculus digital filtering Z transforms frequency domain analysis numerical analysis waveform generation and process control which are constantly being expanded Two distinct methods of data processing within the DSP are implemented and hence the libraries are divided in such a way so as to make this distinction more obvious One method categorized as Point Queue VIs denoted with a PQ prefix is better suited for real time and continuous data processing in which data is processed on a point by point sample by sample basis and a result is returned before the next point is to be processed These VIs are predominantly colored blue The other method categorized as Vector Queue VIs denoted with a VQ prefix is better suited for processing blocks of data points in which data is processed after the entire block has been received These VIs are predominantly colored purple 2 1 Building a QuVIEW Application The diagram for a QuVIEW application is very similar to that of a normal LabVIEW application However there are a few important issues which must be considered when constructing a VI that uses QuVIEW libraries Please refer to the file Tutorial DOC in the same folder as this document This d
43. OTE The format of the PQ data wired to the PO Analog Channel Array terminal cannot represent scaled or floating point values but rather integer values not exceeding 16 bits in size Therefore only the values returned by the Unscaled Analog Input VIs may be used Display Samples Chan LabVIEW input that specifies the number of points to be displayed per channel Scope Buffer Size LabVIEW input that specifies the maximum buffer set aside during display or disk recording The physical amount of SRAM memory shipped with the DSP board is the only limiting factor where if shipped with the default 64kW a recommended size of 16 000 is appropriate When more SRAM memory 1s available a larger buffer of approximately 32 000 would render faster data transfers Stream Samples Chan LabVIEW input that specifies the number of points to be recorded to disk Decimation Factor LabVIEW input used to specify the number of points to drop for display or disk recording PQ Trig In PQ input that specifies a PQ trigger source Pretrig Delay LabVIEW input that takes in a negative value for pretriggering and positive values for postriggering this value is limited by the amount allotted in Scope Buffer Size input Stream LabVIEW boolean input that specifies if the outgoing data is being written to a target file or not Voltage Output LabVIEW 2D output array that contains the scaled voltage data Packed Data Out LabVIEW ID output array of 16 bit
44. PGALoader has successfully loaded the onboard logic 1 3 Addin uVIEW to LabVIEW Paths After QuVIEW files have been installed it is strongly advised to include them into LabVIEW s search path defaults This can be done in the following ways 1 Using the LabVIEW s graphical editor LabVIEW 5 x Select Edit gt gt Preferences gt gt Paths gt gt VI Search Path which will invoke the Preferences dialog box Remove or unclick the Use Default setting so that you are able to add both the LabVIEW SI LIB and C SIC30DSP paths to the overall list LabVIEW 6 x and LabVIEW 7 x Select Tools gt gt Options gt gt Paths gt gt VI Search Path which will invoke the Preferences dialog box Remove or unclick the Use Default setting so that you are able to add both the LabVIEW SI LIB and C SIC30DSP folder paths to the overall list NOTE The characters must be added to the end of the selected paths in order to ensure that all items inside of this folder are accessed 2 Manually editing the Lab VIEW INI file Look for the viSearchPath line and append the complete paths for the LabVIEW SLLIB and C SIC30DSP folders An example of this line is as follows viSearchPath lt topvi gt lt foundvi gt lt vilib gt lt userlib gt lt instrlib gt C Program Files LABVIEW si lib C SIC30dsp NOTE The characters must be added to the end of the selected paths in
45. PQ Exp X n PQ output computes exponential base e with power of X n 4 3 6 PQ Exp 10 X Board PO ri emor in no error aa error cut PQ Exp 10 X v1 PO_Exp 101 x n PQ X n PQ input PQ Exp 10 X n PQ output computes exponential base 10 with power of X n 4 3 7 P Sine Board PO Sine hn PO_ nm A adians emor in nho error error out PQ Sine vi PQ X n Radians PQ input represented as radians PQ Sine X n PQ output computes sine of radians of X n 4 3 8 PQ Cosine Board eT PO nm Radians ee error in no error error out PQ Cosine vi PU Cosine s n PQ X n Radians PQ input represented as radians PQ Cosine X n PQ output computes cosine of radians of X n 4 4 PQ Calculus 4 4 1 PO Derivative Board PO Derivative of Fit error agt error in no error Initial Condition PQ Dertvative y i PQ f t PQ input dt LabVIEW input that determines width at which to divide the current and previous values of f t PQ Derivative of f t PQ output that returns a continuous differentiating output 4 4 2 P Integral Board PO Integral of Fit dt error out error in no error PO Integral yvi PQ f t PQ input PQ Integral of f t PQ output that returns a continuos additive output NOTE _ It is possible to observe a wrap around effect also known as wind up when using the Integration function This is
46. Q Latch Enable Reset PQ input that determines if the value at the PQ Y n output is a latched value or a real time value from PQ X n input 0 Passive Output The PQ Y n output will be a direct reflection and follow the input 1 Latch Input latches the PQ Y n output and ignores the input PQ Y n PQ output 4 2 PQ Arithmetic Hra Arithmetic By 4 2 1 PQ Add Board PO Qubpuk Y Posin Po n error out error in no error PQ Add vi PQ X n PQ input PQ Y n PQ input PQ Output X Y PQ output sum of X n and Y n 4 2 2 PQ Subtract Board Po n PO Yin error in no error PQ Subtract vi PO Output x error que PQ X n PQ input PQ Y n PQ input PQ Output X Y PQ output difference of X n and Y n 4 2 3 PQ Multiply Board Po Output Y PQ_x n PO Y n error ue error in no error PO Multiply yvi PQ X n PQ input PQ Y n PQ input PQ Output X Y PQ output product of X n and Y n 4 2 4 PQ Divide Board Po_x n Po n error in no error PO Output ary error out PQ Divide yvi PQ X n PQ input PQ Y n PQ input PQ Output X Y PQ output ratio of X n over Y n 4 2 5 PQ Absolute Value Board Po 2 n Po s n error in no error error out PO Absolute Yalue yvi PQ X n PQ input PQ X n PQ output absolute value of X n 4 2 6 PQ Negate Board Po f n 3 Posin ES error i
47. Queue PQ Counters amp Timers 3 3 1 PQ Counter 3 3 2 PQ Event Counter Input SI MOD68xx 3 3 3 PQ Pulse Input Pin SI MOD68xx 3 3 4 PQ Pulse Output 3 3 5 PQ Pulse Width Computation 3 3 6 PQ PWM Event Counter CLKx on C3x 3 3 7 PWM Event Counter SubVIs C3x 3 3 7 Init Serial Port Values 3 3 8 Init Serial Port Values C3x 3 3 9 Initialize Serial Port 3 4 Common Queue Hardware Devices 3 4 1 Initialize Board 3 4 2 Configure DSP 3 4 3 Configure I O 3 4 4 SI DSP SubVIs 3 4 4 1 Configure C6713 PCI 3 4 4 2 Configure C6711 PCI 3 4 4 3 Configure C33 PCI 3 4 4 4 Configure C31 PCI 3 4 4 5 Configure CAC 3 4 4 6 Configure C31 ISA 3 4 4 7 Configure C30 ISA w AppLaunch 3 4 4 8 Configure C30 ISA 3 4 4 9 Get Board Info 3 4 4 10 Reset DSP 3 4 4 11 Configure PCI Communications 6711 PLX 3 4 4 12 Configure PCI Communications C33 PLX 3 4 4 13 Configure PCI Communications AMCC 3 4 4 14 Configure ISA Communications 3 4 4 15 Configure DLL Communications x86 3 4 5 Configure DSP6800 Daughter Module 3 4 6 Configure DSP6400 Daughter Module 3 4 7 Configure DSP1600 Daughter Module 3 4 8 Configure CAC I O amp Launch 3 5 Common Queue Queue Utilities 3 5 1 Terminate Queue 22532 KDD 3 5 4 3 5 5 3 5 6 Read from DSP board Write to DSP board DSP to IEEE IEEE to DSP Error Chainer 3 6 Supplemental VIs 3 6 1 3 6 2 3 6 3 3 6 4 Read PCI NVRAM Write PCI NVRAM Read PCI Opreg Write PCI Opreg
48. SHELDON INSTRUMENTS INC QuVIEW FOR USE WITH LabVIEW SOFTWARE February 2005 Table of Contents 1 0 QuVIEW Software Installation 1 1 QuVIEW Files Organization 1 2 QuVIEW Files Installation 1 3 Adding QuVIEW to LabVIEW Paths 1 4 Viewing QUVIEW Menus Under LabVIEW 2 0 QuVIEW DSP resident libraries for Real Time Acquisition Signal Processin and Control 2 1 Building a QUVIEW Application 2 2 Common Terminals to All QUVIEW VIs 3 0 Common Queue VIs 3 1 Common Queue Analog I O 3 1 1 PQ Analog Input Channel 3 1 2 PQ Scaled Analog Input Channel 3 1 3 PQ Unscaled Analog Input 3 1 4 PQ Clipped Analog Output Channel 3 1 5 PQ Clipped Unscaled Analog Output PQ Analog Output Channel PQ Scaled Analog Output Channel PQ Unscaled Analog Output PQ Calibrate 10 PQ Multiple Calibrate PQ Scale 2 PQ PQ Source to IEEE 13 PQ Analog I O Calibration SubVIs 3 1 13 1 Load Cal File 3 1 13 2 Read Cal Table 3 1 13 3 Read Cal Point 3 1 13 4 Store Cal Table 3 1 13 5 Save Cal File 3 1 13 6 Store Cal Point 3 2 Common Queue Digital I O 3 2 1 PQ Digital Input Port 24 bit max 3 2 2 PQ Aux Digital Input Port SI MOD68xx 3 2 3 PQ Digital Input Port Split to 16 bit Pair 3 2 4 PQ Port Read 24 bit max 3 2 5 PQ Digital Output Port 24 bit max 3 2 6 PQ Aux Digital Output Port SI MOD68xx 3 2 7 PQ Digital Output Port Join 16 bit Pair 3 2 8 PQ Port Write 24 bit max 3 2 9 PQ Digital I O Pin C3x 3 3 Common
49. SP COFF file Once the file is created the operation continues as in Mode 0 where the COFF file is simply downloaded to the C671x s boot ROM then the DSP is taken out of its idle or reset state which triggers DSP code execution NOTE One must take caution with the naming of this file it is recomended that the flash designation be appended to the end of the filename 2 Mode 2 Run From Flash File The host does nothing more than remove the DSP from its idle or reset state which will force code execution NOTE The flash file must be preloaded into the Flash boot ROM in order for this mode to operate correctly Flash Path and Filename LabVIEW filepath input used to indicate the location of the Flash file The flash file essentially contains the QuX netlist appended to the normal DSP COFF file 3 4 4 2 Configure C6711 PCI Configures the SI C6711DSP PCI carrier card by loading its corresponding COFF file The COFF file contains all communications between the host PC and the DSP along with all of QUVIEW s DSP resident functions Intended for advanced users INIT File Path Board COFF File Path error in no error COFF Mode FLASH Path and Filename Configure 6711 PCl v1 error out INIT File Path LabVIEW filepath input used to indicate the location of the initialization COFF file for the DSP For the C6711 it is C6711PLXINI OUT COFF File Path LabVIEW filepath input used to indicate the location of the VQLx
50. SubVIs These VIs are for configuring SI hardware They are unique to specific hardware installed dd ek a CEE Co DE SHSI DSP Sub ls aaan ganga T Ammu NU e ped et lE e ao ISA a 3 x DLL ESE birese e me bET Ma 3 4 4 1 Configure C6713 PCI Configures the SI C6711DSP PCI carrier card by loading its corresponding COFF file The COFF file contains all communications between the host PC and the DSP along with all of QUVIEW s DSP resident functions Intended for advanced users INIT File Path Board COFF File Path error in no error COFF Mode FLASH Path and Filename Configure 6713 PCI wi Error out INIT File Path LabVIEW filepath input used to indicate the location of the initialization COFF file for the DSP For the C6711 it is C6713PLXINI OUT COFF File Path LabVIEW filepath input used to indicate the location of the VQLx OUT COFF file for the DSP COFF Mode LabVIEW input used to define the mode of operation of the COFF file as it relates to the Flash memory 0 Mode 0 Normal Load COFF Load amp Run default run mode irrespective of Flash being present or not The COFF file is simply downloaded to the C671x s boot ROM then the DSP is taken out of its idle or reset state which triggers DSP code execution 1 Mode 1 Create Flash File amp Run A separate Flash COFF file is created which essentially contains the QuX netlist appended to the normal D
51. This VI serves to pass single precision floating point constants from the LabVIEW domain to the DSP domain The values in the LabVIEW domain are passed onto the DSP every time it is executed by LabVIEW thereby rendering the ability to update constants in real time to the DSP Board PO Constant Constant PO 1D Array of Constants 1D Array of Constants error out error in no error PQ_Constant i Constant LabVIEW constant input Not to be used if an array terminal is wired 1D Array of Constants LabVIEW input array useful in condensing wires Convenient if an array of variables is used as it avoids the wiring of separate icons If wired it becomes the default terminal used and the single variable terminal is ignored PQ Constant PQ constant output to be used by other PQ inputs within the DSP domain Not to be used if an array terminal is wired PQ _ 1D Array of Constants PQ output array of constants useful in condensing wires If an input array terminal was used then the output array should be correspondingly used 4 1 2 PQ Latch The PQ Latch function allows for a PQ variable to be passed on to its output terminal as long as it is enabled to do so If disabled the PQ output variable is latched and remains the same ignoring the PQ input variable Board PO nm PO Latch Enable Reset error in no error PQ_Latch yvi Poin error aut PQ X n PQ input variable to be passed on to the output terminal P
52. VIEW array of constants used to select an array of analog inputs Convenient if many analog inputs are to be read simultaneously as it avoids the wiring of separate icons If wired it becomes the default channel selector as the Single Channel Selector Offset terminal is ignored Maximum Channel Count LabVIEW constant used to limit the maximum number of elements in the Channel Selector Array input Allows the number of elements inside of the Channel Selector Array to be altered in real time while a VI is running PQ Unscaled Analog Data PQ output containing the actual unscaled binary reading from a single selected analog input If an array of channels is selected only the first value of the array is returned PQ Unscaled Analog Data Array PQ output array containing an array of unscaled binary readings from the selected array of analog inputs An empty array 1s returned if only the single input terminal is used 3 1 4 PO Clipped Analog Output Channel The PQ Clipped Analog Output Channel vi integrates the complete functionality associated with writing one or more analog outputs This functionality includes writing the voltage represented as a scaled floating point value and then unscaling and converting it to the raw bipolar signed binary value based on the DAC s resolution and signal range as well as clipping the limits so as to avoid wrapping Daughter Module Board PLL Analog Output Data PL Analog Output Data Array eror in
53. Vx gt C SHELDON this folder can be placed anywhere 3 QuX QuVIEW LABVIEWx SI LIB gt C LABVIEWx SI LIB 4 QuX QuVIEW LABVIEWx MENUS gt C LABVIEWx MENUS QuVIEW QuVIEW NOTE 1 Files directly copied from CDs to hard drives retain their read only attributes This attribute needs to be removed once the files have been copied over to the hard drive The quickest method is to highlight all files within a directory right click with the mouse to invoke the Properties menu item and clear the adjacent checkbox box This must be performed for all subdirectories copied onto the hard drive 2 Once all of the QuVIEW libraries and demo files are installed it is strongly advisable to add them to LabVIEW s search path defaults Adding QuVIEW to the LabVIEW search path defaults enables their quick and automatic loading of applications as well as mass compiling described in the next section 3 Once QuVIEW files are added to LabVIEW s search paths it is always advisable to perform a mass compile Mass compiling LabVIEW files ensures concurrency between the installed version of LabVIEW and the newly installed library files described in the next section 4 In order to view the QuVIEW icon palettes within the LabVIEW environment select the QuVIEW menu as default described in the next section 5 Before running any of the QUVIEW demos and apps be sure that the Windows drivers are installed and the subsequent the F
54. While Loop Structure End of a VQ While Loop Structure When the VQ Enable input is True the while loop is executed between VQ Begin While Loop Structure vi and this vi Thus it is very important that the VI which evaluates the TRUE FALSE condition be included in the while loop otherwise once the condition is evaluated to be True the vi cannot execute to change the condition and the loop becomes infinite Board Q Enable Execute error in no error From 0 Open While Loop O_ End While Loop Structure vi error out VQ _ Enable Execute VQ input when True the while loop is executed between VQ Begin While Loop Structure vi and this vi As a rule the VQ vi connected to this terminal must be inside the loop as well as all the other VI s which are needed for the evaluation From VQ Open While Loop LabVIEW input must be connected to VQ End While Loop Structure terminal of the VQ Begin While Loop vi SSHS SSHHSSHSHSSHSSSSSHSSHSSSSHSSSSSHSSHSSSSHSSSHSSSSHSSSSHHSSHSSSSHS SS S S SHS 7 0 Supplemental SI Functions 7 1 Construct Channel Array Converts an array of randomly selected boolean inputs to a numeric array whose values reflect the enabled boolean input s relative position in the array and concatenates with a separate numeric array input Useful for translating boolean buttons that are used to select one or more input channels to a numeric array whose values reflect the actual channel numbers an
55. X n and Y n 5 2 3 VQ Multiplication Board YO ey VQ sin YO n error out error in no error QO Multiplication wi VQ X n VQ input VQ Y n VQ input VQ X Y VQ output product of X n and Y n 5 2 4 VQ Division Board yQ inh wo drt error in no error Y Division vi WOLAN error out VQ X n VQ input VQ Y n VQ input VQ X Y VQ output ratio of X n over Y n 5 2 5 V uotient amp Remainder Board YO din varin emor in no eror Q Quotnent amp Remainder wi VOL Quotient VOL Remainder m error out VQ X n VQ input VQ Y n VQ input VQ_ Quotient VQ output quotient from the ratio of X n over Y n VQ_Remainder VQ output remainder from the ratio of X n over Y n 5 2 6 VQ Complex Addition Board VO Real tn WO Imag sn error in no error VO Real dn WO Imag n Q Complex Addition wi WO Real 4 WO Imag s error gut VQ Real X n VQ input VQ Imag X n VQ input VQ Real Y n VQ input VQ Imag Y n VQ input VQ Real X Y VQ output sum of real parts of X n and Y n VQ Imag X Y VQ output sum of imaginary parts of X n and Y n 5 2 7 VQ Complex Subtraction WOO Real h 4 WOU Imag Y ma error ou Board VO Real s4r WO Imag 4n error in no error YO Real 4n WO Imag 4nt YQ Complex Subtraction vi VQ Real X n VQ input VQ Imag X n VQ input VQ Real Y n VQ input VQ Imag
56. YO Real FFT x4r VO Real stn WO Imag FFT 4rit WO Imag 4m error out error in no error Q Complex FFT yi VQ Real X n VQ input VQ Imag X n VQ input VQ Real FFT X n VQ output VQ Imag FFT X n VQ output 5 4 2 VO Inverse Complex FFT Board WO Real stn YO Real FFT 4r WO Imag 44m VOU Imag FFT tnt error out error in no error QO Inverse Complex FFT yi VQ Real FFT X n VQ input VQ Imag FFT X n VQ input VQ_Real X n VQ output VQ _ Imag X n VQ output 5 4 3 VO Real FFT Board WO Real FFT Xr WO Real stn WO Imag FFT 4nt error in no error error out Q Real FFT i VQ Real X n VQ input VQ Real FFT X n VQ output VQ Imag FFT X n VQ output 5 4 4 VO Inverse Real FFT Board VO Real xin YO Real FFT 4 WO Imag FFT tnt error out error in no error O Inverse Real FFT i VQ _ Real FFT X n VQ output input VQ Imag FFT X n VQ output input VQ Real X n VQ output 5 4 5 VO Power Spectral Density 1 dF Board WO Real xin VO Imag xn error in no error Q Power Spectral Density v i Wo Sooetiib dk error out VQ Real FFT X n VQ input VQ Imag FFT X n VQ input 1 df LabVIEW input If left unwired this defaults to 1 and returns a Power Spectrum Otherwise this value can be computed by Sample Rate n VQ_Sxx n df VQ output that reflects the Power Spectral Density weighted against frequency 5 4 6 VQ Cross Power Spectr
57. able in question Factor b LabVIEW input that is added to the result of the product of a PQ X n PQ Y n a X n b Y n N PQ output 4 13 PQ Miscellaneous These VIs are not intended for users and are nothing more than building block functions for QuVIEW PO Miscellaneous Hale e HPQ Miscellaneous ap an 4 13 1 PQ Add PO Function to List Board last location number of dynamic parameters number of static parameters dynamic parameters static parameters error in no error function number PQ Add PQ Function to List vi error aut 4 13 2 PQ User Function Humber of Input Blocks Board Function Number Generation error in no error Bheads Parameters PQ User Function i error agt SHSSSSSSSHSSSSHSSHSSSSSSSSSSSSSHSSSHSSHSSSSSSSSSSSSSSSSSHSH SSHSSSSSSSS SHS S 5 0 Vector Queuing VIs These VIs incorporate DSP functionality when a block of data conversions update cycles occurs for one or more channels of inputs and or outputs They are to be used when DSP computation is required on a block by block basis Each block is formed by accumulating a set of pre determined points 5 1 VQ Constants These VIs are very useful because the interconnecting wires in some of the queuing VIs pass over queuing variables instead of direct LabVIEW numbers With this in mind the VQ Constants will take any any regular LabVIEW numeric constant array translate it to a vector queuing array an
58. aken from VQ Y copy VQ vector where generation must be copied updated to VQ _ Y out same as VQ Y copy except after execution generation of vector is also incremented by 1 SHSSSSSSSSSSHSSHSSSSSSSSSSSSSHSSSSSSHSSSSSSSSSSSSSSSSSSSHSSSSSSSSSSSHS S S 6 0 Queue Structure VIs sH Structure Queue POD Structures er eTHIPGAG Structures afee OFEN Fointer A E Fa 6 1 PQ Case Structures Below is a diagram illustrating the general form that one must follow in order to implement case structures for PQ functions One Or More Por Functions Board Control Wire Single Prt Variable Array of Pt Variables Optional Pt Input wire gt 7 E ee oi Pi Select F Case Array Inputioutput _ i Error Chain wire wii eS wire One Or hore Pe Functions First Case Last Case Overall Case Statement 6 1 1 PQ Open Case Structure Beginning of a PQ Case Structure Board PO Input error in no error PO Select PO Case Array Output PQ Open Case Structure y i PQ Input PQ input optionally used to force precedence PQ Select PQ value for selecting the case to be executed ranges from 0 to N 1 where N is the number of cases If case selection 1s invalid none of the cases are executed and the results of the previous execution are preserved PQ Output PQ output optionally used to force precedence PQ Case Array Output LabVIEW output array mus
59. al Density 1 dF Board VO Real n WO Imag n error in no error VO Real Y4n WO Imag 4nt O Cross Power Spectral Density yi WO Real SiydnbidF WO Imag Sxyv4nb fdr error out VQ Real FFT X n VQ input of the real portion of the first vector VQ Imag FFT X n VQ input of the imaginary portion of the first vector VQ Real FFT Y n VQ input of the real portion of the second vector VQ Imag FFT Y n VQ input of the imaginary portion of the second vector 1 df LabVIEW input If left unwired this defaults to 1 and returns a Cross Power Spectrum Otherwise this value can be computed by Sample Rate n VQ Real Sxy n df VQ output of the real portion of the Cross Spectral Density VQ Imag Sxy n df VQ output of the imaginary portion of the Cross Spectral Density 5 4 7 VQ Convolution Board v_n WO Vint error in fno errord WOO Convolution H n error out YQ Convolution yvi VQ X n VQ input VQ Y n VQ input VQ _ Convolution H n VQ output 5 4 7 1 VO Convolution with Offset This sub vi is only used for special cases of convolutuions and is not intended for general use Board YO Convolution Hirn v_n Wor Yn error out error in no error Oukput Offset YQ Convolution with Offset wi VQ X n VQ input VQ Y n VQ input Output Offset LabVIEW input used to change the index of the first point after the convolution is performed Useful for recursive fu
60. alue for host writes Results LabVIEW output array returning the communication parameters selected 3 4 4 13 Configure PCI Communications AMCC Configures the communication mode to be used between the host and the DSP for the SI C31DSP PCI based boards Only executed once during the COFF file loading to the DSP Board vendor Device error in no error Comm Params Configure PCI Communications AMCC Yi Vendor Ignored Device Ignored Comm Params A LabVIEW input cluster of various parameters to specify what communication mode to be used The user can define the type of communication mode that best suits a particular application between a specific boundary The parameters to set are as follows amm Params Read Mode Below Lirnit write Mode Below Lirit ASSIVE CAM Target osk Target i SP MiA ASSIYE DAM Target ost Target i SP MiA ombo BF D ombo BF D Read DAM Lirnit write DAM Lirnit 256000 256000 Read Mode Above Lirnit write Mode Sbove Lirnit ombo async ombo As nc EP FIFO 4 BP FIFO 4 Memory Options 128k E Read Mode Below Limit Communication mode for reading below boundary limit Read Mode Above Limit Communication mode for reading below boundary limit Read Limit Boundary value for host reads Write Mode Below Limit Communication mode for writing below boundary limit Write Mode a
61. alue wired to the PQ TRUE if X Y or the value wired to the PQ FALSE if X Y 4 5 5 PQ Less Than PQ TRUE Input Value Board PQ n PO Yin error in no error Po FALSE Input Value PQ Less Than yi Poa lt error out PQ X n First PQ input to compare PQ Y n Second PQ input to compare PQ X lt Y PQ output that returns the value wired to the PQ TRUE if X lt Y or the value wired to the PQ FALSE if X gt Y 4 5 6 PQ Less Than or Equal PO TRUE Input Value Board PO Xn PO Yin error in no error PO FALSE Input Value PQ Less Than or Equal vi Pox g Y error auk PQ X n First PQ input to compare PQ Y n Second PQ input to compare PQ X lt Y PQ output that returns the value wired to the PQ TRUE if X lt Y or the value wired to the PQ FALSE if X gt Y 4 5 7 PQ Greater Than PO TRUE Input Value Board POK BY P amp _ n Po n error out error in no error PO FALSE Input Value PQ Greater Than yi PQ X n First PQ input to compare PQ Y n Second PQ input to compare PQ X gt Y PQ output that returns the value wired to the PQ TRUE if X gt Y or the value wired to the PQ FALSE if X lt Y 4 5 8 PQ Greater Than or Equal PO TRUE Input Value Board PO X n PO n error in no error PO FALSE Input value PQ_Greater Than or Equal wi POX gt Y error guk PQ X n First PQ input to compare PQ Y n Second PQ input to compare
62. ates etc If overflow errors continue disconnect the output graph and try to stream without simultaneously running the display The PQ Trigger VI can be used to trigger either the streamer or display by wiring its output to the PQ Trig In input The trigger functions are the same as described in a previous section covering dedicated Oscilloscope VIs While in display mode each display buffer will be based on the trigger event If streaming the trigger will only occur during the first buffer The Pretrig delay input can be wired if desired This input can be changed during execution to slide the trigger event while displaying data Besides the two dimensional array outputs other outputs include an indicator showing number of points left channel another show the number of points in the current two dimensional array channel as well as an error indicator with the following codes 0 No Error 1 Underflow 2 Trigger Conditions not Met 3 board disconnected 1 Overflow The decimation input allows for only a portion of the acquired data to be passed over to the host display or disk Decimation has the effect of the acquired data dropping every nth point Therefore a decimation factor of 0 will not drop points but a 1 will drop every other point This will reduce your effective stream rate by a factor of 1 n 1 Additionally excessive underflows may occur during the scope mode of operation During an underflow the last valid buff
63. b Vector This function just copies the VQ input vector and places it into the output vector Only copies only when generation is zero Board Wo im error in no error Q Grab ector yvi wa in error que VQ X n VQ input VQ Y n VQ output 5 11 5 VO Put Vector to DSP This VI performs a similar function as VQ Constant except that this one doesn t allocate memory space in the DSP instead it just writes to an allocated VQ block Board Wo dnb Vector Array Input error in no error Generation O Put ector to DSP yi error out VQ X n VQ input Vector Array Input LabVIEW array of binary data to be sent to the DSP Generation LabVIEW input 5 11 6 VQ Add VQ Function to List Adds a VQ Function to VQ List inside DSP board Humber of Input Blocks Board Function Number Generation error in no error Bheads Parameters QO Add Q Function to List vi last_location error que Number of Input Blocks Number of input VQ vector blocks Function Number A number which identifies the funcion with what DSP knows what to do Generation An incremental value to know when data is updated and ready to be processed Bheads An array of pointers to the several vectors needed for current function Parameters An array of parameters or constant values needed by the function last location Last DSP address generally used by output of function 5 11 7 VQ User Function Available
64. between single shot or continous signal generation 0 Continous signal generation default nonzero Single shot generation PQ Trig In PQ input that enables or disables signal generation 0 Consantly enables signal generation default nonzero External mode control disables signal generation Number of Channels LabVIEW input to determine the number of output channels to reproduce the PQ output PQ Index PQ output of the index number indicating the relative position of the current output point within the waveform buffer starts at 0 and ends at n 1 PQ Signal Out PQ output of signal being played back point form PQ Signals Out Array PQ output array of multiple signals being played back point form number of signals played back depends on the Number of Channels variable VQ Playing VQ output of buffer signal being played back vector form used by PQ Waveform Playback VI 5 10 6 VQ Rectangular to Polar VOU Magnitude R4rt WO Phase Thetatn error out Board WO Real n YO Imag Y n error in no error Q Rectangular to Polar vi VQ Real X n VQ input VQ Imag Y n VQ input VQ Magnitude R n VQ output VQ _ Phase Theta n VQ output 5 10 7 VQ Polar to Rectangular Board WOO Magnitude Rn WO Phase Thetatn error in no error Q_ Polar to Rectangular yi WO Real xin WO Imag n w error out VQ_Magnitude R n VQ input VQ_Phase Theta n VQ input VQ_Real X
65. bove Limit Communication mode for writing above boundary limit Write limit Boundary value for host writes Memory options Memory size installed on DSP carrier card Results LabVIEW output array returning the communication parameters selected 3 4 4 14 Configure ISA Communications Configures the communication mode to be used between the host and the DSP for the SI C3xDSP ISA based boards and only used once during card initialization Board Command Handshake Data Port Width Data Handshake Data Transfer Mode error in no error Configure 154 Communications yi error aut This is a low level subVI that is not typically altered by the user However when the IO and memory mapping is different from the software default values these software values can be changed so as to coincide with the base addresses in hardware Command Handshake Data Handshake atch 1 hatch B Data Port width Data Transfer Mode poet 1 p2Bt ft Command Handshake LabVIEW input handshaking protocol used only during the command phase of communications Data Port Width LabVIEW input specifies the data communication port width present in hardware either 16 or 32 bits wide Data Handshake LabVIEW input handshaking protocol used only during the data phase of communications Data Transfer Mode LabVIEW input specifies whether the DSP performs transfers to the host using programmed IO or it DMA engine 3 4 4 15 Conf
66. condition be included in the while loop otherwise once the condition is evaluated to be True the vi cannot execute to change the condition and the loop becomes infinite Board PQ Enable Execute error in no error From PQ Begin While Loop From PO GoTo While Loop PQ_End While Loop Structure vi PQ Enable Execute PQ input when True the while loop is executed between PQ Begin While Loop Structure vi and this vi As a rule the PQ vi connected to this terminal must be inside the loop as well as all the other VI s which are needed for the evaluation From PQ Begin While Loop LabVIEW input must be connected to PQ End While Loop Structure terminal of the PQ Begin While Loop vi From PQ GoTo While Loop LabVIEW input must be connected to PQ End While Loop Structure terminal of the PQ GoTo While Loop vi 6 4 VO Case Structures 6 4 1 VQ Open Case Structure Beginning of a VQ Case Structure Board WOU Input error in no error Q Selection vo Output error que To First Terminate Case O Open Case Structure VQ _ Input Queuing input for VQ variables optionally used to force precedence VQ Selection VQ value for selecting the case to be executed ranges from 0 to N 1 where N is the number of cases If case selection is invalid none of the cases are executed and the results of the previous execution are preserved VQ Output VQ output optionally used to force precedence To
67. d demos for LabVIEW 4 x All QuVIEW library files for LabVIEW 4 x All library QuVIEW files for LabVIEW 5 x QuVIEW root mnu menu file for LabVIEW 5 x All QuVIEW library files for LabVIEW 5 x Empty user library file NOT to be used for new installations All library QuVIEW files for LabVIEW 6 x QuVIEW root mnu menu file for LabVIEW 6 x All QuVIEW library files for LabVIEW 6 x empty user library file NOT to be used for new installations QuVIEW root mnu menu file for LabVIEW 7 x All QuVIEW examples and demos for LabVIEW 5 x Sheldon LV6 gt All QuVIEW examples and demos for LabVIEW 6 x and LAbVIEW 7 x SIC30DSP gt All low level QuX files essential binaries for the host and DSP COFF files SI_Support gt Docs gt All Sheldon Instruments documentation sidev gt precompiled binaries drivers command line examples and all source code for custom develoment binaries gt Precompiled drivers for all SI hardware along with precompiled examples for custom development drivers gt All SI hardware drivers for Windows used for QuX and custom development fpgaloader gt FPGA loader utility sihw_apps gt Command line utitlities for board diagnosis used in custom development siddk gt Host side source code for custom development sidsp gt DSP side source code for custom development NOTES 1 Notice the QuX path structure on the CD directly mirrors the path structure that must be followed whith the ins
68. d download it to the DSP so it may be used within the DSP domain For example some queuing VIs have two VQ inputs where on eof them may require a constant array 5 1 1 VO 2D Constants Transfers a 2D LabVIEW array of constants to the DSP Constant Update ja eaneE Board VOL Constants Constant DArray of Constants error out error in no error Data Address Generation YQ_20 Constant vi Constant Update LabVIEW boolean input indicates if data will be continuously downloaded to the DSP for each execution iteration or not Sync LabVIEW boolean input indicates 1f execution is to be carried out Asynchronously regardless if data is updated from the host Constant LabVIEW input a single constant value The value wired to this terminal is used by default if the 2D Array of Constants is left unwired 2D Array of Constants LabVIEW input a 2D array of constants The array wired to this terminal overrides the single value wired into the Constant terminal VQ Constants VQ output containing the constants wired in from LabVIEW Data Address LabVIEW output a DSP pointer indicating where the input data was allocated in the DSP For advanced users only Generation LabVIEW output a generation number of the data block allocated used by other VQ s for synchronization For advanced users only 6 1 2 VO Constant Transfers a 1D LabVIEW array of constants to the DSP Constant Update e E Board VE
69. d of X n VQ output 5 5 3 10 VQ Force Board YQ sdn Duky Cyvclet error in no error YQ Force Window yi WO Force of 4r error out VQ X n VQ input Duty Cycle LabVIEW input to determine the duty cycle VQ Force of X n VQ output 5 3 11 VO Exponential Board vg in Final Value error in no error YQ_Exponential Window wi Wor Exponential of x4r error out VQ X n VQ input Final Value LabVIEW input to determine final output value of the input signal VQ _ Exponential of X n VQ output 5 6 VQ Digital Filters 5 6 1 VO IIR Filter The IIR filters are setup as 2 separate VIs a conventional LabVIEW based filter design VI and a DSP VQ IIR Coefficient Filter Design VI The VQ IIR Filter VI is implemented on the DSP using the well known summation of two terms or recursive formula Please refer to the Analysis Library Reference Manual Constantly Update Coefficients Board vin HR Filter Cluster p emor in no eror WOU Filtered int Error out OUR Filter wi Constant Update Coefficients LabVIEW boolean input that determines if the filter coefficients are to be constantly updated or not Defaulted to not constantly update in order to maximize throughput VQ X n VQ input IIR Filter Cluster LabVIEW cluster containing the forward and reverse coefficients The cluster may be derived by using one of the outputs of the LabVIEW based design V
70. d then combining the results with a secondary numeric input array Created because no native equivalent exists in the LabVIEW libraries Input Boolean Array pe E Output Channel Arra Input Channel Array j i Construct Channel Array i Input Boolean Array LabVIEW input of boolean array Input Channel Array LabVIEW input of a numeric array Output Channel Array LabVIEW output of a numeric array 7 2 Boolean to Channel Array Converts an array of randomly selected boolean inputs to a numeric array whose values reflect the enabled boolean input s relative position in the array Useful for translating boolean buttons that are used to select one or more input channels to a numeric array whose values reflect the actual channel numbers Created because no native equivalent exists in the LabVIEW libraries Input Boolean Array Output Channel array Boolean to Channel Array yi Input Boolean Array LabVIEW input of boolean array Output Channel Array LabVIEW output of a numeric array 7 3 Application Launch Launches a DOS Windws application from within LabVIEW apphame Error appParameters Default Folder error in no error Window Mode Timeout msec Application Launch yi error out appName LabVIEW input string name of application to be launched appParameters LabVIEW input string parameters switches needed to launch the application Default Folder LabVIEW input string folder where the application re
71. ded and returned as a single value The array format is derived by using a conventional LabVIEW build array icon whose inputs are wired from one or more PQ output variables PQ Sum of Array PQ output whose value is the sum of the array of PQ inputs 4 12 4 PQ Multiplying Node Board PO Product of Array PQ Array of Xi error in no error error out PO Multiplying Node v i PQ Array of X i PQ input array whose elements are multiplied and returned as a single value similar in concept to a factorial The array format is derived by using a conventional LabVIEW build array icon whose inputs are wired from one or more PQ output variables PQ Product of Array PQ output whose value is the product of the array of PQ inputs 4 12 5 PQ Feedback Delay The PQ Feedback Delay VI will delay a queuing output by the LabVIEW constant defined by the N delay variable The reason for having an extra VI perform this function 1s because LabVIEW forces data dependency on the program structure Therefore a delayed output cannot be added onto itself unless this unique VI is used exponent M Board PQ Yin atrini bFY in N PO_ n error in no error error out Scale Fackor 4 Scale Factor b PQ_Feedback Delay vi PQ X n PQ input to be delayed by N sample periods Exponent N LabVIEW input to determine the number of sample periods to delay a PQ input variable Scale Factor a LabVIEW input that directly multiplies the PQ input vari
72. defines the operation of the on board digital peripherals 3 4 6 Configure MOD6400 Daughter Module Configures the SI MOD6400 daughtermodule please consult the SI MOD6400 documentation for more details DSP Clock Speed Board Sample Aate Chan Channela MUs Miscellaneous Parameters error in no error MUSD Channels O thru 15 MUT Channels 16 thru 31 MUs2 Channels 32 thru 47 MUMS Channels 48 thru 63 Configure MOD6400 Duer Module wi emor out DSP Clock Speed LabVIEW input to define the DSP clock speed Sample Rate Chan LabVIEW input used to define the sample rate per channel Channels MUX LabVIEW input defines the number of channels to multiplex per ADC group Miscellaneous Parameters LabVIEW input cluster configures miscellaneous hardware peripherals such as optional DDS and digital I O port direction as well as DAC enabling MUXn Channels XX thru YY LabVIEW input cluster configures the analog input hardware operation Ta jo ode ode Te je Dod r BI asnae bc coupia e LO p Lo p Sa singe DC Couping p 1 0 p aoo de 3 4 6 Configure MOD1600 Daughter Module Configures the SI MOD1600 daughtermodule please consult the SII MOD1600 documentation for more details Board EOHFIG Sample Rate Chan pez ee Input Channel Parameters fe error out error in no error Miscellaneous Parameters Output Channel Parameters Configure DSP1600 Dau
73. e waveform is arbitrary and constantly changing i e a voice recording then Sync should be set to TRUE This can slow down the VI since it must wait until the previous array has finished playing PQ Trig In PQ input when set to a PQ zero enables the output to be updated Any PQ nonzero values disable updating of outputs Default to PQ zero if not wired Number of Channels Allows for an array of duplicate output waveforms to be made available on the PQ Signal Out array terminal Useful in the case where multiple outputs need to be simultaneously reproduced PQ Index PQ output that returns the current pointer position of the waveform buffer PQ Signal Out PQ output used to wire to a source needing a waveform such as the PQ Analog Output VI PQ Signals Out PQ output similar to PQ Signal Out but has has multiple interleaved signals Useful in designed needing various function generator outputs VQ Update VQ output used by the PQ Waveform Playback VI to synchronize the buffer pointer currently being updated useful for playback of data from a file VQ Playing VQ output used by the PQ Waveform Playback VI to synchronize the buffer pointer currently being played back useful for playback of data from a file 4 11 2 Waveform Design To be used as a conmpanion to the PQ Playback VI Daughter Module Waveform Generation Parameters Waveform Design wi Qucoue Array Output Array LabVIEW output array containing all the
74. e PQ Scope functions Please refer to the next section for more details 4 6 PQ Display amp Log to Disk 4 6 1 PQ Scope Stream Sarnples chan Scope Buffer Size Display Samples Chan Board Queue Stream File PQ Analog Channel Array All voltage Outputs voltage Qutpuk Points Read Points Remaining Channel Count error in no error Error Decimation Factor error out PO Trig In Pretrig delay Stream cote 7 PO Scope y i Queue LabVIEW boolean input that specifies if the VI 1s to be executed in a queuing sequence or not Stream File LabVIEW filepath input that specifies the target file to record data during stream to disk operations PQ Analog Channel Array PQ input array that specifies the PQ input sources to be displayed or recorded to disk NOTE The format of the PQ data wired to the PQ Analog Channel Array terminal may represent scaled or floating point values only Display Samples Chan LabVIEW input that specifies the number of points to be displayed per channel Scope Buffer Size LabVIEW input that specifies the maximum buffer set aside within the DSP s memory space A recommended size of 32k is appropriate for most applications when more SRAM memory 1s available increasing the buffer size to 64k will improve data transfer speeds Stream Samples Chan LabVIEW input that specifies the number of points to be recorded to disk Decimation Factor LabVIEW input used to specify the number
75. e defaults to a display of 256 points per channel The input to Display Samples chan can be wired to any desired value NOTE Unlike the rest of the queuing functions the POQ Scope function can only be used once in a queuing sequence However a duplicate may be made in a sequence that follows the PQ Finish subVI with the Queuing input wired to a false in order to be used in conjunction with LabVIEW function icons Conversely if a second icon is not used its output array may passed to a later sequence by using either a LabVIEW Sequence Local or a LabVIEW Local Variable The PQ Scope VI can also stream data to disk To do so a File Path must be wired into Stream File and a LabVIEW value must be wired to the Stream Samples chan input Lastly to set PQ Scope in stream mode one must wire the Stream boolean input to a LabVIEW True since by default this input is set to a LabVIEW False The PQ Scope VI can simultaneously display and stream to disk by simply wiring each appropriate input for both display and stream as previously outlined The display may slow the streamer down enough that erroneous data may be logged to disk If this occurs PQ Scope VI will return an overflow error This may be remedied by the following 1 Reducing the number of samples or channels 2 Closing all subVIs during execution 3 Closing any Windows applications which may be stealing time 4 Changing graph attributes such as size autoscaling smooth upd
76. elf is not involved nor is subject to the loop condition It must be the first PQ function in the PQ list when a PQ While Loop is desired Although this vi can only be used once and must also be the first PQ vi in the data flow there can be as many individual as well as nested loops as required in the aplication Board error out To PO End While Loop error in no error PQ _ GoTo While Loop Structure vi To PQ End While Loop LabVIEW output must be connected to all PQ End While Loop Structure VIs in the application 6 3 2 PQ Begin While Loop Structure Beginning of a group of PQ VIs to be executed when PQ End While Loop Structure receives a PQ True condition NOTE It is very important that the VI which evaluates the TRUE FALSE condition be included between this vi and PQ End While Loop Structure otherwise once the condition is evaluated to be True the vi cannot execute to change the condition and the loop becomes infinite Board error out To PO End While Loop error in PQ Begin While Loop Structure vi To PQ End While Loop LabVIEW output which connects to From PQ Begin While Loop terminal of the PQ End While loop structure v1 6 3 3 PQ End While Loop Structure End of a PQ While Loop Structure When the PQ Enable input is True the while loop is executed between PQ Begin While Loop Structure vi and this vi Thus it is very important that the VI which evaluates the TRUE FALSE
77. eneral use Cal Table Sub ls pap pay Ceia FT CALED Lai Finch AUT ie BA PA Bay IJ L SCALE MUL CAL eH Cal Table Sub ls Ceia Load Pead Head Load CalFile Cal CalFile ASCII Table Point bin Saye Saye AHA kad poi CalFile ASCII Table Point bin 3 1 13 1 Load Cal File Loads a Calibration Table file For advanced users and not intended for general use Board Path to Cal Table error in no error Load From Calibration Table File i Path to Cal Table Path to Calibration Table file Cal Table An array of values read from the Calibration file 3 1 13 2 Read Cal Table Reads from a Calibration Table already residing in LabVIEW host memory For advanced users and not intended for general use Board error in na error Read Current Calibration Table yvi Cal Table An array of calibration values 3 1 13 3 Read Cal Point Reads a single calibration point for a given analog channel For advanced users and not intended for general use Board DSP Values Direction Channel error in no error error out Offset Magnitude Read Single Cal Yalue vi Direction Denotes 1f the calibration is to apply to an analog input or an analog output Channel Channel number of the analog I O channel of interest Offset Offset error value to be applied to a particular analog channel of interest Magnitude Magnitude error value to be applied to a
78. er will be redisplayed Reducing the number of display points will account for a more real time acquisition The PQ Scope VI can also be executed outside of the queuing sequence To do so only the PQ Analog Channel Array input must be wired within the queuing sequence and no graphs should be connected to the output arrays As a result another instance of the PQ Scope VI can be implemented with a different VI altogether Be sure to include the same inputs to the PQ Analog Channel Array as was wired in the original queuing sequence additionally wire the boolean Queue input to a LabVIEW False 4 6 2 PQ Packed Scope Stream Samples Chan Scope Buffer Size Display Samples Chan Board Queue Stream File PQ 4nalog Channel Array error in no error Decimation Factor PO_Trig In Pretrig delay 3 Stream aeree Volkage Output Packed Data Out Points Remaining Channel Count PQ Packed Scope yi It acts in most respects like the PQ Scope except that data 1s transferred from the DSP as two packed 16 bit integers where two 16 bit integer words are concatenated to form a single 32 bit word Queue LabVIEW boolean input that specifies if the VI is to be executed in a queuing sequence or not Stream File LabVIEW filepath input that specifies the target file to record data during stream to disk operations PQ Analog Channel Array PQ input array that specifies the PQ input sources to be displayed or recorded to disk N
79. erformed within the DSP domain This array can be easily converted to voltage values by simply applying the appropriate scaling factors Note Only applicable to the PO Synchronous Packed Scope vi Status LabVIEW output cluster that contains various status variables of interest they include Status OSF Buffer Overflow L OSF Buffer Underflovy L Host Buffer Overflow bo Host Buffer Underflovy 512 Trigger Met 65536 Save ToDisk Points Remainin psd DSP Buffer Overflow LabVIEW output that indicates when the DSP buffer was overflowed which occurs when the DSP collects data at a higher rate than that transferred to the host thus causing the host to drop data or become out of synchronization In many cases increasing the DSP buffer size will help solve this problem DSP Buffer Underflow LabVIEW output that indicates when the DSP has underflowed which occurs when the DSP collects data at a slower rate than that requested to be transferred to the host It occurs more frequently when selected blocks are relatively large or if the sample rate is slow relative to the transfer rate This status indicator is benign as no data is lost Host Buffer Overflow LabVIEW output that indicates that more points have been transferred to the host than it is able to display In many cases increasing Host Buffer Size in Setup Params variable will help solve this problem Host Buffer Underflow LabVIEW ou
80. erm Ki LabVIEW input constant that determines the weight of the integral term Kd LabVIEW input constant that determines the weight of the derivative term Approximation Method LabVIEW input selects the z domain approximation when substituting for Laplace s s variable The choices are 1 None best used for the direct algorithm 2 Backward Difference One of three choices to compute the PID constants when using the Z Transform algorithm 3 Trapezoidal Tustin Bilinear One of three choices to compute the PID constants when using the Z Transform algorithm 4 Rectangular One of three choices to compute the PID constants when using the Z Transform algorithm Array of PID constants LabVIEW output array containing the PID coefficients to be used by the DSP 4 9 2 PQ Setpoint Ramp Generator The PQ Setpoint Ramp Generator function converts a step signal to a ramp whose gradient is determined by the Step Constant When a new setpoint is entered an undesired transient may take place during the transition with the new setpoint value The smaller the Step Constant value the smaller the gradient will be in approaching the final setpoint value Step Mode Board Po Setpoint PO Initial Condition error in no error Step Constant roy or ol PO Setpoint Ramp Generator y i PQ Final Setpoint error aut PQ Setpoint PQ input used to pass on the desired setpoint of the controlled system in question PQ Initial
81. error in no error Write PLI NYRam Address LabVIEW input byte boundary address of NVRAM Data to Write LabVIEW input depending upon the PCI bridge device either byte or DWord value is written to the NVRAM 3 6 3 Read PCI Opreg Used to read data contained in the PCI bridge device s Operation Registers Board Data Read OpReg error in no error error out Read PCI OpReg OpReg LabVIEW input OpReg address in bytes Data Read LabVIEW output DWord data read from OpReg 3 6 4 Write PCI Opreg Used to write data to the PCI bridge device s Operation Registers Board OpReq Data ko Write error in no error i Write PLI OpReg OpReg LabVIEW input OpReg address in bytes Data to Write LabVIEW input DWord data to write to OpReg SSSSHSSSSSSSSHSHSSHSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 4 0 Point Queuing VIs These VIs incorporate DSP functionality when a single data conversion update cycle occurs for one or more channels of inputs and or outputs They are to be used when DSP computation is required on a point by point basis 4 1 PQ Constants These VIs are necessary because the interconnecting wires within the QuVIEW DSP domain represent queueing variables instead of direct LabVIEW numbers Therefore the PQ Constant is convenient for transferring LabVIEW domain numeric constants and translating them to queueing constants used within the DSP domain 4 1 1 PQ Constant
82. ertion level of each bit of the single PQ input and returns a single PQ output with each bit representing the corresponding result Board PL not A PO_Aln emor in no error emor out PQ Guwise HOT 24 bits max 4 7 16 PQ Bitwise NAND 24 bits max Performs a Bitwise NAND on each bit of the two corresponding PQ inputs and returns a single PQ output with each bit representing the corresponding result Each PQ variable represents a 24 bit integer Board PO_ Afr PO B r error in no error PQ Buwise HAND 24 bits max vi PLA nand B emor out 4 7 17 PO Bitwise NOR 24 bits max Performs a Bitwise NOR on each bit of the two corresponding PQ inputs and returns a single PQ output with each bit representing the corresponding result Each PQ variable represents a 24 bit integer Board PLA nor B FOA PO Bin error out emor in na error PQ Biuwise HOR 24 bits max vi 4 7 18 PO Bitwise NOT XOR 24 bits max Performs a Bitwise NOT Exclusive OR on each bit of the two corresponding PQ inputs and returns a single PQ output with each bit representing the corresponding result Each PQ variable represents a 24 bit integer PQ_B n PO not 14 sor B error out eror in no error PQ Guwise HOT XOR 24 bits max vi Board PO Afr 4 8 PQ Digital Filters These filters derive their coefficients from a separate conventional LabVIEW VI that is fed into a queuing VI The LabVIEW VI is especially useful fo
83. esign IIR Filter Characteristics IIR Filter Cluster IIR Cascade Filter Coefficients Design yvi IIR Filter Characteristics LabVIEW input cluster to define the HR filter characteristics IIR Filter Cluster LabVIEW cluster containing the forward and reverse coefficients 5 6 3 VO FIR Filter The FIR filters are setup as 2 separate VIs a conventional LabVIEW based filter design VI anda VQ FIR Filter VI The VQ FIR Filter VI is implemented on the DSP using the well known finite convolution or recursive formula Please refer to the Analysis Library Reference Manual The LabVIEW based VQ FIR Filter Design VI is merely an example of a way to design and build an array of FIR coefficients An array of FIR coefficients can be built alternatively by using the FIR filter VIs supplied with the LabVIEW Analysis Library However the diagram is much cleaner when used with the supplied single icon VQ FIR Filter Design VI Constantly Update Coefficients Board VO_Aint FIR Coefficients error in no error VO Filtered ri error cut WO FIR Filter vi Constant Update Coefficients LabVIEW boolean input that determines if the filter coefficients are to be constantly updated or not Defaulted to not constantly update in order to maximize throughput VQ X n VQ input FIR Coefficients LabVIEW array containing the FIR coefficients The array may be derived by using one of the outputs of the LabVIEW based design VIs VQ _ F
84. est converted to DSP format 3 2 Common Queue Digital I O 1 049 1 0 1 roj pipro Gis ann e Serra kar INFUT OAH Eat IH READ a 1 04 TEP e p Plaku eo ca aaa stat eal FORT 1 04 jinn o DIGITAL F FIH 3 2 1 PO Digital Input Port 24 bit max The PQ Digital Input Port vi reads up to 24 bits of raw binary data present on the digital I O port when it is configured as an input Representation Daughter Module Board PL Digital Input Data emor in no error error out PQ Digital Input Port 24 bit max v1 Representation LabVIEW input selects to read either signed or unsigned binary data from the digital I O port defaulted to read unsigned integer values PQ Digital Input Data PQ output up to 24 bits of binary data read from the digital I O port represented as a floating point value 3 2 2 PO Aux Digital Input Port SI MOD68xx The PQ Aux Digital Input Port SI MOD68xx vi reads up to 4 bits of raw binary data present on the auxiliary digital I O port of the SI MOD68xx module when it is configured as an input Representation Board PL Digital Input Data error in ra error error out PQ Aus Digital Input Port 8 1 MOD66xx v1 Representation LabVIEW input selects to read either signed or unsigned binary data from the digital I O port defaulted to read unsigned integer values PQ Digital Input Data PQ output up to 4 bits of binary data read from the auxiliary digital I O po
85. floating point PQ value 3 2 8 PQ Port Write 24 bit max The PQ Port Write vi writes up to 24 bits of raw binary data to any within the DSP memory space Used as a building block for other functions Data Size Bits Board PL Output Data Pl Output Data Array error in no error Channel Selector Offset Channel Selector Array DEF PQ Port Write 24 bit max vi error out Data Size Bits LabVIEW input specifies the width of the port in bits ranging from from to 24 bits PQ Output Data PQ input up to 24 bits of binary data can be written to the digital port represented as a floating point value Not to be used if an array terminal is wired PQ Output Data Array PQ input array up to 24 bits of a binary data can be written to an array of digital ports represented as floating point values Convenient if an array of variables is used as it avoids the wiring of separate icons If wired it becomes the default terminal used and the single variable terminal is ignored Channel Selector Offset LabVIEW input specifies the actual location of the port to write in the DSP s memory space Not to be used if an array terminal is wired Channel Selector Array Offset LabVIEW input array specifies an array of actual port locations to write in the DSP s memory space If the array terminal for sourcing the data was used then the Channel Selector Array should be correspondingly used 3 2 9 P Digital I O Pin C3x
86. fter the input signal falls below the threshold Threshold LabVIEW input minimum signal level to open the gate PQ Gated Output PQ output 4 11 Waveform Generation 4 11 1 PO PlayBack The PQ Playback VI allows the DSP to constantly play back an array of values useful for the creation of function generators Syne iii Pl Indes Board PL Signal Out PO_Mode PO Signals Out Signal Array VOL Update O_ Playing emor out error in no error Number of Channels PO TrigIn PQ Playback vi Signal Array LabVIEW array input used to generate a signal derived from a conventional LabVIEW VI such as the PQ Waveform Design VI NOTE As with filter design VIs the LabVIEW based PQ Waveform Design VI is merely an example of a way to design and build an array containing a conventional signal An array for any signal can be built alternatively by using the function pattern VIs supplied with the LabVIEW Analysis Library However the diagram is much cleaner when used with the supplied single icon PQ Waveform Design VI PQ Mode PQ input which selects the output waveform to be continuous or single shot Sync When this boolean is set to F the Signal Array will be updated Asynchronously When TRUE the VI will wait until the current array has finished playing before updating the waveform Ifthe output waveform is static 1 e a sine table then this should be set to FALSE which will provide better performance If th
87. ger voltage is specified within the maximum range of the analog input of one of the daughter modules Triggering is ignored if the slope is disabled or set to none 2 Trigger Slope The TRIGGER SLOPE setting determines the direction or slope at which the specified trigger channel must cross the trigger level Triggering can be set on a positive slope negative slope or be disabled if set to none 3 Hysteresis The HYSTERESIS value determines a voltage window which the trigger channel must exceed before intersecting the trigger level The hysteresis is an absolute value whereby false triggers can be avoided For example a hysteresis value of 1V means the signal must drop 1 V below the trigger level in order for a trigger to occur on a positive slope or the signal must rise 1 V above the trigger level for the negative slope case 4 Pretrigger Delay The PRETRIG DELAY specifies the number of samples to keep track of before or after a trigger event A negative entry for Pretrig Delay specifies the number of data points to keep track of before a trigger event thereby defining a starting point to collect and display any data specified in the Samples entry A 0 entry or a positive entry for Pretrig Delay specifies the number of data points to wait after a trigger event before collecting and displaying any data specified in the Samples entry Note The Pretrigger Delay is variable is not defined within the PO Trigger function but rather in th
88. ghter Module yi Sample Rate Chan LabVIEW input that specifies the sample rate per channel Input Channel Parameters LabVIEW input cluster configures the analog input hardware operation Output Channel Parameters LabVIEW input array that specifies the maximum output voltage swing to be set at either 3 Vpp or 5Vpp Miscellaneous Parameters LabVIEW input cluster configures miscellaneous hardware peripherals such as optional DDS and DAC enabling 3 4 7 Configure CAC I O amp Launch Configures the SI Bullet I O module please consult the SI Bullet documentation for more details AJD SOURCE cre Number of 51 100 Channels Board error in no error Sample Rake Chan Configure CAC I O amp Launch i AD source LabVIEW input determines of the analog I O source is the SI 100 or the onboard analog I O stereo Codecs Number of SI 100 Channels LabVIEW input if the SI 100 1s selected specifies the number of channels transferred from the SI 100 Sample Rate Chan LabVIEW input if the onboard analog I O stereo Codecs are selected the sample rate per channel is specified 3 4 8 MOD SubVIs These are subVIs used by the SI MOD hardware 3 5 Common Queue Queue Utilities 7 Queue Utilities Read write IEEE Error a Allocate Allocate poat Se F i El 3 5 1 Terminate Queue The Terminate Queue VI function is used as an indicator to the DSP that the function
89. gument as the absolute value of X n 5 3 2 VQ Log Base 10 Board YQ dnt error in no error QO Log Base 10 1 Q_Log n error agt VQ X n VQ input VQ _Log X n VQ output computes logarithm base 10 with argument as the absolute value of X n 5 3 3 VQ X to Power of Y Board Wier sdr YQ in error in no error Q_X Power of yvi VQ X n VQ input VQ Y n VQ input VQ X Y VQ output computes exponential base X n with power of Y n 5 3 4 VO Exp e Xjn Board YO ini error in no error emor out WO Expfe Xin v1 VO Espiel tht VQ X n VQ input VQ _Exp e X n VQ output computes exponential base e with power of Xin 5 3 5 VO _Exp 10 X n Board VO Min emor in no error error out WQ_Exp 10 X n i VO Exp 1Oy irk VQ X n VQ input VQ _ Exp 10 X n VQ output computes exponential base 10 with power of X n 5 3 6 VQ Sine Board v_n error in no errori Y _Sine vi WO Sine 4n error out VQ X n VQ input VQ Sine X n VQ output computes the sine of radians expressed in the X n vector 5 3 7 VQ Cosine Board VO Cosine int vo in a eror in no eror efor out YQ Cosme vi VQ X n VQ input VQ_Cosine X n VQ output computes the cosine of radians expressed in the X n vector 5 4 VQ Signal Processing 5 4 1 VQ Complex FFT Board
90. h Exponent Sync Pulse Noise Amplitud Amplitude of desired signal Offset Constant biasing value to be added to resulting signal 4 11 3 PO Waveform Playback Advanced Users This VI is used when creating a non requeueing VI that employs a PQ PlayBack function This VI would normally reside in the LabVIEW While Loop in order to continually update the output waveform Particularly useful for playback of data from a file in real time without gaps Board WO Update VO Playing Signal Array error in no error PQ Waveform Playback vi VQ_Update VQ input derived from the PQ Playback VI used to synchronize the buffer pointer currently being updated VQ Playing VQ input derived from the PQ Playback VI used to synchronize the buffer pointer currently being played Signal Array LabVIEW array input used to generate a signal derived from a binary data source such as a conventional LabVIEW VI or the PQ Waveform Design VI 4 12 Z Transforms o J PQ Z Transforms an ejo 3o 4 12 1 PO Z Delay The PQ Z Delay will delay a queuing input by the LabVIEW constant defined by the N delay variable The PQ Feedback Node VI is used in conjunction with the PQ Z Delay in order to satisfy LabVIEW s requirement of data dependency The PQ Z Delay and PQ Feedback Node subVIs can be used to form feedback loops when creating a lattice structure This flexibility is especially useful for performing unconventional
91. he same function and therefore is not efficient It is not recommended for use Daughter Module Board PO Output Data Po Output Data Array error in no error Channel Selector OFFsek Channel Selector Array OFFset PO Scaled Analog Output Channel wi Scale Factor error out 3 1 8 PQ Unscaled Analog Output The PQ Unscaled Analog Output vi simply writes one or more analog outputs as raw bipolar signed binary values no scaling or calibration takes place Board PO Unscaled 4nalog Data PO Unscaled Analog Data Array error in no error Channel Selector Channel Selector Array PQ Unscaled Analog Output vi Channel Selector Offset LabVIEW constant used to select a single analog output of interest Not to be used if an array is wired to the Channel Selector Array Offset terminal Channel Selector Array Offset LabVIEW array of constants used to select an array of analog outputs Convenient if many analog outputs are to be written simultaneously as it avoids the wiring of separate icons If wired it becomes the default channel selector as the Single Channel Selector Offset terminal is ignored PQ Unscaled Analog Data PQ input containing the actual unscaled signed binary value to be written to a single selected analog output If an array of channels is selected this terminal is ignored PQ Unscaled Analog Data Array PQ input array containing an array of unscaled signed binary values to be written to a
92. his VI is similar to Get Vector from DSP It is a littler slower but allows the host to pickup data when the host will lag behind the DSP The Grab Wait and ready terminals perform as mentioned in Get Vector from DSP Board Vector Array Gutput Yo xint 4 i Block Ready error in no error H Target Gen Grab Buffer esere Dmae error out YQ_ASYNC Get Yector from D5P Yi VQ_X n VQ input designating the address where the incoming vector is to be placed Grab Buffer LabVIEW boolean input used to indicate whether or not to accept an upcoming vector input F Grab When False the currently available input vector is used T Wait Forces the processing to wait for a valid synchronized input vector useful in applications where no points can be dropped Vector Array Output LabVIEW array of binary data read from DSP Block Ready LabVIEW boolean that indicates whether or not the current VQ input is available or not Target Generation LabVIEW output that indicates the current generation number for the current VQ input used mainly for debugging 5 11 3 VQ Checked Vector Get Board vo Input error in no error error out Q Checked ector Get vi Vector Array Qurput i Block Ready see HECH Y boron VQ Input VQ input Vector Array Output LabVIEW array of binary data read from DSP Block Ready LabVIEW boolean that indicates whether or not the current VQ input is available or not 5 11 4 VQ Gra
93. igure DLL Communications x86 This VI configures communications for the host x86 used mainly for simulation purposes Board Results Vendor Device tt error out error in no error Configure DLL Communications X86 y i Vendor Ignored Device Ignored Results Ignored 3 4 5 Configure MOD6800 Daughter Module Configures the SI MOD6800 daughtermodule please consult the SI MOD6800 documentation for more details Digital 10 Port Direction GFO Parameters DSP Clock Speed Board Sample RateChan ADC Parameters eror in no error DAC Clock Timing Pararnters Configure MOD6600 Daughter Module vi error out DSP Clock Speed LabVIEW input to define the DSP clock speed Sample Rate Chan LabVIEW input used to define the sample rate per channel DAC Clock LabVIEW input not implemented ADC Parameters LabVIEW input cluster defines the channel parameters as well as the number of channels to multiplex per ADC group Channels MU je Diff Gain Single Gain Input Type Diff Gain Single Gain Sinde DE Coming g 110 Io 110 Ji Humber es Diff Gain Single Gain Input Type Ditt Gain Single Gain Charee a Srde De Caral 1 0 Io Humber k Timing Parameters LabVIEW input cluster defines the overall timing parameters Sample Aate Chan Ext_DDS a 500 r Free Run EC Threshold Internal GOS GP I O Parameters LabVIEW input cluster
94. iltered X n VQ output that returns a filtered vector only on the input vector in question 5 6 3 1 FIR Filter Coefficients Design FIR Filter Characteristics FIR Coefficients FIR Filter Coefficients Design vi FIR Filter Characteristics LabVIEW input cluster to define the FIR filter characteristics FIR Filter Cluster LabVIEW output cluster containing the forward coefficients 5 6 4 VO_ LMS Adaptive Filter Board VO Filtered Output VO in VO Coefficients mu w eror out eror in no error YO Yin ret Y indes WO LAS Adaptive Filter wi VQ X n VQ input Scale Factor mu LabVIEW constant representing the compensation factor that is multiplied by the error between the actual signal and the desired signal VQ Y n ref VQ input reference source signal Y Index LabVIEW input determines the index point of the input Y n vector VQ Filtered Output VQ output that returns a continuous filtered value without the need for initial conditions analogous to a conventional analog filter VQ Coefficients VQ output that simply mirrors in the VQ domain the actual coeficients used by the LMS algorithm 5 7 VO Statistical E F MEAN Szi E FSK wa Board Yini eror in no eror Output Vector Size VO_AMS of ni error out OQ RMS VQ X n VQ input Output Size LabVIEW input Specifies the output vector size such that each element is the RMS of a Vector VQ_ RMS of X
95. ition 5 2 7 VQ Complex Subtraction 5 2 8 VQ Complex Multiplication 5 2 9 VQ Complex Division 5 2 10 VQ Vector Summation 5 2 11 VQ Recursive Vector Summation 5 2 12 VQ Summation of Vector Elements 5 2 13 VQ Product of Vector Elements 5 2 14 VQ Absolute Value 5 2 15 VQ Negate 5 2 16 VQ Invert 5 2 17 VQ Square 5 2 18 VQ Square Root 5 3 VQ Trig and Log 5 3 1 VQ Natural Logarithm 5 3 2 VQ Log Base 10 5 3 3 VQ X to Power of Y 5 3 4 VQ Exp e X n 5 3 5 VQ Exp 10 X n 5 3 6 VQ Sine 5 3 7 VQ Cosine 5 4 VQ Signal Processing 5 4 1 VQ Complex FFT 5 4 2 VQ Inverse Complex FFT 5 4 3 VQ Real FFT 5 4 4 VQ Inverse Real FFT 5 4 5 VQ Power Spectral Density 5 4 6 VQ Cross Power Spectral Density 5 4 7 VQ Convolution 5 4 7 1 VQ Convolution with Offset 5 4 8 VQ Correlation 5 4 9 VQ Decimate 5 4 10 VQ Zero Fill 5 4 11 VQ Derivative X n 5 4 12 VQ Integral X n 5 5 VQ Windows 5 5 1 VQ Window 5 5 2 Window Coefficients Design 5 5 3 VQ Windows Alternate VIs 5 5 3 1 VQ Hanning 5 5 3 2 VQ Hamming 5 5 3 3 VQ Triangle 5 5 3 4 VQ Blackman 5 5 3 5 VQ Exact Blackman 5 5 3 6 VQ Blackman Harris 5 5 3 7 VQ Flat Top 5 5 3 8 VQ Kaiser 5 5 3 9 VQ Cosine Tapered 5 5 3 10 VQ Force 5 5 3 11 VQ Exponential 5 6 VQ Digital Filters 5 6 1 VQ IIR Filter 5 6 1 1 IR Direct Filter Coefficients Design 5 6 2 VQ _ IIR Cascade Filter 5 6 2 1 IHR Cascade Filter Coefficients Design 5 6 3 VQ FIR Filte
96. le Board PO Unecaled Analog Data PL Unscaled Analog Data Array error in no error Channel Selector Channel Selector Array PQ Chpped Unsealed Analog Output vi error cut Channel Selector Offset LabVIEW constant used to select a single analog output of interest Not to be used if an array is wired to the Channel Selector Array Offset terminal Channel Selector Array Offset LabVIEW array of constants used to select an array of analog outputs Convenient if many analog outputs are to be written simultaneously as it avoids the wiring of separate icons If wired it becomes the default channel selector as the Single Channel Selector Offset terminal is ignored PQ Unscaled Analog Data PQ input containing the actual unscaled signed binary value to be written to a single selected analog output If an array of channels is selected this terminal is ignored PQ Unscaled Analog Data Array PQ input array containing an array of unscaled signed binary values to be written to an array of analog outputs Should be used if the Channel Selector Array terminal is used since both array sizes must be the same and have a one to one correspondence 3 1 6 PQ Analog Output Channel The PQ Analog Output Channel vi integrates the complete functionality associated with writing one or more analog outputs This functionality includes writing the voltage represented as a scaled floating point value and then unscaling and converting it to the ra
97. lower limit clipping value if the wind up phenomenon is detected Initial Value LabVIEW input initial condition PQ Average of X n PQ output reflecting the moving average on a block of N points 4 10 2 PQ Average Float Point Compensated The PQ Average Float Point Compensated vi1 function computes and returns a moving average of the input data points based on the Width variable The mantissa portion of the floating point result is compensated so as to nullify the wind up phenomenon caused by the limited floating point resolution of the DSP The moving average output will behave similar to a lowpass filter Board PLL Average of hn Posin Avg Width error out error in no error Initial value PQ Average Float Point Compensated vi PQ X n PQ input Avg Width LabVIEW constant to determine the number of points from which to compute the moving average Initial Value LabVIEW input initial condition PQ Average of X n PQ output reflecting the moving average on a block of N points 4 10 3 PQ Squelch Noise Gate This VI behaves much like a CB radio squelch control It reduces the output level to zero when the input signal falls below a predefined threshold Hold Time 4 of Samples Board PU Gated Output ri PO_ r error in no error error out Threshold PQ SquelchfNoise Gate vi PQ X n PQ input Hold Time LabVIEW input representing the number of samples to hold the gate open a
98. lt the SICommModes documentation for more details RW Mode 2 Debug Uses the actual address as seen from the host side The Address field no longer refers to the address as seen from the DSP Useful for debugging Data Read LabVIEW array containing the requested data from the DSP 3 5 3 Write to DSP board This VI allows the host to write one or more 32 bit words to the DSP s memory space Rw Mode Board Start Address Data to Write error in no error Write to DSP Board yi error out Data to Write LabVIEW input array containing the hex data to be written to the DSP s address space Start Address LabVIEW input used to indicate an address location within the DSP s address space from where the writes are to begin RW Mode LabVIEW input that determines the communications mode The following options apply RW Mode 0 Default Uses the mode specified in the Configure Communications subVI RW Mode 1 Hostpoll Forces the hostpoll mode of communications between the host and DSP please consult the SICommModes documentation for more details RW Mode 2 Debug Uses the actual address as seen from the host side The Address field no longer refers to the address as seen from the DSP Useful for debugging 3 5 4 DSP to IEEE This VI is strictly performed on the host and serves to translate the floating point format from the DSP domain if necessary to the native IEEE floating point format used on the host Boa
99. must be split into smaller portions with each portion not exceeding the 24 bit limit 4 7 1 PQ Logical AND Performs a Logical AND on two PQ inputs and return PQ True False values PO TRUE Input Value Board Posin PO Yn error in no error PO FALSE Input Value PQ Logical AND i 4 7 2 PQ Logical OR Performs a Logical OR on two PQ inputs and return PQ True False values PQ TRUE Input Value Board PQ sin PO Yin error in no error PO FALSE Input Value PQ Logical OR i Pos or Y error ouk 4 7 3 PQ Logical XOR Performs a Logical Exclusive OR on two PQ inputs and return PQ True False values PQ TRUE Input value Board POs or Y PQ_ n PO Yin error out error in no error PO FALSE Input Value PQ_Logical XOR yi 4 7 4 PQ Logical NOT Performs a Logical NOT or inverts the assertion level on a single PQ input PO TRUE Input value Board Po mak X PQ_s n error in no error error out PO FALSE Input Value PQ Logical NOT yvi 4 7 5 PQ Logical NAND Performs a Logical NAND on two PQ inputs and return PQ True False values PO TRUE Input Value Board POX nand Y Posin Po Yin error out error in no error PO FALSE Input Value PO Logical MAND yi 4 7 6 PQ Logical NOR Performs a Logical NOR on two PQ inputs and return PQ True False values PO TRUE Input Value Board POS nor Y Pasin Po Yin error out error in no error PO FALSE Input Value
100. n VQ output 5 7 2 VQ Mean Board YOn ermar in no eror Output Vector Size VO Mean of in error out YO Mean vi VQ X n VQ input Output Vector Size LabVIEW input Specifies the output vector size such that each element is the Mean of a Vector VQ Mean of X n VQ output 5 7 3 VQ Histogram This VI will produce an output array that contains a histogram of the input array The Range input determines what range of values will be included in the histogram The lowest value that the Histogram will use is 0 This means that any zero centered data must be offset so that it is centered in the specified range The Histogram function places data in bins only on integer boundaries Therefore if higher precision is needed the data should be scaled appropriately EXAMPLE If the data to be used ranges from 5 to 5 and we wish to see intervals of 0 5 the data would have to be scaled as follows input array 5 2 Adding 5 centers our data in the array and multiplying by two allows the 0 5 intervals The RANGE input for this example would need to be set to 20 Board VO_ n Range error in no error YQ Histogram VOL Histogram error out VQ X n VQ input Range LabVIEW input range of values which Histogram will be included in the histogram VQ Histogram VQ output 5 7 4 VQ Threshold Peak Detect This VI outputs an array containing the indexes where peaks were located A Peak coun
101. n VQ output VQ_Imag Y n VQ output 5 11 VO Miscellaneous L YQ Miscellaneous ies es ies il A i ial da da CHECK Y me ADU TOLIST USER FUME GET GEN UPDATE UPDATE 4 5 11 1 VO Get Vector from DSP This VI when running in Wait mode assumes the host will be fast enough to pickup every processed vector This assumption requires a very fast host or a slow set of vector operations The False case will pick up a buffer regardless of whether it is ready The Block ready output displays if this has occurred Board wO An error in no error Grab Buffer error out Q Get ector from DSP y i Vector Array Outpt i Block Ready Target Generation VQ X n VQ input designating the address where the incoming vector is to be placed Grab Buffer LabVIEW boolean input used to indicate whether or not to accept an upcoming vector input F Grab When False the currently available input vector is used T Wait Forces the processing to wait for a valid synchronized input vector useful in applications where no points can be dropped Vector Array Output LabVIEW array of binary data read from DSP Block Ready LabVIEW boolean that indicates whether or not the current VQ input is available or not Target Generation LabVIEW output that indicates the current generation number for the current VQ input used mainly for debugging 5 11 2 VQ ASYNC Get Vector from DSP T
102. n no error error out PQ_Negate vi PQ X n PQ input PQ X n PQ output negative of X n 4 2 7 PQ Inverse A oe of amp n error out PQ Inverse vi Board PQ_a n error in no error PQ X n PQ input PQ Inverse of X n PQ output inverse of X n 4 2 8 PQ Square Root Board PQ Square Root of x n PQ_s n error in no error error out PQ_Square Root vi PQ X n PQ input PQ Square Root of X n PQ output square root of absolute value of X n 4 2 9 PQ Inverse Square Root p oe 5q RE of s n error out PQ Inverse Square Root y i Board Posin error in no error PQ X n PQ input PQ Inverse Square Root of X n PQ output inverse square root of absolute value of X n 4 2 10 PQ Scale aX b Board PO Vind atsin b Posin error in no error Scale Factor 4 Bias Factor b error out PQ Scale aX n b y i PQ X n PQ input Scale Factor a LabVIEW constant that multiplies X n Bias Factor b LabVIEW constant that is added to the product of a X n PQ Scale a X n b PQ output single step procedure for scaling and biasing X n 4 2 11 PO Polynomial Board PL Sur of Alger PO sIn error in no eror error out PO 1D Array of Polynomial Coethicients PQ_Polynomial vi PQ X n PQ input PQ _1D Array of Polynomial Coefficients PQ 1D Array input where the nth position of the coefficient in the array corresponds to the nth power
103. n array of analog outputs Should be used if the Channel Selector Array terminal is used since both array sizes must be the same and have a one to one correspondence 3 1 9 PQ Calibrate The PQ Calibrate vi performs gain and offset calibration to analog I Os The calibration error values are contained in a file with the TBL extension For advanced users and is not recommended for use Board PO Input PQ Analog Channel Array error in no error Channel Selector OFFsek Direction PO Analog Channel PO Analog Channel Array error ou PQ Calibrate vi 3 1 10 PQ Multiple Calibrate The PQ Multiple Calibrate vi performs gain and offset calibration on an array of analog I Os The calibration error values are contained in a file with the TBL extension For advanced users and is not recommended for use Board PO Analog Input PL Analog Input Array error in no error Channel Offsets Maxinium Channel Count Direction PQ_Multiple Calibrate vi PQ_ Analog Output PG_Analog Output Array error out 3 1 11 PQ Scale The PQ Scale vi performs a conversion between binary and voltage values associated with ADCs and DACs For advanced users and is not recommended for use Daughter Module Board PO Analog Input PO Analog Input Array eror in no error Maxinium Channel Count Direction PL Analog Output PU Analog Output Array Scale Factor error out PQ Scale vi 3 1 12 PQ PO Source to IEEE The PQ PQ S
104. nctions such as IIR filters VQ _ Convolution H n VQ output 5 4 8 VO Correlation Board vQ edn vg in error in no error YO Correlation Hin S error ouk QO Correlation vi VQ X n VQ input VQ Y n VQ input VQ _ Convolution H n VQ output 5 4 9 VO Decimate Board vo Xn Decimation Factor error in no error VO Decimated n error out QO Decimate y i VQ X n VQ input Decimation Factor LabVIEW input that determines every nth point to keep in the newly sized vector VQ _ Decimated X n VQ output 5 4 10 VO Zero Fill Board Wo Mn Interpolation Points error in no error WO Zero Filled n error auc Q_ Zero Fill vi VQ X n VQ input Interpolation Points LabVIEW input that determines the number of zeroes to insert between every sample VQ Zero Filled X n VQ output 5 4 11 VO Derivative x t Board wa n dk WO Derivative tnt fror ouk error in no error PO Initial Condition QO Derivative x t i VQ X n VQ input dt LabVIEW input that determines width at which to divide the current and previous values of X n VQ Initial Condition VQ input initial condition used to calculate first value VQ _ Derivative X n VQ output 5 4 12 VQ Integral x t Board vQ Wn error in no error Q_ Integral x t i VO Integral n error out VQ X n VQ input VQ Integral X n VQ o
105. nd function calls 3 4 4 8 Configure C30 ISA Configures the SI C30DSP ISA carrier card by loading its corresponding COFF file The COFF file contains all communications between the host PC and the DSP along with all of QuVIEW s DSP resident functions Intended for advanced users OS Type INIT File Path Board COFF File Path error in no error Configure C30 154 i error out OS Type LabVIEW input Operating System Type It is important to indicate what type of operating system is running since different operating system uses different schemes for memory allocations and function calls INIT File Path LabVIEW filepath input used to indicate the location of the initialization COFF file for the DSP the the C30 it is C30INI32 OUT COFF File Path LabVIEW filepath input used to indicate the location of the VQLx OUT COFF file for the DSP 3 4 4 9 Get Board Info This VI returns various useful parameters for proper hardware functionality Intended for advanced users only Memory Size Bus poof Processor J f A Analog Input Parameters J f im alog Output Parameters Digital U0 Parameters enor out Boundary Factor Channel Offsets Get Board Info wi Daughter Module Board Channel s eror in ho error Channel s LabVIEW input array passed on directly to Channel Offsets output array Memory Size LabVIEW output array describes the amount of memory present on each of the DSP s memory banks
106. ng COFF file The COFF file contains all communications between the host PC and the DSP along with all of QUVIEW s DSP resident functions Intended for advanced users INIT File Path Board COFF File Path error in no error Configure C33 PCI i error que INIT File Path LabVIEW filepath input used to indicate the location of the initialization COFF file for the DSP For the C33 it is C33INI OUT COFF File Path LabVIEW filepath input used to indicate the location of the VQLx OUT COFF file for the DSP 3 4 4 4 Configure C31 PCI Configures the SI C31DSP PCI carrier card by loading its corresponding COFF file The COFF file contains all communications between the host PC and the DSP along with all of QuVIEW s DSP resident functions Intended for advanced users INIT File Path Board COFF File Path error in no error Configure C31 PC1 y i error out INIT File Path LabVIEW filepath input used to indicate the location of the initialization COFF file for the DSP For the C31 it is PCIINI32 0UT COFF File Path LabVIEW filepath input used to indicate the location of the VQLx OUT COFF file for the DSP 3 4 4 5 Configure CAC Configures the SI BULLET PCMCIA card by loading its corresponding COFF file The COFF file contains all communications between the host PC and the DSP along with all of QUVIEW s DSP resident functions Intended for advanced users INIT File Path Board COFF File Path e
107. nnel a i Eia Host Buffer Size Total LabVIEW input that determines the host s total buffer size to be allocated to support the appropriate amount of data to be transferred It is recommended to be at least 1 5 times larger than the Display Samples Chan variable DSP Block Size Channel LabVIEW input that determines the number of points per channel contained in each block to be transferred fro the DSP Each time the host reads points from DSP it is implemented by block multiples DSP Block Count Channel LabVIEW input that determines the number of blocks to be allocated within the DSP s memory space typcially set between 32K to 64K Note The total amount of memory allocated within DSP calculated as DSP Block Size Channel DSP Block Count Channel Number of Channels Display Samples Chan LabVIEW input that specifies the number of points to be displayed per channel Runtime Parameters LabVIEW input cluster representing parameters that may be altered during runtime they include Save To J Funtime Params Trigger Source Points To SavelChannel oo T Slope Stream File A Free Run Pretrig Delay eo Save to Disk LabVIEW boolean input that enables data to be saved to disk Points to Save Channel LabVIEW input that determines the number of points per channel to be saved to file The size of the resulting file is obtained multiplying this number by the number of channels The maximum
108. not an error in the DSP code but rather the compounded effect of the input signal s offset added back onto itself The Calibrate function within the miscellaneous operations subset may be used to digitally correct this initial input signal offset 4 4 3 PQ Slope This VI computes the slope of a sequence of incoming samples Board PO Slope n Run PQ_ n Awg Width error out error in no error Run delka PO Slope yi PQ X n PQ input Avg Width LabVIEW input that defines the number of points to be used to compute the slope Run delta X LabVIEW input that defines each abscissa increment or the difference in the X axis between subsequent points PQ Slope X n Run PQ Output slope obtained by dividing X n Run 4 5 PQ Comparison The Q Equal Q Not equal Q Less Than Q Less Than or Equal Q Greater Than Q Greater Than or Equal functions take in a pair of queueing inputs that will be subjected to the comparison along with a pair of queueing inputs that define the boolean TRUE FALSE values to be returned as the result In other words the output returns the value wired to the TRUE input if the case is a true or the output returns the value wired to the FALSE input if the case 1s false Each TRUE or FALSE state is defined as a pair of queuing inputs 1 e a TRUE state can be defined as one value and a FALSE state as another value Either state definition can be derived from any queuing functi
109. nts from which to build the vector block Maximum Vector Size LabVIEW input used to set a limit for a maximum vector size Useful for reserving a maximum fixed VQ buffer thereby allowing the dynamic resize of the resultant vector within the DSP domain VQ_Y n VQ output containing the number of points as defined by the PQ Vector Size input 5 10 2 VO Build VO Block From Triggered PO Source Board VO_Yint POIN eror in no eror error out PO Trigger PU vector Size Maximum Yector Size PQ Build Y Block from Triggered PQ Source vi PQ X n PQ input used to determine the triggered input source from which to build a vector block PQ Trigger PQ input used as an enable or trigger marker to begin collecting data to fill the vector PQ Vector Size PQ input used to determine the number of points from which to build the vector block Maximum Vector Size LabVIEW input used to set a limit for a maximum vector size Useful for reserving a maximum fixed VQ buffer thereby allowing the dynamic resize of the resultant vector within the DSP domain VQ_Y n VQ output containing the number of points as defined by the PQ Vector Size input 5 10 3 VQ Build VO Block From Analog Input Daughter Module Board Channel Selector emor in no error PL Vector Size Maximum Vector Size PQ Build Q Block from Analog Input vi VO int error out Channel Selector LabVIEW input used to select the analog inpu
110. number of pionts saved to disk is only dependant on the drive s free space Stream File LabVIEW file path input that specifies the name of the file to contain the recorded data Trigger Source LabVIEW input used to specify the channel number used as a trigger source Trigger Level LabVIEW input that determines the desired threshhold voltage level to cause a trigger Trigger Slope LabVIEW input that determines the slope of the trigger Pretrig Delay LabVIEW input that takes in a negative value for pretriggering and positive values for postriggering this value is limited by the amount allotted in Scope Buffer Size input variable PQ Analog Channel Array PQ input array that specifies the PQ input sources to be displayed or recorded to disk PQ Enable PQ input that enables the collection of data within the DSP s buffer similar to a gate input The DSP s buffer is enabled when the queueing or PQ value is 1 or True and disabled when the PQ value is 0 or False Note Be aware that a queueing or PQ value is NOT a LabVIEW constant but rather a constant within the DSP s domain which can only be sourced from a PQ variable Voltage Data Float LabVIEW 2D output array representing all channel data as 32 bit single precision floating point values Note Only applicable to the PO Synchronous Scope vi 2D 116 Data LabVIEW 2D output array representing all channel data as 16 bit integer values without any scaling p
111. o implement digital counters All Addresses All Data Board Serial Port 0 Parameters Serial Port 1 Parameters Timer 0 Parameters Timer 1 Parameters Init Serial Port Yalues C3x v i 3 3 7 3 Initialize Serial Port Initialized the C3x s serial port whose pins are defaulted to be used as general purpose digital IO port or it can be reconfigured to be used to implement digital counters Board Serial Port 0 Parameters Serial Port 1 Parameters error in no error Timer Parameters Timer 1 Parameters Initialize Serial Port wi error out 3 4 Common Queue Hardware Devices These VIs control all SI DSP and SI MOD hardware sEMOD eae 3 4 1 Initialize Board The Initialize Board vi performs several tasks in the Lab VIEW host and DSP domains to prepare for a QUVIEW application NOTE The Initialize Board vi must only be used once in the beginning of a QUVIEW application Daughter Module INIT File Path Board COFF File Path Path to Cal T able COFF Mode eror in no error FLASH Path and Filename Sample AateChan DSP Clock Speed Initialize Board vi error out INIT File Path LabVIEW filepath input used to indicate the location of the initialization COFF file for the DSP For all DSPs COFF files have a OUT extension and reside inside of the SIC30DSP directory COFF File Path LabVIEW filepath input used to indicate the location of the QuVIEW library COFF file for the
112. oard WO Sum iHn YO Array of sin error in no error error out Y ector Summation Yi VQ Array of X n VQ input array VQ_Sum Xi n VQ output whose values are the sum of each corresponding input vector element 5 2 11 VQ Recursive Vector Summation This VI returns a vector VQ Yi n equal in size to the input vector VQ Xi n Each i th element of the result is the sum of the respective i th elements of the input vector and the previous result 1 e the 3rd element of VQ Yi n is the sum of the 3rd element of the input vector VQ Xi n and the 3rd element of the previous output vector VQ Y i 1 n This algorithm is especially useful when trying to find the result of recursive averages over a set of data blocks Board VO VO AC VC T in vQ KELAN p error in no error error out QO Recursive Yector Summation Yi VQ Xi n VQ input VQ Yi n Xi n Yi 1 n VQ output whose value is the compounding sum of the current input vector elements and the sum of the previous input vector elements 5 2 12 VQ Summation of Vector Elements This VI returns a vector VQ Sum of X n Elements equal in size to the LabVIEW input Output Size Each i th element of the result is the sum of all of the elements of a corresponding input vector 1 e the 3rd element of VQ Sum of X n Elements is the sum of all of the elements of the 3rd input vector VQ X n This algorithm is especially useful when trying to find a trend or beha
113. ocument provides instructions for using the QUuVIEW function libraries and building DSP programs 2 2 Common Terminals to All QUVIEW VIs There are a number of terminals common to all QUVIEW VIs Board Board Number of board installed On all VIs this is required terminal to wire Daughter Module LabVIEW constant that defines the type of multifunction I O module in place it contains information about the daughter module converters resolution and voltage scale Error In Error input cluster connection that is daisy chained with the Error Out cluster terminals of previous VIs in a data flow chain Besides being used for error detection wiring these terminals ensures deterministic data flow operation Error Out Error output cluster connection that is daisy chained with the Error In cluster terminals of subsequent VIs in a data flow chain Besides being used for error detection wiring these terminals ensures deterministic data flow operation NOTE Input and Output connection terminal descriptions are color coded BLACK is used to highlight input terminals while NAVY BLUE highlights output terminals SSSSSSSSSSHSHSSSSSHSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 3 0 Common Queue VIs The Common Queue VIs are highlighted with a green border 3 1 Common Queue Analog I O Analog I0 H pa Fa o HPQ Analog I0 me lai mat Betta prea ET E OUT F fl e SubyLs SCALE MUL CAL CAL 3 1 1 PO
114. of operating system is running since different operating system uses different schemes for memory allocations and function calls INIT File Path LabVIEW filepath input used to indicate the location of the initialization COFF file for the DSP For C3x it is typically C3xINI32 OUT for the Cox it is C6711PLXINI OUT COFF File Path LabVIEW filepath input used to indicate the location of the VQLx OUT COFF file for the DSP 3 4 3 Configure I O Configures the multifunction I O modules that reside as daughter cards to the DSP carrier cards The multifunction I O cards contain ADCs DACs as well as digital I O circuitry Intended for advanced users Daughter Module Board Lo eror in ho error La emor ot Sample AateChan DSP Clock Speed Configure IfO_vi Sample Rate Chan LabVIEW input used to define the sample rate per channel of a multifunction analog I O carried by the DSP board DSP Clock Speed LabVIEW input to define the DSP clock speed used to calculate sample rates for counters and timers NOTE The H Clock rate varies depending upon the particular DSP installed on the carrier card Currently all Sheldon Instruments hardware supports the following H clock rates 1 SI C31DSP PCI cards The H clock rate for the C31 DSP ranges from 20Mhz to 30Mhz 2 SI C33DSP PCI cards The H clock rate for the C33 DSP is fixed at 75 Mhz 3 SI C67xDSP PCI cards The H clock rate for the C67x DSP is fixed at 75Mhz 3 4 4 SI DSP
115. olled system in question Max Limit LabVIEW input that limits the maximum output value used to avoid output saturation if system becomes unstable Min Limit LabVIEW input that limits the minimum output value used to avoid output saturation if system becomes unstable Array of PID constants LabVIEW array of constants that are computed from the supplied PID Design VI whose inputs are Kp Ki and Kd Algorithm LabVIEW input that determines if the algorithm is direct or derived from the Z transform Direct If set for the direct algorithm each term is computed discretely rendering the same effect as if one were to use discrete function icons to represent each term Subtraction Integral Derivative This method is recommended for most applications Z Transform If set for the Z transform algorithm the function uses the equation derived by first taking the classical continuous time domain expression then transforming it to the continuous frequency domain via the Laplace transform then to the discrete frequency domain via the Z transform and finally to the discrete time domain or f t gt f s gt gt F z gt F n yields u n u n N K1 fe n K2 fe n 1 K3 fe n 2 where N either a 1 or a 2 represents the exponent of the non weighted z term which in turn is manifest as the amount of delay in the non weighted recursive term of the discrete time domain equation This exponent will range from 1 or 2 de
116. omes the default terminal used and the single variable terminal is ignored DSP Output LabVIEW output formatted with the DSP floating point scheme for use by the DSP Not to be used if an array terminal is wired DSP Output Array LabVIEW output array formatted with the DSP floating point scheme for use by the DSP If an input array terminal was used then the output array should be correspondingly used 3 5 6 Error Chainer Daisy chains error codes and messages from previous VIs to the following set of VIs If no errors ocurr outputs simply mirror inputs Error Error Source error in no error Error Chainer yi Error LabVIEW input error code reference number Error Source A LabVIEW string or message describing the current error source Error Out A LabVIEW output formatted as a cluster 3 6 Supplemental VIs b E oH Supplement Read lalrite PCI PCI HYRAMI IHYRAM Read Lalrite PCI PCI OpReg jOpReg 3 6 1 Read PCI NVRAM Used to read bytes that reside inside of the PCI bridge device s configuration NVRAM Board Data Read Address error in no error Read PCI NYRam error out Address LabVIEW input byte boundary address of NVRAM Data Read LabVIEW output depending upon the PCI bridge device either byte or DWord values are read from NVRAM 3 6 2 Write PCI NVRAM Used to write bytes to the PCI bridge device s configuration NVRAM Board Address Data to write
117. on PO Comparison SRAN mm H F ee ce Jae Comparison 4 5 1 PQ Equal to Zero Compares the PQ input X n to PQ zero value and returns a PQ True if equal and a PQ False if not PO TRUE Input Value Board Posin error in no error PO FALSE Input Value PO Equal to ero vi PQ x 0 error que PQ X n PQ Input value to be compared to a PQ zero PQ X 0 PQ output PQ TRUE FALSE result of the comparison 4 5 2 PQ Not Equal to Zero Compares the PQ input X n to a PQ zero and returns a PQ False if equal and a PQ True if NOT equal PO TRUE Input Value Board Po x I 0 PQ_ n error in no error error out PO FALSE Input Value PQ Not Equal to ero yvi PQ X n PQ Input value to be compared to a PQ non zero value PQ X 0 PQ output PQ TRUE FALSE result of the comparison 4 5 3 PQ Equal PO TRUE Input Value Board PQ on PQ n error in no error PO FALSE Input Value PQ Equal To i PQ X n First PQ input to compare PQ Y n Second PQ input to compare PQ X Y PQ output that returns the value wired to the PQ TRUE if X Y or the value wired to the PQ FALSE if X Y 4 5 4 PQ Not Equal PO TRUE Input Value Board Po x l Y7 PQ s n Po Yin error out error in no error PQ FALSE Input value PQ_Not Equal To vi PQ X n First PQ input to compare PQ Y n Second PQ input to compare PQ X Y PQ output that returns the v
118. onal LabVIEW based filter design VI anda PQ FIR Filter VI The PQ FIR Filter VI is implemented on the DSP using the well known finite convolution or recursive formula Please refer to the Analysis Library Reference Manual Board PQ Filtered Output PQ_a n FIR Coefficients error out error in no error PQ_FIR Filter vi PQ X n PQ input FIR Filter Coefficients LabVIEW array containing the FIR coefficients The array may be derived by using one of the outputs of the LabVIEW based design VIs PQ Filtered Output PQ output that returns a continuous filtered value without the need for initial conditions analogous to a conventional analog filter 4 8 3 1 FIR Filter Coefficients Design The LabVIEW based PQ FIR Filter Design VI is merely an example of a way to design and build an array of FIR coefficients An array of FIR coefficients can be built alternatively by using the FIR filter VIs supplied with the LabVIEW Analysis Library However the diagram is much cleaner when used with the supplied single icon PQ FIR Filter Design VI FIR Filter Characteristics FIR Coefficients FIR Filter Coefficients Design vi FIR Filter Characteristics LabVIEW input cluster to define the FIR filter characteristics FIR Filter Cluster LabVIEW output cluster containing the forward coefficients 4 8 4 PQ Shock Response The Shock Response takes in an array of LabVIEW coefficients performs a Smallwood filter on many frequencies and
119. order to ensure that all items inside of this folder are accessed and each folder s path must be separated by a semicolon Once the paths have been added LabVIEW must be shut down and restarted in order for these changes to take effect From now on LabVIEW will automatically include these paths to load QuVIEW libraries for applications as well as mass compiling A mass compile of all QUVIEW libraries and demos is also highly recommended in order to ensure concurrency between the installed version of LabVIEW and the newly installed QuVIEW files 1 4 Viewing OuVIEW Menus Under LabVIEW 1 LabVIEW 5 x The newly installed QUVIEW library menus can be seen as regular icons within the Controls and Function palettes in LabVIEW 5 x by manually selecting the QuVIEW palettes under the Edit gt gt Select Palette Set option 2 LabVIEW 6 x and LabVIEW 7 x The newly installed QUVIEW library menus can be seen as regular icons by manually selecting the QuVIEW palettes after pressing the Options button The Options button appears as the right most or the last of three buttons on the Functions Palette and can only be selected graphically SSSSSSSSSSHSHSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 2 0 QuVIEW DSP Real Time Acquisition Signal Processing and Control The Sheldon Instruments QuVIEW library VI menu is located at the bottom right corner of the Functions menu Qu lE a Gc ee SL
120. ose individual values are the product of each input vector s elements The overall length of the output vector array specified by the LabVIEW input Output Size represents the overall number of vectors used for the computation 5 2 14 VO Absolute Value Board Wo sn vVQ_X N E error in no error error out O Absolute Yalue yi VQ X n VQ input VQ X n VQ output absolute value of X n 5 2 15 VO Negate Board Wo win wQ An error in no error error ouk vY _Megate Yi VQ X n VQ input VQ X n VQ output negative of X n 5 2 16 VQ Invert Board WO Inverse of nit WOT error in fno error error out O Invert VQ X n VQ input VQ Inverse of X n VQ output inverse of X n 5 2 17 VQ Square Board YO nb error in no error O Square i VQ X n VQ input VQ_ Square of X n VQ output square of input vector X n 5 2 18 VQ Square Root Board WO Square Root of Wn w n error in no error error out O_ Square Root i VQ X n VQ input VQ_Square Root of X n VQ output square root of absolute value of X n 5 3 VO Trig and Log Hive Trig amp Log Lnf f Log x Fal Ea xpi 5 3 1 VO Natural Logarithm Board yO nb error in no error Q Natural Log yvi wO Lnfsin error out VQ X n VQ input VQ_Natural Log of X n VQ output computes natural logarithm base e with ar
121. ource to IEE vi serves to transfer any PQ value or array of PQ values from the DSP domain to the LabVIEW host domain The floating point PQ values are read from the DSP and converted to the IEEE floating point format supported by LabVIEW This function is mostly performed with minimal DSP intervention Board IEEE Data Point PQ_ Source IEEE 10 Data Array PL Source Array error out error in no error PQ PQ to IEEE PQ Input PQ input source to be transferred to the LabVIEW domain for immediate use Not to be used if an array is wired PQ Input Array PQ input source array to be transferred to the LabVIEW domain for immediate use Convenient if an array of variables is used as it avoids the wiring of separate icons If wired it becomes the default terminal used and the single variable terminal is ignored IEEE Data Point LabVIEW output variable represented as a single precision floating point number Not to be used if an array is wired IEEE 1D Data Array LabVIEW output array variable representing an array of single precision floating point numbers If an input array was used then the output array will be correspondingly used 3 1 13 PQ Analog I O Calibration SubVIs A set of subVIs used for calibrating gain and offset errors present on analog I O channels The gain and offset errors are contained inside a file with a TBL extension which resides inside of the SIC30DSP directory For advanced users and not intended for g
122. pending upon the z approximation used when substituting for the s variable Finally note that the Kp Ki and Kd constants are reevaluated as determined by the sample period to yield the new K 3 1 constants NOTE 1 The Z transform algorithm is recommended for advanced users only where the companion PID Design VI must be used 2 Please note that there are several approximations for the z domain variable when substituting for Laplace s s variable Please consult the PID Design VI for more details Exponent N for recursive term LabVIEW constant that determines the amount of delay of the non weighted recursive term The value of 1 or 2 represents the exponent of the non weighted z term which in turn is manifest as the amount of delay in the non weighted recursive term of the discrete time domain equation This exponent will range from 1 or 2 depending upon the z approximation used when substituting for the s variable NOTE Not applicable for the Direct algorithm PQ PID Output PQ command output to be sent to the controlled system input 4 9 1 1 PID Design Used as a companion VI to the PQ PID with Integral Reset VI Array of PID constants PID Design vi FID Parameters PID Parameters LabVIEW input cluster to define the PID characterisitics Sample Rate LabVIEW input required to compute the sample period Kp LabVIEW input constant that determines the weight of the proportional t
123. pins of the C3x is to be the PWM input CK Pin Paramerters LabVIEW cluster input defines the operation of the C3x s clock pins CE Pin Parameters M odel a PWM Event Counter Parameters Event Counter Polarity Rising Edge D Event Counter Ticka Mode LabVIEW input selects the operation mode of the C3x s clock pin I Os 0 No operation 1 Digital I O 2 PWM or Pulse input 3 Event Counter Event Counter Parameter LabVIEW subcluster input used to define the operation of the Event Counter Event Counter Polarity LabVIEW input selects the polarity of the Event Counter tick source 0 selects the tick source to increment the Event Counter on the positive rising edges 1 selects the tick source to increment the Event Counter on the negative falling edges Event Counter Ticks LabVIEW input defines the threshold or count limit for the Event counter PQ EC Reset PQ input used to clear the PWM Event Counter lt 0 when set to a PQ Zero value or less the counter increments or decrements normally default nonzero when set to a PQ Nonzero value the counter is cleared irrespective of the state of the PQ Enable line PQ EC Wrap Mode PQ input used to control if the EC counter must autowrap to the reset state when the count reaches the threshold value lt 0 When set to a PQ Zero value or less the counter is reset or wrapped when the threshold is reached as long as there is a
124. r 5 6 3 1 FIR Filter Coefficients Design 5 6 4 VQ LMS Adaptive Filter 5 7 VQ Statistical 5 7 1 VQ RMS 5 7 2 VQ Mean 5 7 3 VQ Histogram 5 7 4 VQ Threshold Peak Detect 5 7 5 VQ Max amp Min 5 7 6 VQ FSK Compare 5 8 VQ Vector Manipulation 5 8 1 VQ Subset 5 8 2 VQ Concatenate Vectors 5 8 3 VQ Mirror 5 8 4 VQ Reverse 5 8 5 VQ Real Bit Reversal 5 8 6 VQ Complex Bit Reversal 5 9 VQ Matrices 5 9 1 VQ Matrix Addition 5 9 2 VQ Matrix Subtraction 5 9 3 VQ Matrix Scale 5 9 4 VQ Matrix Outer Product 5 9 5 VQ A Dot B 5 9 6 VQ Inverse Matrix 5 9 7 VQ_Transpose 5 9 8 VQ Determinant 5 9 9 VQ AxX n 5 9 10 VQ AxB 5 9 11 VQ Solve Linear Equations 5 10 VQ Conversion 5 10 1 VQ Build VQ Block From PQ Source 5 10 2 VQ Build VQ Block From Triggered PQ Source 5 10 3 VQ Build VQ Block From Analog Input 5 10 4 VQ Build Shifted VQ Block from PQ Source 5 10 5 PQ Playback from VQ Source 5 10 6 VQ Rectangular to Polar 5 10 7 VQ Polar to Rectangular 5 11 VQ Miscellaneous 5 11 1 VQ Get Vector from DSP 5 11 2 VQ ASYNC Get Vector from DSP 5 11 3 VQ Checked Vector Get 5 11 4 VQ Grab Vector 5 11 5 VQ Put Vector to DSP 6 0 Queue Structure VIs 6 1 PQ Case Structures 6 1 1 PQ Open Case Structure 6 1 2 PQ Terminate This Case 6 1 3 PQ Close Case Structure 6 2 PQ Conditional Execute Structures 6 2 1 PQ Begin Conditional Execute 6 2 2 PQ End Conditional Execute 6 3 PQ While Loop Structures 6 3
125. r does not support direct feedback In order to overcome this problem the PQ Feedback Node VI was created as a companion VI to the PQ Z Delay VI in backward mode Therefore when using the PQ Z Delay VI in backward mode a feedback loop can be implemented in conjunction with the companion PQ Feedback Node VI To do this the output terminal of the PQ Z Delay PQ X n N is wired to the same terminal of the PQ Feedback Node VI The PQ X n N terminal is then wired to any queuing input of a QuVIEW function typically the input of the PQ Summing Node VI PO_X n N Board PO to Feedback delay Initial Value error in no error error out PQ_Feedback Node y i Initial Value LabVIEW input that is added to the delayed queuing variable in question PQ X n N PQ input to be delayed by exponent N sample periods which is exclusively fed into the PQ Z Delay VIs queuing input of the same name Because LabVIEW does not allow for recursive wiring this delayed queuing input variable cannot be fed backward and directly into another queuing input PQ to Feedback Zdelay PQ output that must be connected to the PQ Reverse terminal of the PQ Z Delay VI when normal feedback is needed This is used as a method to circumvent LabVIEW s restriction on recursive feedback wires 4 12 3 PQ Summing Node Board PO Sum of Array PQ Array of i error in no error error out PO Summing Node vi PQ Array of X i PQ input array that is ad
126. r finding coefficients because processing speeds are not as critical and a large variety of filter functions already exist It is very convenient to be able to define filter characteristics with a visual display of an impulse response in its time frequency and phase graphs 4 8 1 P IIR Filter The IIR filters are setup as two separate VIs a conventional LabVIEW based filter design VI and a DSP PQ IIR Filter VI The PQ IIR Filter VI is implemented on the DSP using the well known summation of two terms or recursive formula Please refer to the Analysis Library Reference Manual Board PO sin 2 IIR Filter Cluster P error in no error PQ_IIF Filter i PO Filtered Output IIR FILTER R error out PQ X n PQ input to be filtered IIR Filter Cluster LabVIEW input cluster containing the forward and reverse coefficients The cluster may be derived by using one of the outputs of the LabVIEW based design VIs PQ Filtered Output PQ output that returns a continuos filtered value without the need for initial conditions analogous to a conventional analog filter 4 8 1 1 TIR Direct Filter Coefficients Design To be used as a companion VI with the PQ IIR Filter VI IIR Filter Characteristics IIR Filter Cluster IIR Direct Filter Coefficients Design y i IIR Filter Characteristics LabVIEW input cluster to define the HR filter characteristics IIR Filter Cluster LabVIEW cluster containing the forward
127. r in no error POQ_ Counter Threshold PO Count Direction Pin PL Final Count Syne a eor out PQ Counter vi PQ Wrap Mode PQ input used to control if the counter must autowrap to the reset state when the count reaches the threshold value lt 0 When set to a PQ Zero value or less the counter is reset or wrapped when the threshold is reached as long as there is a tick source default nonzero Otherwise when set to a PQ Nonzero value the counter output PQ Y n is latched at the threshold value until the PQ Counter Reset terminal is cleared with a PQ Zero value fed into it PQ Enable Sync In PQ input that determines of the counts are enabled or not lt 0 when set to a PQ Zero value or less the counter 1s enabled to increment or decrement default nonzero when set to a PQ Nonzero value the counter is detained with the current value and NOT cleared PQ Counter Reset PQ input used to clear the counter lt 0 when set to a PQ Zero value or less the counter increments or decrements normally default nonzero when set to a PQ Nonzero value the counter is cleared irrespective of the state of the PQ Enable line PQ Counter Threshold PQ input constant that determines the last count value before wrapping or latching lt 0 the counter increments or decrements freely until 2 32 approaches after which it wraps to a PQ Zero value or latches as set by the PQ Wrap Mode input terminal default
128. rd DSP Input DSP Input Array error in no error IEEE Output IEEE Sutput Array DSP to IEEE i DSP Input LabVIEW input formatted with the DSP floating point scheme Not to be used if an array terminal is wired DSP Input Array LabVIEW input array formatted with the DSP floating point scheme Convenient if an array of variables is used as it avoids the wiring of separate icons If wired it becomes the default terminal used and the single variable terminal is ignored IEEE Output LabVIEW output formatted with the IEEE floating point scheme for use by LabVIEW VIs Not to be used if an array terminal was wired IEEE Output Array LabVIEW output array formatted with the IEEE floating point scheme for use by LabVIEW VIs If an input array terminal was used then the output array should be correspondingly used 3 5 5 IEEE to DSP This VI is strictly performed on the host and serves to translate the floating point format used on the host to the floating point format used on the DSP if necessary Board TEEE Input IEEE Input Array error in no error DSP Output DSP Output Array error out IEEE to DSP i IEEE Input LabVIEW input formatted with the IEEE floating point scheme Not to be used if an array terminal is wired IEEE Input Array LabVIEW input array formatted with the IEEE floating point scheme Convenient if an array of variables is used as it avoids the wiring of separate icons If wired it bec
129. rror in no error Configure CAC y i INIT File Path Unused LabVIEW filepath input placed for compatibility with other similar VIs COFF File Path LabVIEW filepath input used to indicate the location of the VQLx OUT COFF file for the DSP 3 4 4 6 Configure C31 ISA Configures the SI C31DSP ISA carrier card by loading its corresponding COFF file The COFF file contains all communications between the host PC and the DSP along with all of QUVIEW s DSP resident functions Intended for advanced users INIT File Path error in no error error out Configure C31 15A4 1 INIT File Path LabVIEW filepath input used to indicate the location of the initialization COFF file for the DSP For the C31 it is C3 LINI32 OUT COFF File Path LabVIEW filepath input used to indicate the location of the VQLx OUT COFF file for the DSP 3 4 4 7 Configure C30 ISA w AppLaunch Alternate method to configure the SI C30DSP ISA carrier card by loading its corresponding COFF file using a command line executable The COFF file contains all communications between the host PC and the DSP along with all of QUVIEW s DSP resident functions Intended for advanced users Os Type error in no error error out Config C30 154 w AppLaunch yi OS Type LabVIEW input Operating System Type It is important to indicate what type of operating system is running since different operating system uses different schemes for memory allocations a
130. rt represented as a floating point value 3 2 3 PQ Digital Input Port Split to 16 bit Pair The PQ Digital Input Port Split into 16 bit Pair vi reads a single 32 bit port as raw binary data and separates the reading into a pair of 16 bit ports when it 1s configured as an input This split is necessary since the DSP 1s only able to represent a 24 bit integer when that value is encoded as a PQ compatible floating point value Representation HI Word Daughter Module Board PO Digital Input Data HI Word PL Digital Input Data LOW4ord error in no error error out Representation LO Ward PQ Digital Input Port Split to 16 bit Pair vi Representation HI Word LabVIEW input selects to read either signed or unsigned binary data from the upper half 16 bit word of a 32 bit digital I O port defaulted to read unsigned integer values Representation LO Word LabVIEW input selects to read either signed or unsigned binary data from the lower half 16 bit word of a 32 bit digital I O port defaulted to read unsigned integer values PQ Digital Input Data HI Word PQ output up to 16 bits of binary data read from the upper half 16 bit word of a 32 bit digital I O port represented as a floating point PQ value PQ Digital Input Data LO Word PQ output up to 16 bits of binary data read from the lower half 16 bit word of a 32 bit digital I O port represented as a floating point PQ value 3 2 4 PQ Port Read 24 bit max
131. s latched at the threshold value until the PQ Counter Reset terminal is cleared with a PQ Zero value fed into it PQ EC Enable PQ input that determines of the counts are enabled or not lt 0 when set to a PQ Zero value or less the counter 1s enabled to increment or decrement default nonzero when set to a PQ Nonzero value the counter is detained with the current value and NOT cleared PQ EC Reset PQ input used to clear the EC counter lt 0 when set to a PQ Zero value or less the counter increments or decrements normally default nonzero when set to a PQ Nonzero value the counter is cleared irrespective of the state of the PQ Enable line Event Source LabVIEW input selects one of four Event Counter circuits PQ EC Count PQ output that returns actual count value PQ EC Trigger Output PQ output used to indicate the state of the counter output useful for synchronizing events This signal may also be used as a software source to other devices reverse from bit reading 0 The counter output has reached its final value and returns a PQ zero value 1 The counter is busy and returns a PQ One while counting or reset 3 3 3 PQ Pulse Input Pin SI MOD68xx The PQ Pulse Input Pin SI MOD68xx vi is an extremely powerful function that operates as a frequency counter on one of the lines available on the auxiliary digital I O ports present on the SI MOD68xx module Board PL Pulse In Pernod PL Pulse
132. sides Window Mode LabVIEW input specifies if the mode of operation of the command line window after program execution Timeout msec LabVIEW input the time in ms to delay the entry into the next function after the program has executed
133. single selected analog input If an array of channels is selected only the first value of the array is returned PQ Analog Data Array PQ output array containing an array of scaled readings from the selected array of analog inputs An empty array is returned if only the single input terminal is used Scale Factor LabVIEW output used to read the exact analog voltage scaling factor 3 1 2 PQ Scaled Analog Input Channel Same as PQ Analog Input Channel vi except it uses several subVIs to perform same function and therefore is not efficient It is not recommended for use Daughter Module Board PU Analog Input Channel PO_ Analog Input Channel Array error in no error Scale Factor Channel Selector Offset emor out Channel Selector Array OFF Maxinun Channel Court PQ Scaled Analog Input Channel wi 3 1 3 PQ Unscaled Analog Input The PQ Unscaled Analog Input vi simply reads one or more analog inputs as raw bipolar signed binary values no scaling or calibration takes place Daughter Module Board Ah PU Unscaled Analog Data ae PQ_Unecaled Analog Data Array error in no error error cut Channel Selector Offset Channel Selector Array Offset Maxinurn Channel Count PQ_Unscaled Analog Input wi Channel Selector Offset LabVIEW constant used to select a single analog input of interest Not to be used if an array is wired to the Channel Selector Array Offset terminal Channel Selector Array Offset Lab
134. t is also provided Peak Trough allows the user to select whether the VI will detect positive going peaks or negative going troughs A 0 selection indicates peaks a 1 selection indicates troughs A peak is determined when the input signal exceeds the min threshold then goes below it again without exceeding the max threshold If the max threshold is exceeded the peak is ignored Width indicates the minimum number of points above the min threshold in order for the peak to be counted If this parameter is set to 0 then all peaks will be detected regardless of width Last index indicates the index of the last peak in this array Double last index indicates the index of the last peak in the previous array NOTE this index will always be negative since the first point in the current array is at index 0 Max peaks indicates the maximum number of peaks that the function will count If this number is exceeded subsequent peaks are ignored Board YO rn VO Peak Indexes PO Last Index Min Threshold PU Double Last Indes Max Threshold PU Peak Count Peak T rough PL Peak Trough eror in no error error out Width PL Mae Threshold blas Peaks PO Min Threshold YQ Threshold Peak Detect vi VQ X n VQ input to be evaluated Min Threshold LabVIEW input minimum value to consider it 1s a peak Max Threshold LabVIEW input maximum value to consider it is a peak Peak Trough Detect Peak or Trough 0 Peak 1 Trough Width Number of
135. t be connected to the next PQ Case vi 6 1 2 PQ Terminate This Case End of each case within a PQ Case Structure Board Po Input PO Input Array error in no error PO Case Srray Input PQ Terminate This Case vi PO Case Array Output PQ Input Queuing Input to pass results from the case PQ Input Array PQ input source array if wired data from this array is used and PQ Input is ignored PQ Case Array Input PQ Input connects from the PQ Case Array Output terminal of the previous PQ Case vi PQ Case Array Output LAbVIEW output array connects to the PQ Case Array Input terminal of the next PQ Case vi 6 1 3 PQ Close Case Structure End of PQ Case Structure Board PQ_Output PO Oukpuks error in no error ELi js error out PO Case Array Input PQ Close Case Structure yi PQ Case Array Input PQ Input connects from the PQ Case Array Output terminal of the previous PQ Case vi PQ Output Output PQ value PQ Outputs PQ output Array 6 2 PQ Conditional Execute Structures Below is a diagram illustrating the general form that one must follow in order to implement conditional execute structures for PQ functions Board Control Pe Enable One oF more Vite wire Pt Functions Error Chain wire Pt Begin end Conditional Execute wire 6 2 1 PQ Begin Conditional Execute Executes functions depending on the value of PQ Enable if the value of PQ Enable input is 1 this VI will allow e
136. t channel of interest PQ Vector Size PQ input used to determine the number of points from which to build the vector block Maximum Vector Size LabVIEW input used to set a limit for a maximum vector size Useful for reserving a maximum fixed VQ buffer thereby allowing the dynamic resize of the resultant vector within the DSP domain VQ_Y n VQ output containing the number of points as defined by the PQ Vector Size input 5 10 4 VO Build Shifted VO Block from PQ Source This VI will build a block much like the VQ Build VQ Block From PQ Source VI The difference is that the VI maintains the previous N 1 points and adds the new point on to the end of the array This provides a constantly shifting array that 1s useful for convolutions and filtering applications Board PO fn M points Vector Size error in no error Shift amount PQ_ Build Shifted YQ Block from PQ Source i PQ X n PQ values N points Vector Size LabVIEW input used to determine the number of points to group into a VQ vector Shift amount LabVIEW input the amount with which to shift the incoming PQ data set VQ Y n VQ vector output 5 10 5 PQ Playback from VQ Source PO_ Index Board PL Signal Out PQ Mode PO Signals Dut Array YO rdn ermar in no error Humber of Channels PO Trig In OQ_ PQ Mayback from Y Source wi VOL Playing error out VQ X n VQ input in a vector array form PQ Mode PQ input that selects
137. talled files on your system For example the QUVIEW root mnu folder and file under the LabVIEWx menus folder on the CD must be placed under the same LabVIEW menus folder on your system 2 The QuVIEW files for LabVIEW 7 x are identical as those supplied for LabVIEW 6 x with the exception of the menu file namely the root mnu file Therefore it is recommended that after all LabVIEW 6 x QuVIEW files are completely installed under LabVIEW 7 x be sure to use the root mnu file specific to LabVIEW 7 x 1 22 OuVIEW Files Installation NOTE There are two steps that must be first performed in order for the SI hardware to operate correctly 1 Drivers for all SI DSP hardware Please consult the DOCS DRIVERS README DRIVERS RTF document for more details 2 For certain SI hardware the FPGA loader must be invoked in order to load the onboard logic The FPGALoader must be run at least once before any DSP software can run it is recommended that a batch file be executed just once everytime the computer is booted Please consult the DOCS SIDSP FPGALoad F PGALOAD RTF document for more details Once the drivers and onboard logic have been successfully loaded QuVIEW installation may begin Please copy the directories from the CD onto your hard drive as follows Source Directory gt Destination Directory on Hard Disk 1 QuX SIC30DSP gt C SIC30DSP this folder must be on the C drive root 2 QuX QuVIEW SHELDON L
138. ted as a 1D array Each element of the PQ output array represents the value of each bit with the nth position of the array corresponding to the nth position of the bit it represents The PQ variables represent a 24 bit integer Board PO_Aln error in ho eror emor out PQ_Bitwise Extraction 24 bits max _vi PO_Estracted Bits Array 4 7 12 PQ Bitwise AND 24 bits max Performs a Bitwise AND on each bit of the two corresponding PQ inputs and returns a single PQ output with each bit representing the corresponding result Each PQ variable represents a 24 bit integer Board PO_ Afr PO_Bf n error in no error PQ_Biuwise AND 24 bits max vi PLA and B emor out 4 7 13 PO Bitwise OR 24 bits max Performs a Bitwise AND on each bit of the two corresponding PQ inputs and returns a single PQ output with each bit representing the corresponding result Each PQ variable represents a 24 bit integer Board PUA or B PO_Afn PO B n error out error in no error PQ Guwise OR 24 bits max vi 4 7 14 PQ Bitwise XOR 24 bits max Performs a Bitwise Exclusive OR on each bit of the two corresponding PQ inputs and returns a single PQ output with each bit representing the corresponding result Each PQ variable represents a 24 bit integer Board PLA sor B PO_ Afr PO Bin error aut eror in no error PQ_Birwise XOR 24 bits max vi 4 7 15 PQ Bitwise NOT 24 bits max Performs a Bitwise NOT or inverts the ass
139. term PQ Sum of A n X n PQ output the result of the sumation of all the polynomial terms 4 3 PO Trig and Log 4 3 1 PO Logarithm Base N Board PL Logi of hr POs ermar in no error Base Value N PQ_Loganthm Base Hvi error out PQ X n PQ input Base Value N LabVIEW input the base value for which to compute the Logarithm PQ Log N of X n PQ output computes the logarithm base N with argument as the absolute value of X n 4 3 2 PQ Natural Logarithm Board PQ Natural Log of n PO_s n error in no error error out PQ Natural Logarithm yi PQ X n PQ input PQ Natural Log of X n PQ output computes natural logarithm base e with argument as the absolute value of X n 4 3 3 PQ Logarithm Base 10 Board PL Log 10 of nh PO rn error in no error error out PQ Loganthm Base 10 1 PQ X n PQ input PQ Log 10 of X n PQ output computes the logarithm base 10 with argument as the absolute value of X n 4 3 4 PQ Power X to Y Board PL Base s n PL Exponent rpn emor in no error l PQ Power X to Y i Pnn emor out PQ Base X n PQ input base PQ Exponent Y n PQ input exponent PQ X Y n PQ output computes the exponent of base X n to the power of Y n 4 3 5 PQ Exp e X Board PL nr ce error in no error error out PQ Expfe X v1 PQ X n PQ input PQ_Exp rn
140. tick source default nonzero Otherwise when set to a PQ Nonzero value the counter output PQ Y n is latched at the threshold value until the PQ Counter Reset terminal is cleared with a PQ Zero value fed into it PQ PWM Period EC Enable Out PQ output whose value depends on the operation mode selected for this C3x digital I O pin PQ PWM Period If selected to operate as a pulse input device the PQ ouputs returns the last overall period relative to the number of Timer 0 counts that occured between the edges of an external TTL level pulse train Event Counter Enable Out If selected to operate as an Event Counter the PQ output used to indicate the state of the counter output useful for synchronizing events This signal may also be used as a software source to other devices reverse from bit reading 0 The counter output has reached its final value and returns a PQ zero value nonzero The counter is busy and returns a PQ One while counting or reset PQ PWM Width If the C3x digital I O pin is selected to operate as a pulse input device this PQ output returns the number of Timer 0 counts that occur between every rising or falling edge of an external TTL level pulse train Not used if the pin is selected to operate as digital I O or an Event Counter PQ PWM Last Tick Count If the C3x digital I O pin is selected to operate as a pulse input device PQ output that returns the last value of the C3x s internal Timer 0 val
141. tput that indicates when the amount of transferred data is insufficient relative to the requested amount of data to be displayed selected by Display Samples Chan It occurs more frequently when the sample rate is relatively low as data is shown as it is collected This status indicator is benign as no data is lost it is merely intended to indicate that there are insufficient points to be displayed on the screen Trigger Met LabVIEW output that indicates when all trigger conditions are met Save To Disk Points Remaining LabVIEW output that indicates the remaining number of points per channel to be saved to disk 4 7 PQ Boolean These VIs perform traditional boolean logic in two different forms 1 Logic gates where each PQ input terminal is treated as a single logical value and whose resultant as in the PQ comparison VIs is the PQ TRUE FALSE as defined by a separate pair of queueing inputs The output returns the values wired from the PQ TRUE FALSE terminals where the TRUE and FALSE states may be defined with unique PQ values 2 Logic gates where each PQ input terminal is treated as a 24 bit word with each bit representing a unique logical value and whose resultant is also reflected as a 24 bit word The TRUE FALSE states are defined as traditional 0 or 1 values respectively Because of the DSP s floating point format single PQ terminals are limited to an effective 24 bits maximum For operations requiring wider widths data
142. transfer functions Exponent M Board PO Forward PQ_x n N PO Scale Factor Po Reverse PO Exponent error in no error error out Scale Factor 4 Max exponent M PO Delay y i PQ X n N PQ input to be delayed by exponent N sample periods which is exclusively derived from the PQ Feedback Node VI output of the same name Because LabVIEW does not allow for recursive wiring this delayed queuing input variable cannot be fed backward and directly into another queuing input PQ Reverse PQ input to be delayed by exponent N sample periods and used only in the case that the delayed sample is fed forward In this case data dependency is maintained and no intermediate VIs are necessary Exponent N LabVIEW input to determine the number of sample periods to delay a PQ input variable Scale Factor a LabVIEW input that directly multiplies the PQ input variable in question Max exponent N LabVIEW input that defines maximum number of delays PQ Forward PQ output reflecting the delayed sample input PQ Scale Factor LabVIEW constant that is multiplied by the Z value PQ Exponent PQ returned exponent Theoretically it must be same as Exponent N but because we have a limit Max exponent N this output is used as an indicator to the subsequent VIs following as to the N value actually used 4 12 2 PQ Feedback Node Most Z Transform implementations require feedback to represent recursive terms LabVIEW s graphical compile
143. ue Hx clock 2 value Not used if the pin is selected to operate as digital I O or an Event Counter NOTE The H Clock rate varies depending upon the particular DSP installed on the carrier card Currently all Sheldon Instruments hardware supports the following H clock rates 1 SI C31DSP PCI cards The H clock rate for the C31 DSP ranges from 20Mhz to 30Mhz 2 SI C33DSP PCI cards The H clock rate for the C33 DSP is fixed at 37 5Mhz 3 SI C67xDSP PCI cards The H clock rate for the C67x DSP is fixed at 37 5Mhz 3 3 7 PWM Event Counter SubVIs C3x a HPA Counter amp Timers P bhlEvent Counter SubYls C3x 1 tz o H Ph Event Counter Sub ls Cx Config Init DSF init C3x Serial Cox Ser Tim Serial Timer Ser Tim Walues values Init 3 3 7 1 Init Serial Port Values Initializes the C3x s serial port whose pins are defaulted to be used as general purpose digital IO port or it can be reconfigured to be used to implement digital counters Board Mode error in no error Init Serial Port Yalues vi Mode LabVIEW input determines of the serial port is to be used for general purpose digital IO or if it is to be used as a frequency counter To be used in conjunction with the PQ Digital IO VIs or the PQ Counter VIs 3 3 7 2 Init Serial Port Values C3x Initialized the C3x s serial port whose pins are defaulted to be used as general purpose digital IO port or it can be reconfigured to be used t
144. ue is 0 none of these functions are executed Board ne To VOU End Conditional Exec Q Enable Execute l error in no error error ou Q Begin Conditional Execute vi VQ Enable Execute VQ input with possible values of zero or else To VQ End Conditional Execute LabVIEW output value to be passed to From VQ Begin Conditional Execute terminal of VQ End Conditional Execute vi 6 5 2 VQ End Conditional Execute Ends the conditional execution of functions Board From Q_ Begin Conditional error in no error Q End Conditional Execute vi error ouk From VQ _ Begin Conditional Execute LabVIEW input from To VQ End Conditional Execute terminal of VQ Begin Conditional Execute vi 6 6 VQ While Loop Structures 6 6 1 VQ Begin While Loop Structure Beginning of a group of VQ VIs to be executed when VQ End While Loop Structure receives a VQ True condition NOTE It is very important that the VI which evaluates the TRUE FALSE condition be included between this vi and VQ End While Loop Structure otherwise once the condition is evaluated to be True the vi cannot execute to change the condition and the loop becomes infinite Board error ouk To VO Close While Loop QO Begin While Loop Structure y i error in no error To VQ Close While Loop LabVIEW output must be connected to From VQ _ Begin While Loop terminal of the VQ End While loop structure vi 6 6 2 VQ End
145. ut up to 24 bits of binary data can be written to the digital I O port represented as a floating point value 3 2 6 PQ Aux Digital Output Port SI MOD68xx The PQ Aux Digital Output Port SI MOD68xx vi writes up to 4 bits of raw binary data to the auxiliary digital I O port when it is configured as an output Board PO Output Data emor in no error error out PQ Aux Digital Output Port 8 MOD68xx v1 PQ Output Data PQ input up to 4 bits of binary data can be written to the auxiliary digital I O port represented as a floating point value 3 2 7 PQ Digital Output Port Join 16 bit Pair The PQ Digital Output Port Join 16 bit Pair vi joins a pair of 16 bit values and joins them to form a single 32 bit value to write to the digital I O port when it is configured as an output This concatenation is necessary since the DSP is only able to represent a 24 bit integer when that value 1s encoded as a PQ compatible floating point value Daughter Module Board PO Output Data HI Word PO Output Data LO Word emor in no error PQ Digital Output Port Jom 16 bit Pair wi error cut PQ Output Data HI Word PQ input up to 16 bits of binary data can be written to the upper half 16 bit word of a 32 bit digital I O port represented as a floating point PQ value PQ Output Data LO Word PQ input up to 16 bits of binary data can be written to the lower half 16 bit word of a 32 bit digital I O port represented as a
146. ut vector Scale Factor k LabVIEW input Gain factor of scale Scale Factor b LabVIEW input Bias factor of scale VQ _ K A b VQ output which elements are obtained multiplying each element of VQ A by the gain factor k then added the bias factor b 5 9 4 VO Matrix Outer Product Computes the Outer Product of two NxM matrices Board vO A VO TB error in no error YQ Matrix Outer Product yvi vo Ai Bi error que VQ _ A VQ input vector VQ_ B VQ input vector VQ Ai Bj VQ Outer Product of VQ A by VQ B 5 9 5 VO A Dot B Computes the Scalar or Dot product of two Nx1 matrices gk VOIA Dot E WO E error out error in no error YQ_A Dot B vi VQ_ A VQ input vector VQ_ B VQ input vector VQ_ A Dot B VQ Dot Product of VQ A by VQ B 5 9 6 VO Inverse Matrix Computes the Inverse of an NxM matrix Board YO_ A eror in no error VO_Inverse 4 error out WO Inverse Matrix vi VQ A VQ input matrix VQ Inverse A The resultant Inverse of VQ A matrix 5 9 7 VO Transpose Transposes an NxM matrix Board Wo ka b vo A Error in no error error out Q_Transpose vi VQ A VQ input matrix VQ_Transpose A The resultant Transposed of VQ A matrix 5 9 8 VQ Determinant Computes the Determinant of a square NxN matrix N aA A error out Q Determinant i Board WO A error in no error VQ A VQ input matrix VQ _
147. utput NOTE Itis possible to observe a wrap around effect also known as wind up when using the Integration function This is not an error in the DSP code but rather the compounded effect of the input signal s offset added back onto itself The Calibrate function within the miscellaneous operations subset may be used to digitally correct this initial input signal offset 5 5 VQ Windows 5 5 1 VO Window The VQ Window vi function applies a windowing function to any input vector may be used in conjunction with the Windows Coefficients Design v1 Constant Update ai Board ap VO Aint Windows Coefficients emor out eror in ho eror YU Window wi YO window ofrin Constant Update LabVIEW boolean input that determines if the window coefficients are to be constantly updated or not Defaulted to not constantly update in order to maximize throughput VQ X n VQ input data to be subjected to a windowing function Windows Coefficients LabVIEW input array of the coefficients that represent the windowing function of interest may be derived from the Windows Coefficients Design v1 VQ Window of X n VQ output windowed function 5 5 2 Window Coefficients Design The Windows Coefficients Design vi computes the coefficients for a specific windowing function in the LabVIEW host domain very convenient to be used used in conjunction with the VQ Window vi function Window Function Board VO Mint Output
148. values to build the desired waveform Waveform Generation Parameters A LabVIEW input cluster of Controls Parameters to generate the desired Waveform Array typical control is shown below Waveform Generation Parameters Update Rate Amplitude o 20 00 40 050 0 50 0 30 0 70 0 20 0 OS a 10 0 ang Phase 0 0 100 0 i Offset o Duty Cycle 201 010 25 0 4 0 250 Fill Factor o j 0 0 sa waveform 75 0 75 4 100 0100 0 Parameters included to define a waveform are as follows Update Rate DAC update rate only used for computational purposes Points Buffer Number of points to include in the resulting buffer array containing the desired waveform Cycles Default 1 Nuber of cycles per buffer repetitions of a waveform Phase Default 0 Phase in radians that defines the waveform starting point Defaulted ata zero vlue Duty Cycle Default 50 Ratio of the positive portion of a waveform only applicable to the SQUARE wave Fill Factor Default 1 The fill factor inserts dumby points or multiples of the same points that define a waveform Usedful when an output is fed back to an input where it is desired to measure th response of signal of several multiple of output samples The fill factor effectively increases the buffer size by multiplying it times the buffer size Waveform Default Sine Waveform selection user can select a standard waveform pattern Sine Square Triangle Sawtoot
149. vior over a long period of time or large set of data blocks Board WO Sum of 4n Elements VOK error in no error error out Output Size Q Summation of Yector Elements wi VQ X n VQ input Output Size LabVIEW input Specifies the output vector size such that each element of the VQ output is the resultant sum of each input vector element VQ _ Sum of X n Elements VQ output whose individual values are the sum of each input vector s elements The overall length of the output vector array specified by the LabVIEW input Output Size represents the overall number of vectors used for the computation 5 2 13 VQ Product of Vector Elements This VI returns a vector VQ Product of X n Elements equal in size to the LabVIEW input Output Size Each i th element of the result is the product of all of the elements of a corresponding input vector 1 e the 3rd element of VQ Product of X n Elements is the product of all of the elements of the 3rd input vector VQ X n This algorithm is especially useful when trying to find a trend or behavior over a long period of time or large set of data blocks Board WO Product of tnt Elements vasin error in no error error aut Output Size QO Product of ector Elements vi VQ X n VQ input Output Size LabVIEW input Specifies the output vector size such that each element of the VQ output is the resultant product of each input vector element VQ Product of X n Elements VQ output wh
150. w bipolar signed binary value based on the DAC s resolution and signal range Daughter Module Board PO Analog Output Data PO Analog Output Data Array error in no error Channel Selector Offset Channel Selector Array Offset PQ Analog Output Channel i Scale Factor error out Channel Selector Offset LabVIEW constant used to select a single analog output of interest Not to be used if an array is wired to the Channel Selector Array Offset terminal Channel Selector Array Offset LabVIEW array of constants used to select an array of analog outputs Convenient if many analog outputs are to be written simultaneously as it avoids the wiring of separate icons If wired it becomes the default channel selector terminal as the Single Channel Selector Offset terminal is ignored PQ Analog Output Data PQ input containing the actual scaled value to be written to a single selected analog output If an array of channels is selected this terminal is ignored PQ Analog Output Data Array PQ input array containing an array of scaled values to be written to an array of analog outputs Should be used if the Channel Selector Array terminal is used since both array sizes must be the same and have a one to one correspondence Scale Factor LabVIEW output used to read the exact analog voltage scaling factor 3 1 7 PQ Scaled Analog Output Channel Same as PQ Analog Output Channel vi except it uses several subVIs to perform t
151. xecution of subsequent functions upto PQ End Conditional Execute during the current iteration else if the value is 0 none of these functions are executed Board PQ Enable Execute efor in ro error error out E To PO End Conditional Execute PQ_Begin Conditional Execute wi PQ Enable Execute PQ input with possible values of zero or else To End Conditional Execute LabVIEW output values to be passed to From Begin Conditional Execute terminal of PQ End Conditional Execute vi 6 2 2 P End Conditional Execute Ends the conditional execution of functions Board error in no error error out From Begin Conditional Execute yi PQ _ End Conditional Execute v i From Begin Conditional Execute vi LabVIEW input from To PQ End Conditional Execute terminal of PQ Begin Conditional Execute vi 6 3 PQ While Loop Structures Below is a diagram illustrating the general form that one must follow in order to implement while loop structures for PQ functions while Loop Function Set One or More Per Functions Board Control wires gt Error Chain Wires A PQ_ GoTo gt PQ_End Pot Begin Pa _End Linkage wire Linkage wire RPO Enable wire One or More Po Functions to Generate Pe Boolean TF Condition That Controls the while Loop teration 6 3 1 PO GoTo While Loop Structure An ancillary function required as a marker for the PQ While Loop Structure but its

Download Pdf Manuals

image

Related Search

Related Contents

USER MANUAL - Monitorhalterung.de  Lenovo ThinkCentre M71e  Bedienungsanleitung Instruction manual Mode d  BJ-170 取扱説明書(670KB/10ページ)  TXT Fleet Gas 04-07 owners guide  LED BLINDER WHITE - user manual - ENGLISH    TK205 WATCH GPS TRACKER User`s Manual  MANUAL DE INSTRUCCIONES PJ-100 PROYECTOR  SwissVoice Aeris 146  

Copyright © All rights reserved.
Failed to retrieve file