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);
155
200
}
156
201
157
-
if (source->OpenHW()) {
158
-
//printf("Opened %s model %s!\n", name, model); fflush(stdout);
159
-
160
-
printf("Showing GUI :) \n"); fflush(stdout);
161
-
if (source->ShowGUI != NULL) source->ShowGUI();
162
-
printf("Yey! \n"); fflush(stdout);
163
-
164
-
// list attenuators
165
-
if (source->GetAttenuators != NULL) {
166
-
max_att_id = 0;
167
-
float att;
168
-
while (source->GetAttenuators(max_att_id++, &att) == 0) {};
169
-
}
170
-
171
-
RETURN_OK();
172
-
}
173
-
else {
174
-
closeextio();
175
-
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);
0 commit comments