Pstat.SetLEDS()

Type: INSTANCE FUNCTION

Purpose: Set the on/off state of the LEDs on a PCI4 family potentiostat.

NOTE: This function is for PCI4 family potentiostats only!

Individual LEDs can be set, or all four LEDs can be controlled simultaneously. The LEDs are labeled LED0, LED1, LED2 and LED3.

There are two different ways to call this function.

In the first syntax, BITS arguments are used to show the desired bit pattern and to show the range of bits to be changed. Remember that a BITS constant has the form 0x0XXXX with X representing any hexadecimal digit.

Each of the lowest four bits of the BITS argument corresponds to one of the LEDs. A bit is only changed if the mask argument has a one in that bit's bit position. A mask argument of 0x0003 allows changes in LED0 and LED1. With this mask value, LED2 and LED3 are not changed regardless of the bit-pattern argument.

In the second calling syntax, four BOOL parameters list the state of each bit. This format may be easier for the average user to understand.

Usage: Pstat.SetLEDS(Setting, Mask)

       
  Setting BITS New output code in the lowest four bits. A one in this argument causes the LED to be turned on.
  Mask BITS Identify the bits to be changed.
or      
  BitN BOOL The bit setting.
     

TRUE = Turn the LED on.

FALSE = Turn the LED off.

NIL = Don't change this LED.

Related Topics Link IconRelated Topics