Client

This page contains documentation of the public API of the Julia client. In the Julia REPL one can access this documentation by entering the help mode with ? and then writing the function for which the documentation should be shown.

Connection and Communication

RedPitayaDAQServer.RedPitayaType
RedPitaya

Struct representing a connection to a RedPitayaDAQServer.

Contains the sockets used for communication and connection related metadata. Also contains fields for client specific concepts such as periods, frames and calibration values.

source
RedPitayaDAQServer.RedPitayaMethod
RedPitaya(ip [, port = 5025, dataPort=5026, isMaster = false])

Construct a RedPitaya.

During the construction the connection is established and the calibration values are loaded from the RedPitayas EEPROM. Throws an error if a timeout occurs while attempting to connect.

Examples

julia> rp = RedPitaya("192.168.1.100");

julia> decimation!(rp, 8)
true

julia> decimation(rp)
8
source
Sockets.sendMethod
send(rp::RedPitaya, cmd::String)

Send a command to the RedPitaya. Appends delimiter.

source
RedPitayaDAQServer.queryFunction
query(rp::RedPitaya, cmd [, timeout = 5.0, N = 100])

Send a query to the RedPitaya command socket. Return reply as String.

Waits for timeout seconds and checks every timeout/N seconds.

See also receive.

source
query(rp::RedPitaya, cmd, T::Type [timeout = 5.0, N = 100])

Send a query to the RedPitaya. Parse reply as T.

Waits for timeout seconds and checks every timeout/N seconds.

source
RedPitayaDAQServer.receiveFunction
receive(rp::RedPitaya)

Receive a String from the RedPitaya command socket. Reads until a whole line is received

source
receive(rp::RedPitaya, ch::Channel)

Receive a String from the RedPitaya command socket. Reads until a whole line is received and puts it in the supplied channel ch.

source
receive(rp::RedPitaya, timeout::Number)

Receive a string from the RedPitaya command socket. Reads until a whole line is received or timeout seconds passed. In the latter case an error is thrown.

source
RedPitayaDAQServer.serverModeFunction
serverMode(rp::RedPitaya)

Return the mode of the server.

Examples

julia> serverMode!(rp, ACQUISITION);
true

julia> serverMode(rp)
ACQUISITION
source
serverMode(rpc::RedPitayaCluster)

As with single RedPitaya, but applied to only the master.

source
RedPitayaDAQServer.serverMode!Function
serverMode!(rp::RedPitaya, mode::ServerMode)

Set the mode of the server. Valid values are "CONFIGURATION" and "ACQUISITION".

Examples

julia> serverMode!(rp, ACQUISITION);
true

julia> serverMode(rp)
ACQUISITION
source
serverMode!(rp::RedPitaya, mode::ServerMode)

Set the mode of the server.

Examples

julia> serverMode!(rp, ACQUISITION);
true

julia> serverMode(rp)
ACQUISITION
source
serverMode!(rpc::RedPitayaCluster, value)

As with single RedPitaya, but applied to all RedPitayas in a cluster.

source
RedPitayaDAQServer.ScpiBatchType
ScpiBatch

Struct representing a batch of SCPI commands for a RedPitaya. Only commands that interact exclusively with the command socket should be used in a batch.

source
RedPitayaDAQServer.execute!Function
execute!(rp::RedPitaya, batch::ScpiBatch)

Executes all commands of the given batch. Returns an array of the results in the order of the commands. An element is nothing if the command has no return value.

source
execute!(rpc::RedPitayaCluster, batch::ScpiBatch)

Executes all commands of the given batch. Returns an array of the results in the order of the commands.

Each element of the result array is again an array containing the return values of the RedPitayas. An element of an inner array is nothing if the command has no return value.

source
execute!(f::Function, rp::Union{RedPitaya, RedPitayaCluster})

Open a ScpiBatch and evaluate the function f. If no exception was thrown, execute the opened batch.

See also ScpiBatch, push!, @add_batch

Examples

julia>  execute!(rp) do b
          @add_batch b serverMode!(rp, CONFIGURATION)
          @add_batch b amplitudeDAC!(rp, 1, 1, 0.2)
        end
