IMVIORS232TriggerSource

The IMVIORS232TriggerSource interface contains methods and properties to configure the MV I/O RS232 Trigger Source  filter.

Methods:

AddPin Add pin with specified event.
BaudRate Comport speed.
ComPort Selected comport.
GetIdleLevel Get idle level for this pin.
GetPinCount Get the amount of available pins.
GetPinName Get the pin name.
GetPinSignal Get the pin name.
IsPinConnected Get the connection status of a pin.
SetIdleLevelHigh Set idle level for this pin to TRUE.
SetIdleLevelLow Set idle level for this pin to FALSE.
Trigger Send trigger signal to this pin.

 

Header file: IMVIORS232TriggerSource.h
Interface definition language file: IMVIORS232TriggerSource.idl
Typelib: MVIORS232TriggerSource
Interface ID: IID_IMVIORS232TriggerSource

 

Method IMVIORS232TriggerSource::AddPin

Declaration: Function AddPin(iSignal As Long) As Long

Add pin with specified event as MV_RS232TRIGGER_SIGNAL. The event string is also the pins name, e.g. "Ring_On".

Parameter:

iSignal Trigger event for this pin.
C Prototype:

HRESULT AddPin(LONG iSignal, LONG* value);


Property IMVIORS232TriggerSource::BaudRate

Declaration: Property Get/Put BaudRate As Long

Comport speed as MV_RS232TRIGGER_BAUD_RATE.

C Prototype:

HRESULT put_BaudRate(LONG newVal);
HRESULT get_BaudRate(LONG*pVal);


Property IMVIORS232TriggerSource::ComPort

Declaration: Property Get/Put ComPort As Long

Selected comport.

C Prototype:

HRESULT put_ComPort(LONGnewVal);
HRESULT get_ComPort(LONG*pVal);


Method IMVIORS232TriggerSource::GetIdleLevel

Declaration: Function GetIdleLevel(iPinNumber As Long) As Boolean

Get idle level for this pin. If the idle level is FALSE, the trigger signal will be a TRUE - FALSE sequence and if the idle level is TRUE, the trigger signal will be a FALSE - TRUE sequence.

Parameter:

iPinNumber The pin number.
C Prototype:

HRESULT GetIdleLevel(LONG iPinNumber, VARIANT_BOOL* value);


Method IMVIORS232TriggerSource::GetPinCount

Declaration: Function GetPinCount As Long

Get the amount of available pins.

C Prototype:

HRESULT GetPinCount(LONG* value);


Method IMVIORS232TriggerSource::GetPinName

Declaration: Sub GetPinName(iPinNumber As Long, pbstrname As String)

Get the pin name for the specified pin.

Parameter:

iPinNumber The pin number.
pbstrname Receives the name of this pin.
C Prototype:

HRESULT GetPinName(LONG iPinNumber, BSTR pbstrname);


Method IMVIORS232TriggerSource::GetPinSignal

Declaration: Function GetPinSignal(iPinNumber As Long) As Long

Get the event that triggers this pin as MV_RS232TRIGGER_SIGNAL.

Parameter:

iPinNumber The pin number.
C Prototype:

HRESULT GetPinSignal(LONG iPinNumber, LONG* value);


Method IMVIORS232TriggerSource::IsPinConnected

Declaration: Function IsPinConnected(iPinNumber As Long) As Boolean

Get the connection status of a pin, TRUE if the pin is connected.

Parameter:

iPinNumber The pin number.
C Prototype:

HRESULT IsPinConnected(LONG iPinNumber, VARIANT_BOOL* value);


Method IMVIORS232TriggerSource::SetIdleLevelHigh

Declaration: Sub SetIdleLevelHigh(iPinNumber As Long)

Set idle level for this pin to TRUE. The trigger sequence for this pin will be FALSE - TRUE.

Parameter:

iPinNumber The pin number.
C Prototype:

HRESULT SetIdleLevelHigh(LONG iPinNumber);


Method IMVIORS232TriggerSource::SetIdleLevelLow

Declaration: Sub SetIdleLevelLow(iPinNumber As Long)

Set idle level for this pin to FALSE. The trigger sequence for this pin will be TRUE - FALSE.

Parameter:

iPinNumber The pin number.
C Prototype:

HRESULT SetIdleLevelLow(LONG iPinNumber);


Method IMVIORS232TriggerSource::Trigger

Declaration: Sub Trigger(iPinNumber As Long)

Send trigger signal to this pin.

Parameter:

iPinNumber The pin number.
C Prototype:

HRESULT Trigger(LONG iPinNumber);

 

Data Types:

typedef enum _MV_RS232TRIGGER_SIGNAL
{
    MV_RS232TRIGGER_SIGNAL_CTS_ON,
    MV_RS232TRIGGER_SIGNAL_DSR_ON,
    MV_RS232TRIGGER_SIGNAL_RING_ON,
    MV_RS232TRIGGER_SIGNAL_RLSD_ON,
    MV_RS232TRIGGER_SIGNAL_a,
    MV_RS232TRIGGER_SIGNAL_b,
    MV_RS232TRIGGER_SIGNAL_c,
    MV_RS232TRIGGER_SIGNAL_d,
    MV_RS232TRIGGER_SIGNAL_e,
    MV_RS232TRIGGER_SIGNAL_f,
    MV_RS232TRIGGER_SIGNAL_g,
    MV_RS232TRIGGER_SIGNAL_h,
    MV_RS232TRIGGER_SIGNAL_0,
    MV_RS232TRIGGER_SIGNAL_1,
    MV_RS232TRIGGER_SIGNAL_2,
    MV_RS232TRIGGER_SIGNAL_3,
    MV_RS232TRIGGER_SIGNAL_4,
    MV_RS232TRIGGER_SIGNAL_5,
    MV_RS232TRIGGER_SIGNAL_6,
    MV_RS232TRIGGER_SIGNAL_7,
    MV_RS232TRIGGER_SIGNAL_8,
    MV_RS232TRIGGER_SIGNAL_9
} MV_RS232TRIGGER_SIGNAL;

 

typedef enum _MV_RS232TRIGGER_BAUD_RATE
{
    MV_RS232TRIGGER_BAUD_075,
    MV_RS232TRIGGER_BAUD_110,
    MV_RS232TRIGGER_BAUD_150,
    MV_RS232TRIGGER_BAUD_300,
    MV_RS232TRIGGER_BAUD_600,
    MV_RS232TRIGGER_BAUD_1200,
    MV_RS232TRIGGER_BAUD_1800,
    MV_RS232TRIGGER_BAUD_2400,
    MV_RS232TRIGGER_BAUD_4800,
    MV_RS232TRIGGER_BAUD_7200,
    MV_RS232TRIGGER_BAUD_9600,
    MV_RS232TRIGGER_BAUD_14400,
    MV_RS232TRIGGER_BAUD_19200,
    MV_RS232TRIGGER_BAUD_38400,
    MV_RS232TRIGGER_BAUD_56K,
    MV_RS232TRIGGER_BAUD_128K,
    MV_RS232TRIGGER_BAUD_115200,
    MV_RS232TRIGGER_BAUD_57600
} MV_RS232TRIGGER_BAUD_RATE;