Browse Source

Fix DATAQ driver string.

Neal Wilson 11 years ago
parent
commit
cb23d7d553
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/dataqsdk.w

+ 3
- 2
src/dataqsdk.w View File

291
 	if(!driver->load())
291
 	if(!driver->load())
292
 	{
292
 	{
293
 		error = 1; // Failed to load driver.
293
 		error = 1; // Failed to load driver.
294
+		qDebug() << "Failed to load driver: " << device;
294
 		return;
295
 		return;
295
 	}
296
 	}
296
 	di_open = (FPDIOPEN)driver->resolve("di_open");
297
 	di_open = (FPDIOPEN)driver->resolve("di_open");
448
 		portString.chop(1);
449
 		portString.chop(1);
449
 		if(portString.toInt() < 10)
450
 		if(portString.toInt() < 10)
450
 		{
451
 		{
451
-			imp->device = QString("DI10%1INT.DLL").arg(portString);
452
+			imp->device = QString("DI10%1NT.DLL").arg(portString);
452
 		}
453
 		}
453
 		else
454
 		else
454
 		{
455
 		{
455
-			imp->device = QString("DI1%1INT.DLL").arg(portString);
456
+			imp->device = QString("DI1%1NT.DLL").arg(portString);
456
 		}
457
 		}
457
 		imp->deviceNumber = 0x12C02D00;
458
 		imp->deviceNumber = 0x12C02D00;
458
 		imp->deviceNumber += portString.toInt();
459
 		imp->deviceNumber += portString.toInt();

Loading…
Cancel
Save