source
Base.push!Method
push!(batch::ScpiBatch, cmd::Pair{K, T}) where {K<:Function, T<:Tuple}

Add the given function and arguments to the batch

Examples

julia> batch = ScpiBatch() 

julia> push!(batch, amplitudeDAC! => (1, 1, 0.2))
source
Base.pop!Method
pop!(batch::ScpiBatch)

Remove the last added command from the batch

source
RedPitayaDAQServer.RedPitayaClusterType
RedPitayaCluster

Struct representing a cluster of RedPitayas. Such a cluster should share a common clock and master trigger.

The structure implements the indexing and iterable interfaces.

source
RedPitayaDAQServer.RedPitayaClusterMethod
RedPitayaCluster(hosts::Vector{String} [, port = 5025])

Construct a RedPitayaCluster.

During the construction the first host is labelled the master RedPitaya of a cluster and all RedPitayas are set to using the EXTERNAL trigger mode.

See also RedPitaya, master.

Examples

julia> rpc = RedPitayaCluster(["192.168.1.100", "192.168.1.101"]);

julia> rp = master(rpc)

julia> rp == rpc[1]
true
source
Base.lengthMethod
length(rpc::RedPitayaCluster)

Return the number of RedPitayas in cluster rpc.

source

ADC Configuration

RedPitayaDAQServer.triggerMode!Function
triggerMode!(rp::RedPitaya, mode::String)

Set the trigger mode of the RedPitaya. Return true if the command was successful.

source
triggerMode!(rp::RedPitaya, mode::String)

Set the trigger mode of the RedPitaya. Return true if the command was successful.

source
triggerMode!(rpc::RedPitayaCluster, value)

As with single RedPitaya, but applied to all RedPitayas in a cluster.

source
RedPitayaDAQServer.keepAliveResetFunction
keepAliveReset(rp::RedPitaya)

Determine whether the keepAliveReset is set.

source
keepAliveReset(rpc::RedPitayaCluster)

As with single RedPitaya, but applied to only the master.

source
RedPitayaDAQServer.keepAliveReset!Function
keepAliveReset!(rp::RedPitaya, val::Bool)

Set the keepAliveReset to val.

source
keepAliveReset!(rpc::RedPitayaCluster, value)

As with single RedPitaya, but applied to all RedPitayas in a cluster.

source
RedPitayaDAQServer.decimationFunction
decimation(rp::RedPitaya)

Return the decimation of the RedPitaya.

Examples

julia> decimation!(rp, 8)
true

julia> decimation(rp)
8
source
decimation(rpc::RedPitayaCluster)

As with single RedPitaya, but applied to only the master.

source
RedPitayaDAQServer.decimation!Function
decimation!(rp::RedPitaya, dec)

Set the decimation of the RedPitaya. Return true if the command was successful.

Examples

julia> decimation!(rp, 8)
true

julia> decimation(rp)
8
source
decimation!(rpc::RedPitayaCluster, value)

As with single RedPitaya, but applied to all RedPitayas in a cluster.

source
RedPitayaDAQServer.samplesPerPeriodFunction
samplesPerPeriod(rp::RedPitaya)

Return the number of samples per period.

Example

julia> samplesPerPeriod!(rp, 256)
true

julia> samplesPerPeriod(rp)
256
source
samplesPerPeriod(rpc::RedPitayaCluster)

As with single RedPitaya, but applied to only the master.

source
RedPitayaDAQServer.samplesPerPeriod!Function
samplesPerPeriod!(rp::RedPitaya, value)

Set the number of samples per period.

Example

julia> samplesPerPeriod!(rp, 256)
true

julia> samplesPerPeriod(rp)
256
source
samplesPerPeriod!(rpc::RedPitayaCluster, value)

As with single RedPitaya, but applied to all RedPitayas in a cluster.

source
RedPitayaDAQServer.periodsPerFrameFunction
periodsPerFrame(rp::RedPitaya)

Return the number of periods per frame.

Example

julia> periodsPerFrame!(rp, 16)

julia> periodsPerFrame(rp)
16
source
periodsPerFrame(rpc::RedPitayaCluster)

