Skip to content

Commit

Permalink
Merge pull request #506 from micro-manager/Utilities
Browse files Browse the repository at this point in the history
Utilities: changed values for TTL Voltgae in DA TTL device to 3.30 and 5.00
  • Loading branch information
nicost authored Oct 16, 2024
2 parents b541d0c + f2771a7 commit 6f646b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
16 changes: 10 additions & 6 deletions DeviceAdapters/Utilities/DATTLStateDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
extern const char* g_DeviceNameDATTLStateDevice;
extern const char* g_normalLogicString;
extern const char* g_invertedLogicString;
extern const char* g_InvertLogic;
extern const char* g_TTLVoltage;
extern const char* g_3_3;
extern const char* g_5_0;


DATTLStateDevice::DATTLStateDevice() :
Expand Down Expand Up @@ -124,18 +128,18 @@ int DATTLStateDevice::Initialize()
SetPropertyLimits(MM::g_Keyword_State, 0, numPos - 1);

pAct = new CPropertyAction(this, &DATTLStateDevice::OnInvert);
ret = CreateStringProperty("Invert Logic", g_normalLogicString, false, pAct);
ret = CreateStringProperty(g_InvertLogic, g_normalLogicString, false, pAct);
if (ret != DEVICE_OK)
return ret;
AddAllowedValue("Invert Logic", g_normalLogicString);
AddAllowedValue("Invert Logic", g_invertedLogicString);
AddAllowedValue(g_InvertLogic, g_normalLogicString);
AddAllowedValue(g_InvertLogic, g_invertedLogicString);

pAct = new CPropertyAction(this, &DATTLStateDevice::OnTTLLevel);
ret = CreateStringProperty("TTL Voltage", "3.3", false, pAct);
ret = CreateStringProperty(g_TTLVoltage, g_3_3, false, pAct);
if (ret != DEVICE_OK)
return ret;
AddAllowedValue("TTL Voltage", "3.3");
AddAllowedValue("TTL Voltage", "5.0");
AddAllowedValue(g_TTLVoltage, g_3_3);
AddAllowedValue(g_TTLVoltage, g_5_0);

pAct = new CPropertyAction(this, &DATTLStateDevice::OnLabel);
ret = CreateStringProperty(MM::g_Keyword_Label, "0", false, pAct);
Expand Down
4 changes: 4 additions & 0 deletions DeviceAdapters/Utilities/Utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ const char* g_SyncNow = "Sync positions now";

const char* g_normalLogicString = "Normal";
const char* g_invertedLogicString = "Inverted";
const char* g_InvertLogic = "Invert Logic";
const char* g_TTLVoltage = "TTL Voltage";
const char* g_3_3 = "3.30";
const char* g_5_0 = "5.00";



Expand Down

0 comments on commit 6f646b4

Please sign in to comment.