LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

is there a utility to convert vi files to text and back agin

I work somewhere you cant transfer binary files from one machine to another, only text files. Is there a utility somewhere that will convert the native binary vi file to text (like xml) or something and back again? Preferrably in perl or python or even c source code.

Thanks

0 Kudos
Message 1 of 22
(5,924 Views)

The trick I have done is just change the extension to a txt file.  The will fool most of the blockers (at least most that I have ran into).  And then obviously change the extension back to vi on the other end.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 22
(5,919 Views)

If changing the extension like Crosrulz said does not work, back in the 90's people used to post binaries (and porn) on Usenet by UUencoding them. 

 

UUencoding encodes binaries into ASCII 

 

https://en.wikipedia.org/wiki/Uuencoding

 

Granted all the good Usenet news readers had UUencode/decode built in, but I am sure there are still UU encoder/decoders out there.

========================
=== Engineer Ambiguously ===
========================
Message 3 of 22
(5,906 Views)

By text I meant something readable (like xml.) The native format is unreadable (lots of oddball characters.)

0 Kudos
Message 4 of 22
(5,857 Views)

You could simply write something yourself...


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 22
(5,836 Views)

Can you send pictures?  You could create Snippets (though that probably leaves off some "important stuff", but at least the code gets through) and it is a Viewable PNG (pretty harmless).  Alternatively, are Zip files allowed?

 

Bob Schor

0 Kudos
Message 6 of 22
(5,815 Views)

Be aware that if this facility is restricting file types as a measure of security - which is highly likely - if they catch you doing this, there could be consequences, even legal ones, as you are willingly circumventing their security measures.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 22
(5,799 Views)

@apchar_ wrote:

By text I meant something readable (like xml.) The native format is unreadable (lots of oddball characters.)


 

So you want to be able to read it like the source code of your VI? That's just not going to happen.

 

But here is what a UUencoded VI looks like.

 

begin 644 Arts_FastChgCuttoff.vi
M4E-20PT*``-,5DE.3$)65P``2X@```9K````(```2V@```"0%0"````````@
M````````!``#`#P````?0(`"``````$``0`"_____P```````````````++?
M.@211N9/D.[-%95LIU8````,````#`````/BI5OS*'S60;")75&X'CM1U!V,
MV8\`L@3I@`F8[/A"?@``$```````*CWI;``^\T^@Q_65S83+G@$```#_____
M````$+S*=F2'\9TJ%"5>M75F9X@````$``````````P``4Q624X```````,`
M```"``$``````$0```"<>)QC4&-@:F"XP`#$C$#,U,`"9C.!,0<2&Q\?I`>&
MT<U@^L#0P`7D,_U@`+/!-!`S?(!@B!D(/AQ?8```7P0SY````04```)H>)QC
M8&!@9D``5B#W#9`6!V(6(+(`TK(@B?]0`&3R,#`P[0'23`S8@1P#V$S6#"0Q
M1JCQ)5"Y"@B-8C>R'0SHXM@L@HHS0]P*<CL$.#`P^P`I22!=`J7G0.GC(-I^
MYTP0F`5Q&2,7T(@`J'Y)(&8'8@Z(FUDD@'(Q0`ST"]A,,&#!YAA&L%F<0'4@
MOP%I!BD@YD8R2P$HUP+$$Q@@[L)M%A/8+*`^Y@5`%B\02P,Q/Y)9&D"Y-4"\
M@P'B-]QF,8/-`NIA/@-DB0*Q#!"+0<P"B;,8`.5N`/$#!DCXX#8+ZC(DD^%\
M!SN(H/T/*'W0?9U(U4,/^X0DWTL?5_X!`$Q".4<````````,``%62413````
M```#```$%```"!AXG)6486@<113'9^\VS:99W&NYEJ")%]N-#7J<"0U5,(6[
M].H&.<D%:JK0I@6O1\2"*>SI$:)W[>;<3H:0*`@1"J;B![\(%OP@?M`+=]P6
MJHA:/Q6E"D*/*Q+\(/F@G._-3K)CK0$'YMYO_S/OS9N9=[/20<C+AY\Z<AML
M6"%D'RF3EU[-G3M-X)N(II'M]CST'Z!/P-PYF'`+[!WX5L"N0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S4>`.H?U(@O$/E("OA0,^HP:\)C@!K`AMM]`.2-H^
MH0U*6EUH[RF!]IU89U72KDO[Q#QQ9%)HR$^J`1^5>%[B2X+QG/8*[6O0-L(^
MWP3N5WV^!796\"]@(V)^$_@3H?^VS4%#5B76)-8ECD@<E;A'XEZ)^R4V)1Z4

 

I had to cut it short due to post size limitation of the board.

 

========================
=== Engineer Ambiguously ===
========================
Message 8 of 22
(5,784 Views)

If you want to turn a file into text, you can do that, if you want to turn a binary file into text, and have it make sense you aren't be able.  LabVIEW VIs contain lots of information that isn't translatable to text.  The VI file might contain the binary compiled code, how should that look as text?  How should the icon be represented as text?  That being said some have found very experimental functionality in LabVIEW today for writing a VI as XML.  It is so experimental I can clearly say it is not what you should use in this situation.

0 Kudos
Message 9 of 22
(5,755 Views)

I would also like to see a utility like this.  

 

The purpose would be to store VIs in a way that could be checked into source control, and meaningfully/easily checked for differences, etc.

 

I imagine something that basically just stores the location of every wire, every VI call, all controls and indicators, etc.  Storing it in an XML format file would be fine.

Then, when you want to work on the project, you check out the text files, run the utility to re-build all the VIs exactly as they were when checked in, and load the project in LabVIEW.

0 Kudos
Message 10 of 22
(2,708 Views)