You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while (source->GetAttenuators(max_att_id++, &att) == 0) {};
140
-
}
141
-
142
-
if (source->ShowGUI != NULL)
143
-
source->ShowGUI();
144
-
//RETURN_OK();
145
-
}
146
-
else {
147
-
closeextio();
148
-
//RETURN_EXCEPTION("The ExtIO driver failed to open a device. Make sure your device is plugged in and its drivers are installed correctly.", TSDR_CANNOT_OPEN_DEVICE);
149
-
}
150
-
151
-
152
-
153
-
MSG msg;
154
-
BOOL bRet;
155
-
156
-
while ((bRet = GetMessage(&msg, NULL, 0, 0)) != 0)
RETURN_EXCEPTION("The sample format of the ExtIO plugin is not supported.", TSDR_CANNOT_OPEN_DEVICE);
200
-
}
156
+
announceexception("The sample format of the ExtIO plugin is not supported.", TSDR_CANNOT_OPEN_DEVICE);
157
+
} elseif (source->OpenHW()) {
158
+
//printf("Opened %s model %s!\n", name, model); fflush(stdout);
159
+
160
+
if (source->ShowGUI != NULL) source->ShowGUI();
201
161
202
-
CreateThread(NULL, 0, doGuiStuff, NULL, 0, NULL);
203
-
RETURN_OK();
162
+
// list attenuators
163
+
if (source->GetAttenuators != NULL) {
164
+
max_att_id = 0;
165
+
float att;
166
+
while (source->GetAttenuators(max_att_id++, &att) == 0) {};
167
+
}
168
+
169
+
errormsg_code = TSDR_OK;
170
+
}
171
+
else {
172
+
closeextio();
173
+
announceexception("The ExtIO driver failed to open a device. Make sure your device is plugged in and its drivers are installed correctly.", TSDR_CANNOT_OPEN_DEVICE);
174
+
}
204
175
}
205
176
else {
206
177
closeextio();
207
-
RETURN_EXCEPTION("The ExtIO driver failed to initialize a device. Make sure your device is plugged in and its drivers are installed correctly.", TSDR_CANNOT_OPEN_DEVICE);
178
+
announceexception("The ExtIO driver failed to initialize a device. Make sure your device is plugged in and its drivers are installed correctly.", TSDR_CANNOT_OPEN_DEVICE);
RETURN_EXCEPTION("The ExtIO dll is not compatible with the current machine or does not exist. Please check the filename is correct and the file is a valid ExtIO dll file and try again.", TSDR_PLUGIN_PARAMETERS_WRONG)
220
-
else
221
-
RETURN_EXCEPTION("The provided library is not a valid/compatible ExtIO dll. Please check the filename is correct and the file is a valid ExtIO dll file and try again.", TSDR_PLUGIN_PARAMETERS_WRONG);
190
+
announceexception("The ExtIO dll is not compatible with the current machine or does not exist. Please check the filename is correct and the file is a valid ExtIO dll file and try again.", TSDR_PLUGIN_PARAMETERS_WRONG);
191
+
else
192
+
announceexception("The provided library is not a valid/compatible ExtIO dll. Please check the filename is correct and the file is a valid ExtIO dll file and try again.", TSDR_PLUGIN_PARAMETERS_WRONG);
193
+
}
194
+
195
+
// notify we have finished loading
196
+
SetEvent(guisyncevent);
197
+
198
+
// do GUI handling
199
+
MSG msg;
200
+
BOOL bRet;
201
+
202
+
while ((bRet = GetMessage(&msg, NULL, 0, 0)) != 0)
0 commit comments