To create a shared variable that runs on a Touch Panel target, right-click the target in the Project Explorer window and select New»Variable from the shortcut menu to open the Shared Variable Properties dialog box. After you configure the shared variable and click the OK button, LabVIEW creates a project library that contains the shared variable under the Touch Panel target.
After you create the shared variable, you can right-click the variable and select Properties from the shortcut menu to display the Shared Variable Properties dialog box. Use the Shared Variable Properties dialog box to configure the shared variable.
![]() | Note (Windows CE) The Touch Panel Module does not support reading from or writing to a real-time FIFO. If you create a shared variable with real-time FIFO enabled, the shared variable behaves as a network-published shared variable instead. |
After you create the shared variable, you can use it to read and write shared variable values on the block diagram.
Refer to the shared variable examples, located in the labview\examples\TouchPanel\shared variable directory, for more information about reading and writing shared variables on a Touch Panel target:
![]() | Note (Windows CE) The Touch Panel Module does not support the DataSocket Transport Protocol (DSTP) or hosting of network-published shared variables. You receive an invalid input error if you try to use a network-published shared variable that uses DSTP as the connection protocol. |