As with single RedPitaya, but applied to only the master.

source
RedPitayaDAQServer.periodsPerFrame!Function
periodsPerFrame(rp::RedPitaya, value)

Set the number of periods per frame.

Example

julia> periodsPerFrame!(rp, 16)

julia> periodsPerFrame(rp)
16
source
periodsPerFrame!(rpc::RedPitayaCluster, value)

As with single RedPitaya, but applied to all RedPitayas in a cluster.

source

DAC Configuration

RedPitayaDAQServer.amplitudeDACFunction
amplitudeDAC(rp::RedPitaya, channel, component)

Return the amplitude of composite waveform component for channel.

See amplitudeDAC!.

Examples

julia> amplitudeDAC!(rp, 1, 1, 0.5);
true

julia> amplitudeDAC(rp, 1, 1)
0.5
source
amplitudeDAC(rpc::RedPitayaCluster, chan::Integer, component::Integer)

As with single RedPitaya. The chan index refers to the total channel available in a cluster, two per RedPitaya. For example channel 4 would refer to the second channel of the second RedPitaya.

source
RedPitayaDAQServer.amplitudeDAC!Function
amplitudeDAC!(rp::RedPitaya, channel, component, value)

Set the amplitude of composite waveform component for channel. Return true if the command was successful.

See amplitudeDAC.

Examples

julia> amplitudeDAC!(rp, 1, 1, 0.5);
true

julia> amplitudeDAC(rp, 1, 1)
0.5
source
amplitudeDAC!(rpc::RedPitayaCluster, chan::Integer, component::Integer, value)

As with single RedPitaya. The chan index refers to the total channel available in a cluster, two per RedPitaya. For example channel 4 would refer to the second channel of the second RedPitaya.

source
RedPitayaDAQServer.offsetDACFunction
offsetDAC(rp::RedPitaya, channel)

Return the offset for channel.

See offsetDAC!.

Examples

julia> offsetDAC!(rp, 1, 0.2);
true

julia> offsetDAC(rp, 1)
0.2
source
offsetDAC(rpc::RedPitayaCluster, chan::Integer)

As with single RedPitaya. The chan index refers to the total channel available in a cluster, two per RedPitaya. For example channel 4 would refer to the second channel of the second RedPitaya.

source
RedPitayaDAQServer.offsetDAC!Function
offsetDAC!(rp::RedPitaya, channel, value)

Set the offset for channel. Return true if the command was successful.

See offsetDAC.

Examples

julia> offsetDAC!(rp, 1, 0.2);
true

julia> offsetDAC(rp, 1)
0.2
source
offsetDAC!(rpc::RedPitayaCluster, chan::Integer, value)

As with single RedPitaya. The chan index refers to the total channel available in a cluster, two per RedPitaya. For example channel 4 would refer to the second channel of the second RedPitaya.

source
RedPitayaDAQServer.frequencyDACFunction
frequencyDAC(rp::RedPitaya, channel, component)

Return the frequency of composite waveform component for channel.

See frequencyDAC!.

Examples

julia> frequencyDAC!(rp, 1, 1, 2400);
true

julia> frequencyDAC(rp, 1, 1)
2400
source
frequencyDAC(rpc::RedPitayaCluster, chan::Integer, component::Integer)

As with single RedPitaya. The chan index refers to the total channel available in a cluster, two per RedPitaya. For example channel 4 would refer to the second channel of the second RedPitaya.

source
RedPitayaDAQServer.frequencyDAC!Function
frequencyDAC!(rp::RedPitaya, channel, component, value)

Set the frequency of composite waveform component for channel. Return true if the command was successful.

See frequencyDAC.

Examples

julia> frequencyDAC!(rp, 1, 1, 2400);
true

julia> frequencyDAC(rp, 1, 1)
2400
source
frequencyDAC!(rpc::RedPitayaCluster, chan::Integer, component::Integer, value)

As with single RedPitaya. The chan index refers to the total channel available in a cluster, two per RedPitaya. For example channel 4 would refer to the second channel of the second RedPitaya.

source
RedPitayaDAQServer.phaseDACFunction
phaseDAC(rp::RedPitaya, channel, component)

