Skip to content

Commit

Permalink
Merge pull request #84 from jancumps/develop-set-7
Browse files Browse the repository at this point in the history
merge Develop set 7
  • Loading branch information
jancumps authored Oct 27, 2023
2 parents 240e997 + 0a047a7 commit c5fa279
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
9 changes: 0 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ add_executable(pico_scpi_usbtmc_labtool
${CMAKE_CURRENT_SOURCE_DIR}/source/i2c/i2c_utils.c
${CMAKE_CURRENT_SOURCE_DIR}/source/adc16/adc16_utils.c
${CMAKE_CURRENT_SOURCE_DIR}/source/pwm/pwm_utils.c
$ENV{SCPI_LIB_PATH}/src/parser.c
$ENV{SCPI_LIB_PATH}/src/lexer.c
$ENV{SCPI_LIB_PATH}/src/error.c
$ENV{SCPI_LIB_PATH}/src/ieee488.c
$ENV{SCPI_LIB_PATH}/src/minimal.c
$ENV{SCPI_LIB_PATH}/src/utils.c
$ENV{SCPI_LIB_PATH}/src/units.c
$ENV{SCPI_LIB_PATH}/src/fifo.c
source/adc16/adc16_utils.c source/adc16/adc16_utils.h)

target_include_directories(pico_scpi_usbtmc_labtool PRIVATE
Expand All @@ -67,7 +59,6 @@ target_include_directories(pico_scpi_usbtmc_labtool PRIVATE
${CMAKE_CURRENT_LIST_DIR}/source/i2c
${CMAKE_CURRENT_LIST_DIR}/source/adc16
${CMAKE_CURRENT_LIST_DIR}/source/pwm
$ENV{SCPI_LIB_PATH}/inc
)

target_link_libraries(pico_scpi_usbtmc_labtool PUBLIC pico_stdlib
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ LabVIEW compatible instrument on a Raspberry Pico
Prerequisites:
Toolchain (and IDE) that can build Pico projects with CMake
Pico C SDK 1.5
Jan Breuer [SCPI library](https://github.com/j123b567/scpi-parser)

Clone the repository with its subrepositories, to get the application and the Pico SCPI USBTMC_LabLib (PSL) sources:
Clone the repository with its subrepositories, to get the application, the Pico SCPI USBTMC_LabLib (PSL) sources, and the Jan Breuer SCPI library:
git clone https://github.com/jancumps/pico_scpi_usbtmc_labtool.git --recurse-submodules
_If you download the archive from github instead, then also download [Pico SCPI USBTMC_LabLib (PSL)](https://github.com/jancumps/pico_scpi_usbtmc_lablib). Extract its contents into the ./pico_scpi_isbtmc_lablib folder._


Add these two variables to your environment:
Add this variable to your environment:

PICO_SDK_PATH (e.g.: C:/Users/jancu/Documents/Pico/pico-sdk)
SCPI_LIB_PATH (e.g.: C:/Users/jancu/Documents/elektronica/scpi/scpi-parser/libscpi)

If you use VSCode, you can define them via Preferences -> User -> Extensions -> CMake Tools -> CMake: Configure Environment.

Expand Down
2 changes: 1 addition & 1 deletion pico_scpi_usbtmc_lablib

0 comments on commit c5fa279

Please sign in to comment.