Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I automate creating a simulated device?

Solved!
Go to solution

thanx brad, typical mistake...

 

for anyone with the same problem, here is the solution:

#include "nisyscfg.h"
NISysCfgEnumExpertHandle expertEnumHandle; NISysCfgSessionHandle sessionHandle; NISysCfgInitializeSession(NULLNULLNULLNISysCfgLocaleGermanNISysCfgBoolFalse, 0, &expertEnumHandle, &sessionHandle);

wxString
 cfgFilePath = wxGetCwd() + _("\\configData.nce");
char cstring[1024];
strncpy(cstring, (const char*)cfgFilePath.mb_str(wxConvUTF8), 1023);

char *details[500];
NISysCfgStatus stat = NISysCfgImportConfiguration(sessionHandle, cstring, NULL
NISysCfgImportMode::NISysCfgImportMergeItems, details);
NISysCfgFreeDetailedString(*details);
0 Kudos
Message 11 of 12
(729 Views)

it would be great if the .nce file was not needed. maybe sometime in the future.

0 Kudos
Message 12 of 12
(727 Views)