0% found this document useful (0 votes)
12 views3 pages

FAQ - Export or Import Board Configuration in DAQNavi 4

Uploaded by

zaytsevas81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views3 pages

FAQ - Export or Import Board Configuration in DAQNavi 4

Uploaded by

zaytsevas81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Advantech AE Technical Share Document

Date 2016/8/4 SR# 1-2522883081


Category ■ FAQ □ SOP Related OS Windows
Abstract Export or Import Board Configuration in Advantech DAQNavi 4
Keyword DAQNavi 4.0, Profile, Save Configuration, Load Configuration
PCI-1706, PCI-1710U/HGU/UL, PCI-1711U/UL, PCI-1712, PCI-1712L, PCI-1713U,
PCI-1714U/UL, PCI-1715U, PCI-1716, PCI-1718HDU/GU, PCI-1720U, PCI-1721, PCI-1723,
PCI-1724U, PCI-1727U, PCI-1730U,PCI-1733, PCI-1734, PCI-1735U, PCI-1737U, PCI-1739U,
PCI-1741U, PCI-1742U, PCI-1747U, PCI-1750, PCI-1751, PCI-1752U, PCI-1753, PCI-1754,
PCI-1756, PCI-1758UDI, PCI-1758UDIO, PCI-1758UDO, PCI-1760U, PCI-1761, PCI-1762,
Related Product
PCI-1780U, PCI-1784U, PCIE-1730, PCIE-1751, PCIE-1752, PCIE-1753, PCIE-1754,
PCIE-1756, PCIE-1760, PCIE-1802, PCIE-1810, PCIE-1816/H, PCIE-1840, PCM-3718H,
PCM-3718HO, PCM-3724, PCM-3725, PCM-3730, PCM-3730I, PCM-3753I, PCM-3761I,
PCM-3810I, PCM-3813I, PCM-27D24DI, USB-4702, USB-4704, USB-4711A, USB-4716,
USB-4718, USB-4750, USB-4751, USB-4751L, USB-4761

DAQNavi 4.0 provides an easy way to configure DAQ devices. Different from the previous version that the
configuration should be done in either Navigator then saved or in the application program, the configuration
can be exported or imported easily through API and Navigator.

 Brief Solution - Step by Step:

1. Save the configuration


The configuration can be exported to a XML file that saves all the information of the device. This is the ONLY
way to save the configuration.

Three steps to configure and export the configuration:

Page 1
Step1. Choose the device and select “Profile” to set the configuration.
Step2. Set up the configuration.
Step3. If you select “Save”, the change would be saved to
“C:\Advantech\DAQNavi\NavigatorPlugin\Explorer\Profile” which is the default directory that the
configuration is saved to or loaded from. If you click on “Save As”, a pop-up dialog would ask you to choose the
directory to save the XML file to then the file would be exported to the directory you select.

2. Load the configuration and revise


Navigator would load the profile (configuration) from default directory as every time it’s opened. If you want
to revise a pre-configured profile, you can load (import) the profile into Navigator then make changes and
save.

Step1. Choose the device and select “Profile” to set the configuration.
Step2. Click on “Import profile” then a load-file dialog would jump up to let you select from the corresponded
XML file.
Step3. Change to desired property.
Step4. Save a new one or save to the original one.

3. Load a configuration in user program


DAQNavi SDK provides APIs to load profile in user program. Here are the prototypes and usages of the
functions in different programming languages:

Visual Basic (Declaration)


Public Function LoadProfile(ByVal fileName As String) As ErrorCode
Visual Basic (Usage)
Dim instance As DaqCtrlBase
Dim myProfile As String = "c:\my_demo_profile"
instance.LoadProfile(myProfile)

Page 2
C#
public ErrorCode LoadProfile(string fileName)
Java
public ErrorCode LoadProfile(String fileName);
C++
public:
ErrorCode LoadProfile(wchar_t const *fileName);

The ErrorCode would be returned as the file doesn’t exist under the entered file path. Here’s the possible
return error codes and the possible reason:

Error Code Description


Success The operation is completed successfully.
ErrorFuncNotInited No device is selected.
ErrorPrivilegeNotHeld The device is opened with 'ModeRead' and cannot execute this operation.
ErrorFuncBusy Some function is already running, so this method can't be executed.
ErrorPropAllFailed All properties of a property set are failed to be written into device.
WarningPropPartialFailed Some properties of a property set are failed to be written into device.
WarningProfileNotValid The specified profile is not valid. The device will be initialized with the default
value stored in DB.

 Reference:

Page 3

You might also like