04-06-2020 04:30 PM
When you open the output file it is limiting the amount of text for the enum control to 255 characters. Anyone know a fix for this?
Thanks,
04-06-2020 06:03 PM
Can you back up and say why it is you want to do this?
Do you actually need this in the "Documentation" format, or are you trying to get a complete list of the enum options for other reasons?
The "Print" command in LabVIEW doesn't have many configurable options, so you're probably stuck with what it does, but maybe there's a workaround towards getting to your end goal?
04-07-2020 09:23 AM
Kyle,
Thanks for the response. So this issue was actually discovered by two colleagues. Basically one of them is writing LabVIEW GUIs and the other one will use the print VI to get all of the controls and indicators in a format that he uses Java to pull into his application. He's sort of recreating the GUI but in Java because that's what they use in his group. So any time the LabVIEW GUI changes he will run print for a bunch of VIs and controls and then his Java app sucks it all in.
I can write something to script it and get what we need out of it.... it is just a whole bunch of extra work that seems unnecessary due to this "feature".
I was hoping someone had a cfg setting or some other trick that could fix this.
04-07-2020 10:11 AM
@~jiggawax~ wrote:
Kyle,
Thanks for the response. So this issue was actually discovered by two colleagues. Basically one of them is writing LabVIEW GUIs and the other one will use the print VI to get all of the controls and indicators in a format that he uses Java to pull into his application. He's sort of recreating the GUI but in Java because that's what they use in his group. So any time the LabVIEW GUI changes he will run print for a bunch of VIs and controls and then his Java app sucks it all in.
I can write something to script it and get what we need out of it.... it is just a whole bunch of extra work that seems unnecessary due to this "feature".
I was hoping someone had a cfg setting or some other trick that could fix this.
You are going to have to admit that this is a real corner case. I've been here since 2009 and I haven't heard of anyone complaining about this issue before. The only thing I can think of is a VI with that typedef'd (I hope) enum that gets the strings (or strings and values) property of the control and writes it out to a delimited text file. Then every time the enum changes, run the VI. (If it's typedef'd, it will update.)
04-07-2020 10:26 AM
@billko wrote:You are going to have to admit that this is a real corner case.
Definitely a corner case. Not saying it isn't. However, I don't think it's wrong to ask if anyone knows of a "fix" for something that behaves unexpectedly. For instance- Why did NI choose to limit enum printing to 255 characters? In today's age of computing that seems like a very small number of characters to limit it to.
@billko wrote:
I've been here since 2009 and I haven't heard of anyone complaining about this issue before.
Also, not sure where "here" is, but just because you haven't heard of it doesn't mean it doesn't exist.
@billko wrote:
The only thing I can think of is a VI with that typedef'd (I hope) enum that gets the strings (or strings and values) property of the control and writes it out to a delimited text file. Then every time the enum changes, run the VI. (If it's typedef'd, it will update.)
Yes this is a simple solution that can be done as noted in my previous reply. However, if there's a cfg or simple fix to the existing tool I'd much prefer that.
Thanks for the response and help. I always enjoy finding your solutions on the forums.
04-07-2020 03:22 PM
I didn't mean to imply that it never happened, but that it seems exceedingly rare - a corner case.
"Here" meant that I was registered with this forum for ten years, and I don't recall seeing a post complaining about the 255 character limit before.
That aside, I wish I could have helped you. I think there might not be a solution that matches your requirement. 😞
04-07-2020 03:46 PM
Thanks for the response. I'm with you. I don't think it's possible. It never hurts to throw it out there though.
Appreciate it.
04-07-2020 10:23 PM
@~jiggawax~ wrote:
@billko wrote:You are going to have to admit that this is a real corner case.
Definitely a corner case. Not saying it isn't. However, I don't think it's wrong to ask if anyone knows of a "fix" for something that behaves unexpectedly. For instance- Why did NI choose to limit enum printing to 255 characters? In today's age of computing that seems like a very small number of characters to limit it to.
No idea as the cause of the bug, but 255 characters is the limit of Pascal strings, not sure why it is showing up here. Maybe there is some legacy code buried in there.
mcduff