Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
daq-and-datalogging:documents:code-blocks-linux-setup [2023/06/13 15:56] – created Scandiwebdaq-and-datalogging:documents:code-blocks-linux-setup [2023/07/28 00:57] (current) – Arthur Brown
Line 1: Line 1:
-====== How to setup Code::Blocks IDE to run Linux Examples ======+====== How to Set Up Code::Blocks IDE to run Linux Examples ======
  
 The following are suggestions to install and configure Code::Blocks to easily load and run the Linux and/or DaqHat examples. The following are suggestions to install and configure Code::Blocks to easily load and run the Linux and/or DaqHat examples.
Line 23: Line 23:
 Modify Code::Blocks Link Libraries to add the paths shown below. If you are on a Raspberry PI you may have both paths defined. If on a Ubuntu PC, you will have only /usr/local/libuldaq.so Modify Code::Blocks Link Libraries to add the paths shown below. If you are on a Raspberry PI you may have both paths defined. If on a Ubuntu PC, you will have only /usr/local/libuldaq.so
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/CodeBlocksLinker.png?818x816}}+{{https://files.digilent.com/reference-images/CodeBlocksLinker.png?818x816}}
  
 Modify the compiler search directories adding the following: Modify the compiler search directories adding the following:
Line 32: Line 32:
 /home/pi/kissfft for the FFT module /home/pi/kissfft for the FFT module
  
-CodeBlocksContinousScanningCodeBlocksContinousScanning{{https://files.digilent.com/resources/measurement-computing/Reference Images/CodeBlocksSearchDirectories.png?818x816}}+CodeBlocksContinousScanningCodeBlocksContinousScanning{{https://files.digilent.com/reference-images/CodeBlocksSearchDirectories.png?818x816}}
  
 close the dialog with  OK close the dialog with  OK
Line 38: Line 38:
 Next load an example. Choose File-->Open and browsing to /daqhats/examples/c/mcc118/continuous_scan/continuous_scan.c or the example you wish to run. Choose the menu item Build-->Build and run. This should launch a terminal with instructions Next load an example. Choose File-->Open and browsing to /daqhats/examples/c/mcc118/continuous_scan/continuous_scan.c or the example you wish to run. Choose the menu item Build-->Build and run. This should launch a terminal with instructions
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/CodeBlocksContinousScanning.png?651x685}}+{{https://files.digilent.com/reference-images/CodeBlocksContinousScanning.png?651x685}}
  
 To run the Logger program, first visit the following page: To run the Logger program, first visit the following page:
Line 51: Line 51:
 After installing the dependencies, browse to the MCC118 Logger folder and open the project file named logger.cbp. Start the program using the menu item Build-->Build and run. After installing the dependencies, browse to the MCC118 Logger folder and open the project file named logger.cbp. Start the program using the menu item Build-->Build and run.
  
-{{https://files.digilent.com/resources/measurement-computing/Reference Images/CodeBlocksLoggerProgram.png?1035x883}}+{{https://files.digilent.com/reference-images/CodeBlocksLoggerProgram.png?1035x883}}