LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW psuedo code generator

We are developing test racks for the military using LabVIEW and TestStand. They have asked if there exist a software package that will generate psuedo-code of the LabVIEW VI's or is there a software package that will allow them to view the diagrams without edit capability other than purchasing LabVIEW. The purpose of this request is so that they can verify what we are doing. Does anyone know of any software packages or have run into this problem and has found a solution?

Thank you in advance.
0 Kudos
Message 1 of 13
(4,064 Views)
Two questions.... (it'll cost ya a coffee ;o)

OK..

#1

Psedo-random number generator. Yes, there is one. In the block diagram, in the "Function's palette", under Numeric, it is the dice icon.

#2 For your military friends who don;t want to purchase LV (shame on them!!)

Simply print out the vi's and let them read it on paper. I don't know of any viewer that will show LV vi's...

Hope this helps...

JLV
Message 2 of 13
(4,064 Views)
If they just want to view the diagrams, would they be happy with the html
documentation that you can generate with File->Print? If this is unfamiliar
to you, select Help->VI, Function, & How-to Help. . ., type html as the
word(s) to search for, hit List Topics, and in the Select topic list, find
Generating HTML Documentation for VIs, Templates and Object. Select it and
hit Display.

"William Simmons" wrote in message
news:506500000008000000AAAC0000-1066448259000@exchange.ni.com...
> We are developing test racks for the military using LabVIEW and
> TestStand. They have asked if there exist a software package that will
> generate psuedo-code of the LabVIEW VI's or is there a software
> package that will allow them to view the diagrams without edit
> capability
other than purchasing LabVIEW. The purpose of this request
> is so that they can verify what we are doing. Does anyone know of any
> software packages or have run into this problem and has found a
> solution?
>
> Thank you in advance.
0 Kudos
Message 3 of 13
(4,064 Views)
Hi William,

To view the diagrams without having edit capability you could try the LabVIEW player details here:

http://zone.ni.com/devzone/conceptd.nsf/webmain/87392D1CB3C49DDE86256AE30049CE55?OpenDocument

Hope this helps,

Nick
0 Kudos
Message 4 of 13
(4,065 Views)
William,

Since they don't want to purchase LabVIEW, you obviously will be building an executable for them. As far as I know, the RTE cannot display the diagrams.

The VI player that Nick mentioned would work, but it requires two versions of the program, the real executable and the special VI Player version. Plus they would have to install the VI Player on their PC. Plus, the current version of the Player is built on LabVIEW 6i, so if you�re using 6.1 or 7, there are probably some features that will not work. (event structures�)

If all they want to do is see the block diagrams, you could grab screenshots of them and build a viewer utility so they could select which diagram to view. This could be built in to the application itself. Other than a hard copy a
s mentioned by others, I can�t think of any other means.

If you figure something out, let us know.

Ed


Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 5 of 13
(4,065 Views)
Hi,

There is an option "Export Strings" (Tools>Advanced). This saves the VI code
(at least some of it) of the structures. It looks like html/xml, but sadly
it isn't. This can be combined with html documentation of the vi, and
pictures that were dynamically created. Desciptions of controls/indicators
can also be obtained through property nodes.

I've succesfully converted this text file to valid XML, and used a XSL to
view it in IE...

Also, the entire heap of a vi can be traversed, but that's just hacking...

Regards,

Wiebe.


"William Simmons" wrote in message
news:506500000008000000AAAC0000-1066448259000@exchange.ni.com...
> We are developing test racks for the military using LabVIEW and
> TestStand. They have asked if there exist a software packa
ge that will
> generate psuedo-code of the LabVIEW VI's or is there a software
> package that will allow them to view the diagrams without edit
> capability other than purchasing LabVIEW. The purpose of this request
> is so that they can verify what we are doing. Does anyone know of any
> software packages or have run into this problem and has found a
> solution?
>
> Thank you in advance.
0 Kudos
Message 6 of 13
(4,065 Views)
.. . . Other than a hard copy as mentioned by others. . .

Note that the html print can be redirected to a file and then viewed in a
browser.
0 Kudos
Message 7 of 13
(4,065 Views)
"DD"
wrote in message
news:vUQqb.142$YA1.11480204@newssvr21.news.prodigy.com...
>
> . . . Other than a hard copy as mentioned by others. . .
>
> Note that the html print can be redirected to a file and then viewed in a
> browser.
>
>
P.S. Check pages 15-1 through 15-4 of the User Manual for information on
documenting VIs.
0 Kudos
Message 8 of 13
(4,065 Views)
I have written an app which saves all the diagrams and front panel images of
VIs in either a folder or llb.

Send me an email at tom.wp@esldefence.co.uk and i can help you out. It was
designed for creating full descriptions so contains some further functions.

Tom.


"William Simmons" wrote in message
news:506500000008000000AAAC0000-1066448259000@exchange.ni.com...
> We are developing test racks for the military using LabVIEW and
> TestStand. They have asked if there exist a software package that will
> generate psuedo-code of the LabVIEW VI's or is there a software
> package that will allow them to view the diagrams without edit
> capability other than purchasing LabVIEW. The purpose of this request
> is so that they can verify what we are doing. Does an
yone know of any
> software packages or have run into this problem and has found a
> solution?
>
> Thank you in advance.
0 Kudos
Message 9 of 13
(4,065 Views)

hey

 

What exactly you want to do? What i understood is that you want to a method to View the block diagram but the capability of editinf the diagram should not be there.

 

So just use the property node of the VI to disable the editing option.

 

if something else is there, let me know

 

Somil

Somil Gautam
Think Weird
0 Kudos
Message 10 of 13
(3,484 Views)