nidigital_spi
example returns errors when the service and TestStand sequence are in different directories
#259
Labels
bug
Something isn't working
Bug Report
The
nidigital_spi
example resolves file paths differently in the service vs. the TestStand code module:If you statically register the example by copying it from the
measurementlink-python
Git repo toC:\ProgramData\National Instruments\MeasurementLink\Services\nidigital_spi
, then the TestStand sequence inC:\ProgramData
works but the TestStand sequence in themeasurementlink-python
Git repo fails.Repro or Code Sample
Run
python scripts\install_examples.py
.Cd to
C:\dev\measurementlink-python\examples\nidigital_spi
and runpoetry install
to create a virtualenv for the TestStand code module.Open
C:\dev\measurementlink-python\examples\nidigital_spi\NIDigitalSPI.seq
in TestStand and run it.Expected Behavior
The sequence passes.
Current Behavior
The sequence fails with this error:
This is because the TestStand code module loaded
C:\dev\measurementlink-python\examples\nidigital_spi\PinLevels.digilevels
, notC:\ProgramData\National Instruments\MeasurementLink\Services\nidigital_spi\PinLevels.digilevels
.Your Environment
ni-measurementlink-service
version: 1.0.1AB#2381210
The text was updated successfully, but these errors were encountered: