• 1
    Step 1

    For this tutorial you will need :

    • Biograph infinity
    • Developer tools
    • Connection instrument SDK ( not provided in developer tools, you need to specifically ask it to Thought Technology)

    You steps that will have to be done :

    • First you need to create an application to receive the data and give the link to biograph
    • Then you need to add a channel with the devices you want to read from the flexcomp
    • Finaly you need to add a screen to display this channel and link it to connection instrument

    In this tutorial we will send a GSR sensor and a BVP sensor value to the application

  • 2
    Step 2

    Create an application

    You can modify the example application given with the connection instrument SDK according to your needs.

    Personally I couldn’t make the sample TestClient work on my windows computer. I have :

    Error MSB6006 “cmd.exe” exited with code2.

    If you can run it then you can skip the following .

    The solution I came up with is to create a new application and to copy the data:

    • create a new Visual C++ Win32 console application on visual studio 2015
    • Reproduce the file hierarchy of the TestClient app ( all .cpp in sources Files; all .h in Header Files)
    • Right click on the name of your project and choose Properties
    • Choose All configurations and use of MFC select “Use MFC in a Shared DLL

    • In Linker -> System -> subsystem choose Windows

    • Create a folder lib in your project and copy past it from the TestClient application: ConnectionClient.dll;ConnectionClient.h ; ConnectionClient.lib
    • Copy the res folder from TestClient under the inner folder of your project. Copy ConnectionClient.dll in the inner folder of your project. Your project should look like this:

    • In TestClientDlg.cpp change
    #include "../../ConnectionTools/ConnectionClient.h"

    to

    #include "../lib/ConnectionClient.h"
    and
    #ifndef NDEBUG
    #pragma comment( lib, "../../ConnectionTools/Debug/ConnectionClientD.lib" )
    #else
    #pragma comment( lib, "../../ConnectionTools/Release/ConnectionClient.lib" )
    #endif
    
    to
    #ifndef NDEBUG
    #pragma comment( lib, "../lib/ConnectionClient.lib" )
    #else
    #pragma comment( lib, "../lib/ConnectionClient.lib" )
    #endif
    
    • In stdafx.h add :
    #define _WINSOCK_DEPRECATED_NO_WARNINGS

    Normaly at this point you should be able to run the application without error from the compiler.

    You can try that It is working with the provided server simulator :

    • Run ServerSimulator.exe
    • Choose Review session
    • Click Listen for calls
    • Run your application

    Numbers should be changing.

    Once the application created, you need to link it to biograph:

    • First go to C:\ProgramData\Thought Technology\Infiniti\Externals

    And create a file : name_of_your_app.xml

    • Then go to the connection instrument folder of your SDK and go to Utilities.

    Open AddPath.exe , browse to your application.

    Leave the second link unchanged ( it should link to the previously created file)

  • 3
    Step 3

    Add a channel

    You can also use pre-set channels if you want.

    Now in order to get the data from the flexcomp we need to inform biograph of what kind of data we are going to read.

    • Open channel editor
    • Add channel set

    • Choose Wizard Mode and click OK
    • Choose you Encoder Type and protocol type (personally I have a FlexComp Infiniti but only ProComp option works for me )Give a name to your channel in “Type Channel Set Description”

    Give a name to your channel in “Type Channel Set Description”

    • Then click Next two time.

    You must be in “Physical Channel Description” screen


    Set a channel for each sensor you want to read from. ( the input name correspond to the name of the input in the flexcomp device ) :

    • First click on “input enabled”
    • Then choose the type of sensor you want to read

    Then click on the arrow to set another channel/input/sensor/letter

    You don’t have to set all the channels, only the number of sensor you have.

    In our case we have only two sensor, so we will set Input A to SC-Pro/Flex and Input B to HR/BVP-Pro/Flex

    Then click next

    • Click next until you reach the Virtual channel generation preferencesChoose “generate virtual channels automatically”

    Choose “generate virtual channels automatically”

    • Click use existing preferences
    • Click finish and save your channel

    Your new channel should now appear in the list .

    Exit Channel editor