LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView VI in text format

Is there a way to visualize a VI in ASCII text?

 

0 Kudos
Message 1 of 22
(7,057 Views)

Nope (at least not yet).

 

You/someone else could write your own description/pseudo code, but there is no quick way to just open it up and see it as text.

0 Kudos
Message 2 of 22
(7,055 Views)

You mean something like this:

 

.DDDDDDDDDDDDD  .            .                              
.Z............ ............................... .... .... ...
 Z,=.~7Z=..$:.  ..       .   .          ....................
 ZZZZZZZZZZ...ZZZZZMMMMMMMMMMMMMMMMMMMMMM...................
 Z..Z.,8~~~...ZZ,Z..                    M ..      .      .. 
 Z..Z.,ZI~~...ZZ.Z..        .           M...   .  .      .. 
 ZZZZZZZZZZ...ZZZZZ.   .              . M...................
         .  . .... .   .         .    . M.......,........ ..
 . .    ..  ...... .   .                M.......D8$:,:.7. ..
              .... .   .::=M  . . ..    M.......NMMMMMMNM,..
             ..... . ..,NN,MM  .  .  . I:,......:++?I+I.....
         .    .... .  .,M,,M,.         +,,......:7+I7?7.....
       ...    .... .    MM,MM.     .    M.......II7IIIIIII..
 .      ..  ...... .    .... .          M...................
        ..  .....OZZZZ..                M...................
        ... .....Z.:.,..................M...................
            .....Z.~.,..                M...................
        ... .....8ZZZZ................ . ...................
        ..  ..                        M ....................
        ..  ...DDDDDDDDDDDDDDDDDDDDDDDDDDD..................
            ...... .                    ....................
                                             GlassGiant.com

 

(A for-loop to generate an array of random numbers in glorious ASCII art).

 

You did say "visualize in ASCII text".

Message 3 of 22
(7,050 Views)

Absolutely! It is actually very easy to do.

 

Create a VI and save it to disk. Change the file extension from ".vi" to ".txt". (You might have to adjust your settings to show file extensions for known file types)

 

You will get the following warning.

 

rename.PNG

 

Click on 'Yes'. Now you can double click on the file and open it up in Notepad in order to visualize the file in it's ASCII representation.

 

As you can see the VI simply gets saved to some programming language called Perl.

=====================
LabVIEW 2012


Message 4 of 22
(7,040 Views)

@smercurio_fc wrote:

You mean something like this:

 

.DDDDDDDDDDDDD  .            .                              
.Z............ ............................... .... .... ...
 Z,=.~7Z=..$:.  ..       .   .          ....................
 ZZZZZZZZZZ...ZZZZZMMMMMMMMMMMMMMMMMMMMMM...................
 Z..Z.,8~~~...ZZ,Z..                    M ..      .      .. 
 Z..Z.,ZI~~...ZZ.Z..        .           M...   .  .      .. 
 ZZZZZZZZZZ...ZZZZZ.   .              . M...................
         .  . .... .   .         .    . M.......,........ ..
 . .    ..  ...... .   .                M.......D8$:,:.7. ..
              .... .   .::=M  . . ..    M.......NMMMMMMNM,..
             ..... . ..,NN,MM  .  .  . I:,......:++?I+I.....
         .    .... .  .,M,,M,.         +,,......:7+I7?7.....
       ...    .... .    MM,MM.     .    M.......II7IIIIIII..
 .      ..  ...... .    .... .          M...................
        ..  .....OZZZZ..                M...................
        ... .....Z.:.,..................M...................
            .....Z.~.,..                M...................
        ... .....8ZZZZ................ . ...................
        ..  ..                        M ....................
        ..  ...DDDDDDDDDDDDDDDDDDDDDDDDDDD..................
            ...... .                    ....................
                                             GlassGiant.com

 

(A for-loop to generate an array of random numbers in glorious ASCII art).

 

You did say "visualize in ASCII text".


Watch out for the performance of that VI.  It looks like you have a few coercion dots in there.  Smiley Wink

Message 5 of 22
(7,023 Views)

@Ravens Fan wrote:

Watch out for the performance of that VI.  It looks like you have a few coercion dots in there.  Smiley Wink


Darn it, I knew I should have gone for the color ASCII art. That's the bomb!

Message 6 of 22
(7,017 Views)

You could use scripting to generate a text description from a VI, but creating the code wouldn't be simple and I can't imagine why anyone would want to do it.

0 Kudos
Message 7 of 22
(6,992 Views)

Tools>Advanced>Export Strings

 


"Should be" isn't "Is" -Jay
Message 8 of 22
(6,919 Views)

How about the LabVIEW C Code Generator Toolkit? It's ANSI ASCII!

 

http://sine.ni.com/nips/cds/view/p/lang/en/nid/209015

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 9 of 22
(6,906 Views)

I imagine that if I could save a VI as an XML file that contained every detail of every component on the screen (the location of every wire, every corner, every icon, etc., etc.) then I could use the sort of source control that's used by programmers in text-based languages to check in changes, merge changes, etc. 

 

For example, if I go in and make changes to the stuff in a certain case structure, for example, and at the same time another developer goes in and changes stuff in some other part of the VI, the two developers could check in their changes and the merge would happen automatically, just like it does in text-based languages.

 

Currently the facility for merging changes from two developers altering the same file is so cumbersome, time-consuming, and error-prone that it's just a non-starter.  As it stands now, two developers simply cannot work on the same project at the same time.  The cost of merging changes together is so prohibitive that we must set up a dev environment where it cannot ever happen.

 

0 Kudos
Message 10 of 22
(5,422 Views)