Clio75 Posted September 8, 2009 Report Share Posted September 8, 2009 I'm using the property loader to store the position of UUT and instruments com ports. And most of this is working OK. One thing I found strange is that when I load a value "07" (zero seven) as a string this will end up as "7" in Teststand. this is I have tried 07 or "07" with the same result. Is there something I have overlooked in the Teststand ?? or is there something else I can try If not I have to look at checking the value in a statement. Thanx Quote Link to comment
Clio75 Posted September 8, 2009 Author Report Share Posted September 8, 2009 (edited) Hmmm Today it worked. So the solutions is to have the " " on. Without the " " the 0 will not be taken in the string. WHY ??????? OK then I wasted at least 2 hour yesterday on this But there is an other problem with strings that contain a 0 as the first char. When propagate them this 0 is gone. (soon my head hurts) is there any way I can avoid this ?? Please advice Edited September 8, 2009 by Clio75 Quote Link to comment
Clio75 Posted September 8, 2009 Author Report Share Posted September 8, 2009 Hmm I'm talking to my self in this topic. But for some reason it just starting to work. WHY I have done nothing but added some watches. first to see that it was wrong, and after to see that it was correct. If someone knows please leave a remark. 1 Quote Link to comment
PaulG. Posted September 8, 2009 Report Share Posted September 8, 2009 I'm sorry I can't be any help. But thanks for the laughs. Quote Link to comment
crelf Posted September 8, 2009 Report Share Posted September 8, 2009 Can you upload an example sequence, example property file, and maybe explain your property loader setting a little more? Quote Link to comment
huotom Posted September 8, 2009 Report Share Posted September 8, 2009 The number format as Hex may be helpfulm, I think. If it is a string, I'm sorry that I don't know why. Tom. Quote Link to comment
Clio75 Posted September 9, 2009 Author Report Share Posted September 9, 2009 Hello, When I started this testing seq it was removing the "0" first in the string. with or without the " " But Now I can't reproducer it. But if anyone have any idea on this leave a remark. The number format as Hex may be helpfulm, I think. If it is a string, I'm sorry that I don't know why. I try to handle this as a ASCII string, not binary or hex. But maybe Teststand do Thanx String.zip Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.