NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Having trouble with the str()function

I'm having trouble with the str() function. The first parameter is the value and I want to set the format but I keep getting an error. I do it like this. str(locals.array[8]-locals.array[9],"%$.6f"). I get a runtime error, so I tried to remove the "" but now the I get a syntax error.
0 Kudos
Message 1 of 3
(3,153 Views)
Hi,

Can not see a problem with your statement.
I have attached a TS2.0.1 example using you expression.

Regards
Ray Farmer
Regards
Ray Farmer
Message 2 of 3
(3,153 Views)
Thanks Ray. You're right I didn't have a problem with the statement I sent to the forum. I had simplified it. In the longer version I was trying to do a multiply after converting to string. DUH. Thanks again.
0 Kudos
Message 3 of 3
(3,153 Views)