Return the phase of composite waveform component for channel.

See phaseDAC!.

Examples

julia> phaseDAC!(rp, 1, 1, 0.0);
true

julia> phaseDAC(rp, 1, 0.0)
0.0
source
phaseDAC(rpc::RedPitayaCluster, chan::Integer, component::Integer)

As with single RedPitaya. The chan index refers to the total channel available in a cluster, two per RedPitaya. For example channel 4 would refer to the second channel of the second RedPitaya.

source
RedPitayaDAQServer.phaseDAC!Function
phaseDAC!(rp::RedPitaya, channel, component, value)

Set the phase of composite waveform component for channel. Return true if the command was successful.

See phaseDAC.

Examples

julia> phaseDAC!(rp, 1, 1, 0.0);
true

julia> phaseDAC(rp, 1, 0.0)
0.0
source
phaseDAC!(rpc::RedPitayaCluster, chan::Integer, component::Integer, value)

As with single RedPitaya. The chan index refers to the total channel available in a cluster, two per RedPitaya. For example channel 4 would refer to the second channel of the second RedPitaya.

source
RedPitayaDAQServer.signalTypeDACFunction
signalTypeDAC!(rp::RedPitaya, channel, value)

Return the signalType of composite waveform for channel.

See signalTypeDAC!.

Examples

julia> signalTypeDAC!(rp, 1, SINE);
true

julia> signalTypeDAC(rp, 1)
SINE
source
signalTypeDAC(rpc::RedPitayaCluster, chan::Integer, component::Integer)

As with single RedPitaya. The chan index refers to the total channel available in a cluster, two per RedPitaya. For example channel 4 would refer to the second channel of the second RedPitaya.

source
RedPitayaDAQServer.signalTypeDAC!Function
signalTypeDAC!(rp::RedPitaya, channel, value)

Set the signalType of composite waveform for channel. Return true if the command was successful.

See signalTypeDAC.

Examples

julia> signalTypeDAC!(rp, 1, SINE);
true

julia> signalTypeDAC(rp, 1)
SINE
source
signalTypeDAC!(rpc::RedPitayaCluster, chan::Integer, component::Integer, value)

As with single RedPitaya. The chan index refers to the total channel available in a cluster, two per RedPitaya. For example channel 4 would refer to the second channel of the second RedPitaya.

source
RedPitayaDAQServer.seqChan!Function
seqChan!(rp::RedPitaya, value)

Set the number of sequence channel. Valid values are between 1 and 6. Return true if the command was successful.

source
RedPitayaDAQServer.samplesPerStepFunction
samplesPerStep(rp::RedPitaya)

Return the number of samples per sequence step.

source
samplesPerStep(rpc::RedPitayaCluster)

As with single RedPitaya, but applied to only the master.

source
RedPitayaDAQServer.samplesPerStep!Function
samplesPerStep!(rp::RedPitaya, value::Integer)

Set the number of samples per sequence step. Return true if the command was successful.

source
samplesPerStep!(rpc::RedPitayaCluster, value)

As with single RedPitaya, but applied to all RedPitayas in a cluster.

source
RedPitayaDAQServer.clearSequence!Function
clearSequence!(rp::RedPitaya)

Instruct the server to remove all sequences from its list. Return true if the command was successful.

source
clearSequence!(rpc::RedPitayaCluster)

As with single RedPitaya, but applied to all RedPitayas in a cluster.

source
RedPitayaDAQServer.sequence!Function
sequence!(rp::RedPitaya, seq::AbstractSequence)

Transmit the client-side representation seq to the server and append it to the current list of sequences. Return true if the required commands were successful.

source
sequence!(rpc::RedPitayaCluster)

As with single RedPitaya, but applied to all RedPitayas in a cluster.

source
RedPitayaDAQServer.calibDACOffset!Function
calibDACOffset!(rp::RedPitaya, channel::Integer, val)

Store calibration DAC offset val for given channel into the RedPitayas EEPROM. This value is used by the server to offset the output voltage. Absolute value has to be smaller than 1.0 V.

source
RedPitayaDAQServer.calibDACScale!Function
calibDACScale(rp::RedPitaya, channel::Integer)

