NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems passing a variable from a python code into my teststand

Solved!
Go to solution

Hey everyone,

 

i have some problems with passing a variable from a python code into my ni teststand. it always says "-17311; Could not accept the parameters passed in."

 

I think all my variables have the correct types and settings:

step settings.png

subsequence.png

Could it be that there is something wrong with my python code?:

python code.png

 

I tried the whole thing exactly in the same way but just with a way "easier" python code and it worked perfectly fine (below), so i assume the error is because of the python code.

working python code.png

it would be pretty nice if someone could help me with this! Thank you

0 Kudos
Message 1 of 3
(848 Views)

Hey Tobi,

 

don't know much about Python.... your simple code returns data with no datatype, the more complex one returns data which has been cast to a string

0 Kudos
Message 2 of 3
(837 Views)
Solution
Accepted by topic author to0bi

I was able to solve the problem. It was due to unauthorized characters, such as {}

0 Kudos
Message 3 of 3
(817 Views)