digimetrie Tools >> digimetrie Tools > Digimétrie Functions
Digimétrie Functions
Scilab functions for manipulate Digimétrie's acquisition boards
Functions
digi_AInf : Voltage acquisition of an analogic Input channel
digi_AInf_Scan : mass Voltage acquisition of a group of analogic Input channels
digi_DIn : acquisition of a binary lines bloc state
digi_BIn : acquisition of a single binary line state
digi_AOutf : set the Voltage a an analogic ouput channel
digi_AOutf_Scan : successive sets of Voltages of a group of analogic Output channels
digi_DIn : set the state of a binary lines bloc state
digi_BOut : set the state of a single binary line state
digi_AInf
Read the Voltage of an analogic Input channel
Function parameters :
- card number : among [0..(n-1)] where n is the number of Digimétrie boards.
- channel number : among [0..k] : analogic Input channel number.
- gain : among [1;2;4;8] : gain of the amplifier and before the convertor
Return : the real corresponding the the Voltage readed
digi_AInf_Scan
Operate a series of Voltage readings among a group of analogic Input channels
Function parameters :
- card number : among [0..(n-1)] where n is the number of Digimétrie boards.
- channels number : among [1..k] : number of channels to read (ie. reads will be perform on channels set [0 .. ("channels number" -1)] )
- gain : among [1;2;4;8] : gain of the amplifier and before the convertor (will be apply to all readings)
- frequence in hz : acquisitions frequence in Hertz
- acquisitions number : how much acquisitions to do (one acquisition == one reading of all chanels in [0..("channels number" -1)] )
Return : a matrix ["channels number" x "acquisitions number"]
digi_DIn
Do a reading of a bloc of 8 binary lines
Function parameters :
- card number : among [0..(n-1)] where n is the number of Digimétrie boards.
- bloc number : among [0..k] : bloc number of binary lines to read
Return : an integer which the binary value b7-b6-b5-b4-b3-b2-b1-b0 mean : bi == binay value of channel i of the bloc
digi_BIn
Do a reading of a single line in a bloc of binary lines
Function parameters :
- card number : among [0..(n-1)] where n is the number of Digimétrie boards.
- bloc number : among [0..k] : bloc number which hold the binary line to read.
- line number : among [0..7] : line number in the bloc.
Return : 0 ou 1
digi_AOutf
Set the Voltage of a analogic Output channel
Function parameters :
- card number : among [0..(n-1)] where n is the number of Digimétrie boards.
- channel number : among [0..k] : channel number to set.
- Voltage the wanted Voltage
Return : 1
digi_AOutf_Scan
Opoerate successives setting of Voltage among a group of analogic Outpus Channels. For example for signal generation.
Function parameters :
- card number : among [0..(n-1)] where n is the number of Digimétrie boards.
- frequence in hz : restitutions frequence in Hertz
- matrix of Values : Values for the restitutions. If the matrix is like [n x m], the restitutions whill occure on the n first channels of the board, and there will be "m" restitutions.
Return : 1
digi_DOut
Set the value of a bloc of 8 binary lines
Function parameters :
- card number : among [0..(n-1)] where n is the number of Digimétrie boards.
- bloc number : among [0..k] : bloc number of the binary lines to set.
- lines Values : an integer which binary representation [b7-b6-b5-b4-b3-b2-b1-b0] will set binary lines with for lines "i" the value "bi".
Return : 1
digi_BOut
Set the Value of a single binary line
Function parameters :
- card number :among [0..(n-1)] where n is the number of Digimétrie boards.
- bloc number : among [0..k] : bloc number which hold the binary line to set
- number de ligne : among [0..7] : binary line number in the bloc
- valeur de la ligne : amonge [0..1] : state wanted for the line
Return : 1