02-05-2012 08:43 AM
Noticed a little bug in the class data member accessor creation.
If you have a carridge return in the variable title the vi it creates won't save.
Solved! Go to Solution.
02-05-2012 08:04 PM
02-06-2012 08:29 AM
I think you understand perfectly. FileNames can't have returns in them, but variables in labview can - so that if you use the data access templates to create your class accessors they seem to copy the returns across to the accessors names - but when you try to save them it fails. Rather annoying, and took me quite some time to work out what was going on - because labview wasn't giving any decent error messages - just refusing to save.
I was mostly just putting it up in case someone else has the same problems.
02-06-2012 08:34 AM
@wideofthemark wrote:
I think you understand perfectly. FileNames can't have returns in them, but variables in labview can - so that if you use the data access templates to create your class accessors they seem to copy the returns across to the accessors names - but when you try to save them it fails. Rather annoying, and took me quite some time to work out what was going on - because labview wasn't giving any decent error messages - just refusing to save.
I was mostly just putting it up in case someone else has the same problems.
Interesting corner case you found there. I never put CRs in my varialbe names so I nevr saw that issue.
Concidering the options, I suspect LV will have to add a special warning.
I wonder how trailing spaces in the names would behave?
Ben
02-07-2012 06:58 AM
Yes,
I guess that in general it's a bad idea to have carridge returns in variables - it certainly screws things up on FPGA vis as well - but sometimes I get carried away with trying to make the front panels look pretty!
02-07-2012 07:29 AM
02-07-2012 07:37 AM
Yeah, I (grudgingly) see what you mean - though short but descriptive is a bit of a dichotomy. Using captions is a way around it - but I guess that having two sets of names for things doubles the amount of things that need to be set. I guess that i like the idea of being clear that the name i see at the front is the name i see at the back - avoiding confusion is good!
02-07-2012 07:49 AM
02-07-2012 07:51 AM
Fair point.
02-07-2012 08:01 AM
I still sense a bug that should be CAR'd here. At the very least, LV should give a clear explanation why the creation of the accessor failed.
Ben