11-28-2006 01:28 PM
11-28-2006 04:17 PM
11-28-2006 04:18 PM
11-28-2006 04:34 PM
11-28-2006 05:01 PM
Shared variables have to be created in the Project Explorer. It's best to create these before you even build your VI. From the
Getting Started menu, go to file/new project. You'll have a new Project Explorer window with a few "prefabricated" submenus. Right click on the "My Computer" icon, and select "New/Variable". A Shared Variabl Properties explorer will now open up. GIve it a name you can remember (default is "variable1") The default data type is double, which is what I used, but you can use any data type you like....you just have to be sure it's compatible with your controls and indicators! Hit OKAY. Now, your new variable should show up under "untitled library" if you didn't name it something else. Now, hit File/save all, and the FIRST part of the process is done. (Whew!)
Now, the rest is very simple....almost identical to creating a data socket. Create your vi as you normally would. Right click on the front panel item you want to share. Go to PROPERTIES, and a tabbed window will come up. Find the Date Binding tab. Select SHARED VARIABLE ENGINE. Browse to the new variable you created above. Higlight that, click OKAY. Click Okay again and you're done. When you start your VI, it should tell you that the variable is being deployed...it might take a few moments.
Good luck!
eric
11-28-2006 05:29 PM
11-29-2006 11:31 AM
11-30-2006 01:23 PM - edited 11-30-2006 01:23 PM
Message Edited by Adnan Z on 11-30-2006 01:39 PM
12-01-2006 11:04 AM
12-01-2006 11:44 AM