Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 1.86 KB

README.md

File metadata and controls

18 lines (16 loc) · 1.86 KB

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.