TaskController 2.2.23
A light-weight UI that serves as the task/parameter front-end.
Loading...
Searching...
No Matches
Task Controller

Compiled c application that can be run on a light-weight device to serve as front-end to NHP task/parameters etc.

(Return)

Figure 1: NHP wrist center-out network schematic.

Compilation

To compile, use gcc:

cd %NML_NHP_C_PROJECTS%/TaskController && gcc src/controller.c src/res/resource.o -o bin/NHP_Task_Controller.exe -Wno-discarded-qualifiers -Iinclude -Llib -lNetwork -lws2_32 -lTaskParameters -lLogUtilities -lDataStructures -lgdi32 -lComctl32 -lMathUtilities -lCalibrationUtilities && dot -Tpng controller_server_sockets.dot -o "%NML_DOXY_DOCS_DIRECTORY%/TaskController/html/controller_server_sockets.png" && doxyincrement.bat && doxygen > %NML_NHP_C_PROJECTS%/doxygen_output.log

To suppress the console, add -mwindows at the end.

If you would like to update the icon you must change the resource file. To do this, first make sure you have the correct icon and other resource identifiers in your src/resource.rc file. Open it with a text editor. Among the initial block of lines, there should include the following:

#include "enum.h"
IDI_RSS ICON "res/rss.ico"
IDI_TARGET ICON "res/target.ico"

This gives the resource ID number, the type of the resource, and the filename, respectively.

There is a final line with a special directive:

MAINICON ICON "res/rss.ico"

The MAINICON directive is a special directive, telling the compiler to use this icon on the compiled executable.

You can update to a new icon file in this way. To do so, you will need to update the macro (e.g. #define IDI_RSS) list in src/enum.h so that it has an ID associated to each new icon.

Once you have finished modifying res/res.rc file you would open a terminal in the res sub-folder and use the following commands:

windres src/resource.rc -o src/res/resource.o -i IDI_RSS && "C:/Program Files (x86)/Windows Kits/10/bin/10.0.18362.0/x64/rc.exe" /fo src/res/resource.res src/resource.rc

This will make sure you have the resources associated in a way that they can be incorporated by the compiler, given the linking to src/res/resource.o in the gcc compiler call shown above.