LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

part of a bigger code



krispiekream wrote:
i see in the codes that the inside true case is used quiet often somewhere else in the code.
how about creating a subvi for that?
would that be a good idea?

It is always a good idea to wrap often used code into a subVI.


krispiekream wrote:
i dont know if it would considering that we have to have local variables in and out of the subvi.

I have no idea what you mean by that sentence. Please explain, maybe with an example.

0 Kudos
Message 11 of 17
(1,289 Views)
-----It is always a good idea to wrap often used code into a subVI.-----

hmmm, okay, how would i make a subvi of the stacked sequence? can you show me an example. i am not fimaliar with it.
i made this.
can you tell me if it is correct. i hope i didnt break anything.







Message Edited by krispiekream on 06-11-2008 01:32 PM

Message Edited by krispiekream on 06-11-2008 01:33 PM
Best regards,
Krispiekream
Download All
0 Kudos
Message 12 of 17
(1,270 Views)
no..
that doesnt work..
it broke

Best regards,
Krispiekream
0 Kudos
Message 13 of 17
(1,262 Views)
here is the reason why i think i should create a subvi? this part is used quite often in lots of places of this code.
can someone tell me/show me to do this without breaking anything. thanks





Message Edited by krispiekream on 06-11-2008 03:39 PM
Best regards,
Krispiekream
0 Kudos
Message 14 of 17
(1,243 Views)
You reaaly should spend some more time on tutorials.
 
In this case you could create a subVI with minimally the following terminal connectors:
  • Pressure array input (this replaces the local variable read)
  • Pressure array output (this replaces the local variabel write)
  • Current pressure output
  • Error Input
  • error output

Try it! 🙂

0 Kudos
Message 15 of 17
(1,229 Views)
 i dont understand this
  • Pressure array input (this replaces the local variable read)
  • Pressure array output (this replaces the local variabel write)

  • how would i do it?
    Best regards,
    Krispiekream
    0 Kudos
    Message 16 of 17
    (1,227 Views)
    0 Kudos
    Message 17 of 17
    (1,219 Views)