From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Teststand and Python step type

Teststand 2017 with Python 3.6.7 32-bit.

I wrote a simple motor control code in python. It runs well under python command line. Attached please see source code.

However, it won't run as expected in Teststand sequence with python step type.

Observation of the problems:

1. In python code, I set stepper motor speed 1000,000 lines/rev

  In Teststand sequence, I have to reduce the speed to 1000 lines/rev to achieve the same rotation speed???

2. In python code, I print something to file and I got the file (see attached file named "test.txt")

    However, Teststand sequence generates no files

 

Any comments?

 

 

Download All
0 Kudos
Message 1 of 2
(1,965 Views)

Charlie2016, 

 

If we take a step back and go through the tutorial below, are you able to get everything to work properly? 

 

http://www.ni.com/tutorial/8847/en/

0 Kudos
Message 2 of 2
(1,928 Views)