SEPIA
Software documentation for the APEX SEPIA receivers
Acromag Class Reference

A class to control the Acromag GP-I/O unit. More...

#include <acromag.h>

Inherits QTcpSocket.

Public Types

enum  Cartridge { OFF = 0, A = 1, B = 2, C = 3 }
 The different cartridges. More...
 

Public Slots

void connectToServer ()
 Connect to Acromag GPIO device using Modbus tcp.
 
void cartridge (Sepia::Channel channel, bool on)
 Select/unselect a cartridge. More...
 
void setLOswitch (Sepia::Channel channel)
 Set the LO switch for a given cartridge. More...
 

Public Member Functions

Sepia::Channel connectedLO () const
 Get the channel which is currently selected. More...
 
bool isConnected (Sepia::Channel channel) const
 Check if we have a network connection to our Acromag instance. More...
 

Static Public Member Functions

static Acromaginstance ()
 Get a pointer to a class Acromag instance.
 

Detailed Description

A class to control the Acromag GP-I/O unit.

The XT1121-000 is a Modbus TCP/IP network control module for interface with up to 16 channels of digital input/output for high-side (sourcing) applications. The unit provides I/O isolation from network & power.

Member Enumeration Documentation

◆ Cartridge

The different cartridges.

Enumerator
OFF 

no connection

cartridge A (SEPIA band 5)

cartridge B (SEPIA band 9)

cartridge C (SEPIA band 7)

Member Function Documentation

◆ cartridge

void Acromag::cartridge ( Sepia::Channel  channel,
bool  on 
)
slot

Select/unselect a cartridge.

Parameters
channelSepia::BAND5, Sepia::BAND7 or Sepia::BAND9
ontrue for selecting, false for unselecting the channel

◆ connectedLO()

Sepia::Channel Acromag::connectedLO ( ) const

Get the channel which is currently selected.

Returns
the active channel

◆ isConnected()

bool Acromag::isConnected ( Sepia::Channel  channel) const

Check if we have a network connection to our Acromag instance.

Returns
true for connected, false for disconnected

◆ setLOswitch

void Acromag::setLOswitch ( Sepia::Channel  channel)
slot

Set the LO switch for a given cartridge.

Parameters
channelSepia::BAND5, Sepia::BAND7 or Sepia::BAND9

The documentation for this class was generated from the following files: