Pstat.SetLEDS()
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)
Comments are closed.