Store calibration DAC scale val for given channel into the RedPitayas EEPROM. This value is used by the server to scale the output voltage.

source
RedPitayaDAQServer.calibDACUpperLimit!Function
calibDACUpperLimit!(rp::RedPitaya, channel::Integer)

Store calibration DAC upper limit val for given channel into the RedPitayas EEPROM. This value is used by the server to limit the output voltage.

source
RedPitayaDAQServer.calibDACLowerLimit!Function
calibDACLowerLimit!(rp::RedPitaya, channel::Integer)

Store calibration DAC lower limit val for given channel into the RedPitayas EEPROM. This value is used by the server to limit the output voltage.

source

Measurement and Transmission

RedPitayaDAQServer.masterTriggerFunction
masterTrigger(rp::RedPitaya)

Determine whether the master trigger is set.

Example

julia> masterTrigger!(rp, true)

julia>masterTrigger(rp)
true
source
masterTrigger(rpc::RedPitayaCluster)

As with single RedPitaya, but applied to only the master.

source
RedPitayaDAQServer.masterTrigger!Function
masterTrigger!(rp::RedPitaya, val::Bool)

Set the master trigger of the RedPitaya to val. Return true if the command was successful.

Example

julia> masterTrigger!(rp, true)
true

julia>masterTrigger(rp)
true
source
masterTrigger(rpc::RedPitayaCluster, val::Bool)

Set the master trigger of the cluster to val.

For val equals to true this is the same as calling the function on the RedPitaya returned by master(rpc). If val is false then the keepAliveReset is set to true for all RedPitayas in the cluster before the master trigger is disabled. Afterwards the keepAliveReset is set to false again.

See also master, keepAliveReset!.

source
RedPitayaDAQServer.currentWPFunction
currentWP(rp::RedPitaya)

Return the current writepointer of the RedPitaya.

source
currentWP(rpc::RedPitayaCluster)

As with single RedPitaya, but applied to only the master.

source
RedPitayaDAQServer.SampleChunkType
SampleChunk

Struct containing a matrix of samples and associated PerformanceData

Fields

  • samples::Matrix{Int16}: nxm matrix containing m samples for n channel
  • performance::Vector{PerformanceData}: PerformanceData object for each RedPitaya that transmitted samples
source
RedPitayaDAQServer.readSamplesFunction
readSamples(rpu::Union{RedPitaya,RedPitayaCluster, RedPitayaClusterView}, wpStart::Int64, numOfRequestedSamples::Int64; chunkSize::Int64 = 25000, rpInfo=nothing)

Request and receive numOfRequestedSamples samples from wpStart on in a pipelined fashion. Return a matrix of samples.

If rpInfo is set to a RPInfo, the PerformanceData sent after every chunkSize samples will be pushed into rpInfo.

source
readSamples(rpu::Union{RedPitaya,RedPitayaCluster, RedPitayaClusterView}, wpStart::Int64, numOfRequestedSamples::Int64, channel::Channel; chunkSize::Int64 = 25000)

Request and receive numOfRequestedSamples samples from wpStart on in a pipelined fashion. The samples and associated PerformanceData are pushed into channel as a SampleChunk.

See SampleChunk.

source
RedPitayaDAQServer.readFramesFunction
readFrames(rpu::Union{RedPitaya,RedPitayaCluster, RedPitayaClusterView}, startFrame, numFrames, numBlockAverages=1, numPeriodsPerPatch=1; rpInfo=nothing, chunkSize = 50000, useCalibration = false)

Request and receive numFrames frames from startFrame on.

See readSamples, convertSamplesToFrames, samplesPerPeriod, periodsPerFrame, updateCalib!.

Arguments

  • rpu::Union{RedPitaya,RedPitayaCluster, RedPitayaClusterView}: RedPitayas to receive samples from.
  • startFrame: frame from which to start transmitting
  • numFrames: number of frames to read
  • numBlockAverages=1: see convertSamplesToFrames
  • numPeriodsPerPatch=1: see convertSamplesToFrames
  • chunkSize=50000: see readSamples
  • rpInfo=nothing: see readSamples
  • useCalibration: convert from Int16 samples to Float32 values based on RedPitayas calibration
