C# and vb example programs, Default installation path, Building the daqflex example programs – Measurement Computing DAQFlex User Guide User Manual
Page 96: Windows 8/7/vista/xp, Windows ce, Mac os x, Linux, C# and vb .net example programs, Chapter 6

96
Chapter 6
C# and VB Example Programs
Complete C# and VB example programs are installed with DAQFlex that demonstrate how to configure
DAQFlex-supported devices and perform DAQ operations with the DAQFlex Software API.
Default installation path
On Windows, the example programs are installed by default to CSharp and VB subfolders:
o Windows 8, Windows 7, and Windows Vista —
C:\Users\Public Documents\Measurement
Computing\DAQFlex For Windows\Examples
.
o Windows XP —
C:\Program Files\Measurement Computing\DAQFlex For
Windows\Examples
.
o Windows CE —
C:\Program Files\Measurement Computing\DAQFlex For Windows
CE\Examples
.
On Mac OS X, example programs are installed to
Users/Shared/Measurement
Computing/DAQFlex/Examples
.
On Linux, C# example programs are extracted to
DAQFlex/Examples/CSharp
.
Building the DAQFlex example programs
Windows 8/7/Vista/XP
Complete the following steps to run the DAQFlex example programs:
1.
Go to
Measurement Computing»DAQFlex»Examples»ExampleBuilder
.
2.
Run the ExampleBuilder script to build all CSharp and Visual Basic examples.
3.
Go to
Measurement Computing»DAQFlex»Examples»Go To Examples
.
The example program directory opens. The example programs are installed by default to CSharp
and VB subfolders.
4.
Double-click on a *.csproj or *.vbproj file to run the DAQFlex example program.
Windows CE
Complete the following steps to run the DAQFlex example programs:
1.
Go to
Measurement Computing»DAQFlex for Windows CE»Examples»Go to Examples
.
The example program directory opens. The example programs are installed by default to CSharp
and VB subfolders.
2.
Double-click on a *.csproj or *.vbproj file to run the DAQFlex example program.
Mac OS X
Complete the following steps to run the DAQFlex example programs:
1.
Go to
Users/Shared/Measurement Computing/DAQFlex/Examples
.
2.
Run the ExampleBuilder script to build all CSharp and Visual Basic examples.
3.
From a terminal window, go to either
CSharp/
or
VB/
, and run the following command:
o mono
Linux
You run the DAQFlex C# example programs using MonoDevelop or the Mono command line interpreter.
Do the following:
1.
In a terminal window, set the current directory to
DAQFlex/Examples
.
2.
Run the following commands as a root user:
o make
o make install
3.
Exit the root user shell.