Jump to content

pblaze

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

pblaze's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. If you want to pass data to a sub vi, then yes you must copy your data structure to the front panel of the sub vi TWICE. Make one a control and wire that as an input. Make the other an indicator and wire it as an output. In the example I sent, you don't need any locals at all. I just set them up to illustrate that they could both write and read.
  2. Right click on the local varible. You can select "change to read" or "change to write". In write mode it functions as an indicator. In read mode it functions as a control. Heres a vi that uses this method to write 100 random numbers into an array. Download File:post-10-1073103761.vi
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.