06-22-2009 12:27 PM
We have software that translates our LV program to another language. Part of that software package reads RTM files, decodes them, replaces text, and resaves them. That code is broken for menus that are saved in LV8+, however. What is the new data structure?
The simple attached zip file has vi's which are not ours but serve to illustrate the point. If it's run on an older RTM file, it correctly outputs and XML version of it, on newer RTM files it just throws an error.
-- This is the second time I posted this. I was curious what the Solution? icon did on somebody elses post and I apparently marked the whole thread as solved (there should really be an undo on that feature btw --
06-22-2009 12:32 PM
There is an undo when you mark the solution as solved - click on Options.
Since NI has never released the format of any of it's files, I'm not sure what you expect to get as an answer.
06-23-2009 12:54 PM
Hi Thomas,
What error are you getting when running the program? I was actually able to run it without errors in LV 8.6.
There are ways to programmatically read and customize RTM files in LabVIEW. I hope that the following links will help:
http://zone.ni.com/reference/en-XX/help/371361B-01/lvhowto/customizing_shortcut_menus_programm/
http://digital.ni.com/public.nsf/allkb/17803AA31C8C07C986256CFD0080D609?OpenDocument
Cheers,
06-23-2009 01:34 PM
If you use the program to parse a LV 8+ .rtm file, it dosen't work. It fails trying to unflatten the byte stream from disk:
Error code 116 LabVIEW: Unflatten or byte stream read operation failed due to corrupt, unexpected, or truncated data.
Attached is an example of a RTM file which fails
06-24-2009 05:21 PM
Hi Thomas,
As I don't have the program that you are running, it is difficult for me reproduce the error and help you troubleshoot. I actually don't have the format of our .rtm files either- so unfortunately my only suggestions are either trial and error, or to follow the advice in this post.
Regards,
06-25-2009 08:10 AM
The LV program to parse .RTM files is in my first post. The later post merely had a .RTM file created by LV 8.6 which the program generates an error on.
I guess I'm confused as to how a program was written to parse .RTM files if the data structure is not published. Did it used to be published back in LV7 but no longer is as of LV8?
06-26-2009 07:13 PM