source
RedPitayaDAQServer.readPeriodsFunction
readPeriods(rpu::Union{RedPitaya,RedPitayaCluster, RedPitayaClusterView}, startPeriod, numPeriods, numBlockAverages=1, numPeriodsPerPatch=1; rpInfo=nothing, chunkSize = 50000, useCalibration = false)

Request and receive numPeriods Periods from startPeriod on.

See readSamples, convertSamplesToPeriods!, samplesPerPeriod.

Arguments

  • rpu::Union{RedPitaya,RedPitayaCluster, RedPitayaClusterView}: RedPitayas to receive samples from.
  • startPeriod: period from which to start transmitting
  • numPeriods: number of periods to read
  • numBlockAverages=1: see convertSamplesToPeriods
  • chunkSize=50000: see readSamples
  • rpInfo=nothing: see readSamples
  • useCalibration: convert samples based on RedPitayas calibration
source
RedPitayaDAQServer.convertSamplesToFramesMethod
convertSamplesToFrames(rpu::Union{RedPitayaCluster, RedPitayaClusterView}, samples, numChan, numSampPerPeriod, numPeriods, numFrames, numBlockAverages=1, numPeriodsPerPatch=1)

Converts a given set of samples to frames.

See readFrames

source

Slow IO

RedPitayaDAQServer.DIO!Method

DIO!(rp::RedPitaya, pin::DIOPins, val::Bool)

Set the value of DIO pin pin to the value val.

Example

julia> DIO!(rp, DIO7_P, true)
true
source
RedPitayaDAQServer.DIODirection!Method

DIODirection!(rp::RedPitaya, pin::DIOPins, direction::DIODirectionType)

Set the direction of DIO pin pin to the value direction.

Example

julia> DIODirection!(rp, DIO7_P, DIO_OUT)

julia>DIODirection(rp, DIO7_P)
DIO_OUT
source
RedPitayaDAQServer.DIODirectionMethod

DIODirection(rp::RedPitaya, pin::DIOPins)

Get the direction of DIO pin pin.

Example

julia> DIODirection!(rp, DIO7_P, DIO_OUT)

julia>DIODirection(rp, DIO7_P)
DIO_OUT
source
RedPitayaDAQServer.slowDAC!Method
slowDAC!(rp::RedPitaya, channel::Int64, val::Int64)

Set the value of the slow DAC channel channel to the value val. Return true if the command was successful.

Example

julia> slowDAC!(rp, 1, 500)
true
source

EEPROM and Calibration

RedPitayaDAQServer.calibDACLowerLimit!Method
calibDACLowerLimit!(rp::RedPitaya, channel::Integer)

Store calibration DAC lower limit val for given channel into the RedPitayas EEPROM. This value is used by the server to limit the output voltage.

source
RedPitayaDAQServer.calibDACOffset!Method
calibDACOffset!(rp::RedPitaya, channel::Integer, val)

Store calibration DAC offset val for given channel into the RedPitayas EEPROM. This value is used by the server to offset the output voltage. Absolute value has to be smaller than 1.0 V.

source
RedPitayaDAQServer.calibDACScale!Method
calibDACScale(rp::RedPitaya, channel::Integer)

Store calibration DAC scale val for given channel into the RedPitayas EEPROM. This value is used by the server to scale the output voltage.

source
RedPitayaDAQServer.calibDACUpperLimit!Method
calibDACUpperLimit!(rp::RedPitaya, channel::Integer)

Store calibration DAC upper limit val for given channel into the RedPitayas EEPROM. This value is used by the server to limit the output voltage.

source

Counter Trigger

RedPitayaDAQServer.counterTrigger_arm!Function
counterTrigger_arm!(rp::RedPitaya, val::Bool)

Set whether the counter trigger is armed or not. Return true if the command was successful.

Examples

julia> counterTrigger_arm!(rp, true)
true

julia> counterTrigger_isArmed(rp)
true
source
RedPitayaDAQServer.counterTrigger_enabled!Method

counterTrigger_enabled!(rp::RedPitaya, val)

Set whether the counter trigger is enabled or not. Return true if the command was successful.

