LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the new data structure for .RTM files in LV8?

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 --

0 Kudos
Message 1 of 7
(3,378 Views)

duplicate post

 

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.

0 Kudos
Message 2 of 7
(3,375 Views)

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, 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 3 of 7
(3,351 Views)

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

0 Kudos
Message 4 of 7
(3,344 Views)

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, 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 5 of 7
(3,326 Views)

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?

0 Kudos
Message 6 of 7
(3,312 Views)
Yeah, I don't think that's a publicly available format. The workaround offered by smercurio in the other thread is likely your best bet.
Jeff | LabVIEW Software Engineer
0 Kudos
Message 7 of 7
(3,296 Views)