10-07-2018
05:46 AM
- last edited on
11-05-2024
09:21 AM
by
Content Cleaner
Hi,
I'm an fairly new electronics test developer, and I am working in a team of four other developers.
And I am loading up a previously developed test, a colleague made. The test has run fine, thousand times over.
And he has a message popup step, which has a string response, and then there is a post-expression, which fails the error check.
Post expression: RunState.TestSockets.MyIndex = Float64(Step.Result.Response)
Error in argument 1, 'Step.Result.Response', in call to the expression function 'Float64'.
Specified value does not have the expected type.
This value will cause a run-time error.
And so I am confused. The Float64 function is descriped to take any type, and convert it to Float64.
This problem has worked fine on my colleagues computer, but now it fails on mine. Why does Float64 apparently not actually take ANY type as input?
Any help, much apprecited!
NB: TestStand 2016, LabVIEW 2017
10-07-2018 07:04 AM
I used Val instead of Float64, and that seems to work. But this is still strange, because obviously it used to work with Float64, and I haven't changed anything. Even if NI had changed the behaviour of Float64, it doesn't make sense, because I think I am using the same NI versions as my colleague.