Skip to content

Commit f55f92c

Browse files
authored
Merge pull request #20 from nlazorch/main
Bug fix: All terminals always set to default regardless of configuration choice.
2 parents a62f616 + cd1f2ee commit f55f92c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Source/NIDAQComponents.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,19 @@ void NIDAQmx::run()
418418
switch (ai[i]->getSourceType()) {
419419
case SOURCE_TYPE::RSE:
420420
termConfig = DAQmx_Val_RSE;
421+
break;
421422
case SOURCE_TYPE::NRSE:
422423
termConfig = DAQmx_Val_NRSE;
424+
break;
423425
case SOURCE_TYPE::DIFF:
424426
termConfig = DAQmx_Val_Diff;
427+
break;
425428
case SOURCE_TYPE::PSEUDO_DIFF:
426429
termConfig = DAQmx_Val_PseudoDiff;
430+
break;
427431
default:
428432
termConfig = DAQmx_Val_Cfg_Default;
433+
break;
429434
}
430435

431436
SettingsRange voltageRange = device->voltageRanges[voltageRangeIndex];

0 commit comments

Comments
 (0)