Examples

julia> counterTrigger_enabled!(rp, true)
true

julia> counterTrigger_enabled(rp)
true
source
RedPitayaDAQServer.counterTrigger_enabledMethod
counterTrigger_enabled(rp::RedPitaya)

Return whether the counter trigger is enabled or not.

Examples

julia> counterTrigger_enabled!(rp, true)
true

julia> counterTrigger_enabled(rp)
true
source
RedPitayaDAQServer.counterTrigger_lastCounterMethod

counterTrigger_lastCounter(rp::RedPitaya)

Return the number of samples that the counter trigger should trigger prior to reaching the reference counter.

Examples

julia> counterTrigger_lastCounter(rp)
123456
source
RedPitayaDAQServer.counterTrigger_presamples!Method
counterTrigger_presamples!(rp::RedPitaya, presamples)

Set the number of samples that the counter trigger should trigger prior to reaching the reference counter.

Examples

julia> counterTrigger_presamples!(rp, 50)
true

julia> counterTrigger_presamples(rp)
50
source
RedPitayaDAQServer.counterTrigger_presamplesMethod
counterTrigger_presamples(rp::RedPitaya)

Return the number of samples that the counter trigger should trigger prior to reaching the reference counter.

Examples

julia> counterTrigger_presamples!(rp, 50)
true

julia> counterTrigger_presamples(rp)
50
source
RedPitayaDAQServer.counterTrigger_referenceCounter!Method

counterTrigger_referenceCounter!(rp::RedPitaya, presamples)

Set the number of samples that the counter trigger should trigger on.

Examples

julia> counterTrigger_referenceCounter(rp, 250)
true

julia> counterTrigger_referenceCounter!(rp)
250
source
RedPitayaDAQServer.counterTrigger_referenceCounterMethod
counterTrigger_referenceCounter(rp::RedPitaya)

Return the counter value that the counter trigger should trigger on.

Examples

julia> counterTrigger_referenceCounter!(rp, 250)
true

julia> counterTrigger_referenceCounter(rp)
250
source
RedPitayaDAQServer.counterTrigger_reset!Method
counterTrigger_reset!(rp::RedPitaya, val::Bool)

Set the reset of the counter trigger to val. Return true if the command was successful.

Example

julia> counterTrigger_reset!(rp, true)
true

julia>counterTrigger_reset(rp)
true
source
RedPitayaDAQServer.counterTrigger_sourceChannel!Method

counterTrigger_sourceChannel!(rp::RedPitaya, sourceChannel::) //TODO

Set the source channel of the counter trigger to sourceChannel.

Example

julia> counterTrigger_sourceChannel!(rp, COUNTER_TRIGGER_ADC)

julia>counterTrigger_sourceChannel(rp)
COUNTER_TRIGGER_ADC::CounterTriggerSourceType = 1 //TODO
source
RedPitayaDAQServer.counterTrigger_sourceChannelMethod

counterTrigger_sourceChannel(rp::RedPitaya)

Get the source channel of the counter trigger.

Example

julia> counterTrigger_sourceChannel!(rp, COUNTER_TRIGGER_IN2)

julia>counterTrigger_sourceChannel(rp)
COUNTER_TRIGGER_IN2::CounterTriggerSourceADCChannel = 2
source
RedPitayaDAQServer.counterTrigger_sourceType!Method
counterTrigger_sourceType!(rp::RedPitaya, sourceType::CounterTriggerSourceType)

Set the source type of the counter trigger to sourceType.

Example

julia> counterTrigger_sourceType!(rp, COUNTER_TRIGGER_ADC)

julia>counterTrigger_sourceType(rp)
COUNTER_TRIGGER_ADC::CounterTriggerSourceType = 1
source
RedPitayaDAQServer.counterTrigger_sourceTypeMethod
counterTrigger_sourceType(rp::RedPitaya)

Get the source type of the counter trigger.

Example

julia> counterTrigger_sourceType!(rp, COUNTER_TRIGGER_ADC)

julia>counterTrigger_sourceType(rp)
COUNTER_TRIGGER_ADC::CounterTriggerSourceType = 1
source