TestLED

LED test module DLL code [|USB_RLY08-Code.doc]

RedLight Hardware Script code format="csharp" // RegisterAssembly: BasicHardware.dll // RegisterAssembly: plugin\HardwareScript.if.dll // RegisterAssembly: USB-RLY08.dll using Thermo.Imhotep.Peripheral.USBRLY08; using Thermo.Imhotep.BasicHardware; using Thermo.Imhotep.HardwareScript;

public class SomeClass {	public static bool SetParameter(Hardware hw, int rawValue) {		if(rawValue == 0) {			USB_RLY08.Instance.SetRelays(0,4); }		else {			USB_RLY08.Instance.SetRelays(4,4); }		m_rawValue = rawValue; return true; }	public static bool GetParameter(Hardware hw, out int rawValue) {		if(USB_RLY08.Instance.Relay2On) {			rawValue = 1; }		else {			rawValue = 0; }		return true; }	private static int m_rawValue; } code

GreenLight HardwareScript code format="csharp" // RegisterAssembly: BasicHardware.dll // RegisterAssembly: plugin\HardwareScript.if.dll // RegisterAssembly: USB-RLY08.dll using Thermo.Imhotep.Peripheral.USBRLY08; using Thermo.Imhotep.BasicHardware; using Thermo.Imhotep.HardwareScript;

public class SomeClass {	public static bool SetParameter(Hardware hw, int rawValue) {		if(rawValue == 0) {			USB_RLY08.Instance.SetRelays(0,2); }		else {			USB_RLY08.Instance.SetRelays(2,2); }		m_rawValue = rawValue; return true; }	public static bool GetParameter(Hardware hw, out int rawValue) {		if(USB_RLY08.Instance.Relay1On) {			rawValue = 1; }		else {			rawValue = 0; }		return true; }	private static int m_rawValue; } code

OrangeLight Hardware Script code format="csharp" // RegisterAssembly: BasicHardware.dll // RegisterAssembly: plugin\HardwareScript.if.dll // RegisterAssembly: USB-RLY08.dll using Thermo.Imhotep.Peripheral.USBRLY08; using Thermo.Imhotep.BasicHardware; using Thermo.Imhotep.HardwareScript;

public class SomeClass {	public static bool SetParameter(Hardware hw, int rawValue) {		if(rawValue == 0) {			USB_RLY08.Instance.SetRelays(0,1); }		else {			USB_RLY08.Instance.SetRelays(1,1); }		m_rawValue = rawValue; return true; }	public static bool GetParameter(Hardware hw, out int rawValue) {		if(USB_RLY08.Instance.Relay0On) {			rawValue = 1; }		else {			rawValue = 0; }		return true; }	private static int m_rawValue; } code