Use shared variables to share data among VIs in the same Mobile application or to read data from and write data to other network-published shared variables. The Mobile Module supports single-process shared variables and network-published shared variables.
Use single-process shared variables when you want to transfer data within the same Mobile application. Using a single-process shared variable on a Mobile target is the same as using a single-process shared variable in VIs you run on Windows.
Use network-published shared variables in a Mobile application to read data from and write data to other network-published shared variables using the NI Publish-Subscribe Protocol (NI-PSP). You can use network-published shared variables in a Mobile VI to read from and write to other shared variables on other types of targets.
![]() | Note The Mobile Module does not support the DataSocket Transport Protocol (DSTP) or hosting of network-published shared variables, which means you only can read and write to targets other than Mobile targets. You receive an invalid input error error if you try to use a network-published shared variable that uses DSTP as the connection protocol. The Shared Variable Engine does not run on Mobile targets. |
You can create shared variables in Mobile VIs without installing support for shared variables on the Mobile target, but you receive an error if you try to run applications that use shared variables without installing the shared variable support on the Mobile target.