Skip to content

Contains a simple example on how to interact with PLUX's devices using the C# API

Notifications You must be signed in to change notification settings

pluxbiosignals/c-sharp-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build/Run Instructions

  1. Download and install Visual Studio (in the current example the Visual Studio 2022 version is the one used):

  2. Open a terminal window in the current root folder (...\c-sharp-sample):

    1. Use the + R shortcut
    2. Type cmd
    3. Write cd FOLDER_PATH, being FOLDER_PATH the absolute path to the c-sharp-sample root folder
  3. Execute the "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\Roslyn\csc.exe" -reference:XX-bit/plux.dll PROGRAM.cs -out:"XX-bit/Program.exe" command.

NOTE

  • The "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\Roslyn\csc.exe" path to the csc.exe executable may vary in accordance to the Visual Studio version being used;
  • The XX-bit folder can be 32-bit or 64-bit in accordance with the operating system architecture;
  • PROGRAM.cs should be replaced by the name of the program to be built. Taking into consideration the content of the root folder the Program.cs | Program_biosignalsPluxPro.cs | Program_fnirsExplorer.cs are three valid values.
  1. In the same terminal window, run the Program.exe file generated during the build by providing your Device MAC-Address as an input parameter and defining the log file: "XX-bit/Program.exe" BTH58:8E:81:A2:41:A6 > "log.txt"
  2. When the output is intended to be directly printed into the terminal, the > "log.txt" instructions can be removed from the command aforementioned in Step 4.

About

Contains a simple example on how to interact with PLUX's devices using the C# API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages