06-29-2007 04:41 AM
06-29-2007 05:14 AM
Assuming you mean a flow chart, the answer would be no. LV code is multi-dimensional and can be very complicated, since each programmer uses a different style.
NI does have tools for going the other way, though. For example, they've been selling the state diagram toolkit for a long time and recently they announced a beta for a statechart module.
If you are refering to data flow diagrams, that's essentially what subVIs are.
06-29-2007 05:47 AM
06-29-2007 06:12 AM
LabVIEW does have tools for reading the code hierarchy, but they were never officially released and are still incomplete unstable.
Even if someone was to write an application which would use these tools to analyze LV code, that LV code would have to follow very strict guidelines for the application to be able to understand it. In short, the answer is no and your basic process is reversed - you're supposed to design the basic algorithms before coding, not after.
06-29-2007 07:04 AM
06-29-2007 07:37 AM
06-29-2007 07:41 AM - edited 06-29-2007 07:41 AM
@nistudent wrote:
code was designed before just noone wants to go through the hard work of doing to documentation properly on a flow program as takes so long. was just after a faster solution from NI that might show the flow in far more detail and auto generate it from the code you are using. dont see why it would be so difficult to an application that does it. will be waiting.
It would be difficult because a flowchart contains domain knowledge that is not apparent in the written code. It is there but not in a way that can easily be determinded. As tst alrady said you are trying to reverse the development model.
Proper software development means designing the software algorithme first through flowdiagram, SDL, NassySchneiderman or whatever means and AFTER that start implementing it, not the other side around. All an automated tool could do is create a 1:1 analogy between what the LabVIEW diagram is and that perverts the purpose of such documentation which should be to show a more concise way of what your program is supposed to do (contrary to what it is doing 😉
Rolf Kalbermatter
Message Edited by rolfk on 06-29-2007 02:41 PM
06-29-2007 03:12 PM
07-04-2007 11:17 AM
07-04-2007 11:57 AM - edited 07-04-2007 11:57 AM
Message Edited by mikeporter on 07-04-2007 12:59 PM