LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Referencing

Hi all!
Can someone please explain me the below code?

0 Kudos
Message 1 of 4
(616 Views)

It

  1. Opens the front panel of "Reporting TRAM.vi" (from which ever folder happens to be the current folder)
  2. Closes its own front panel and runs "Reporting TRAM.vi" (in no particular order).
  3. Reopens its own front panel
  4. Closes the front panel of "Reporting TRAM.vi"

It's rather Rube-Goldbergy.

That exact same code could be written as:

paul_a_cardinale_0-1705973126310.png

But it's very unlikely that you really want to do that.  Give us the whole story and we'll give you better advice.

Message 2 of 4
(599 Views)

@ms6 wrote:

Can someone please explain me the below code?


As has already been said. the code is relatively convoluted and it seems you did not write it. As a first step you need to provide more details and some back story:

 

  • Who wrote this code and where did you find this code? (link!)
  • What problem are you trying to solve and does it do what you expect?
  • Where is the rest of the code? All we can see is a truncated diagram with parts of a local variable, a boolean with the label cutoff, and a case structure with convoluted code in the TRUE case and where we cannot even tell what's  the FALSE case. Is there a toplevel loop?

Since we need to wildly guess how the rest of the code looks like, we need to make a lot of assumptions that might not be correct. Form afar, it looks like some attempt at a launcher. If you want help, please attach the VI and answer the above questions.

0 Kudos
Message 3 of 4
(542 Views)

This is my colleague's code, I just wanted to get a surface level of understanding, as I am pretty new to Labview. 

0 Kudos
Message 4 of 4
(475 Views)