02-12-2013 10:31 AM
Server returning error 1 - meta data not defined
It is not clear to me how to define the meta data used in STM. I have created an array of clusters that contain a string. I have named the clusters. The STM VIs returns an error concerning the meta data not being defined (Figure 1). Figure 2 shows the server code that generates the error and figure 3 show the client code. To start, I am trying to pass a simple string but I would like to pass arrays of data once this is working.
Client and server both running LabVIEW 2012 (32-bit) version on Windows 7.
STM package: stm_1.0.32.zip (not sure this is correct version. Example programs use VIs with different names. Unable to run examples because I don't have the VIs used in the examples.)
Application: Stream data from embedded PC to UI using ethernet connection.
White Papers: LabView Simple Messaging Reference Library (STM)
Command-based Communication Using Simple TCP/IP Messaging
Figure 1 - Error
Figure 2 - Server Diagram
Figure 3 - Client Diagram
02-12-2013 11:02 AM
That is a pretty old version. Download the latest version (2.0.2.1). The can be found here:http://zone.ni.com/devzone/cda/epd/p/id/2739. If you use VI Package Manager, use the VIP file.
02-13-2013 09:58 AM - edited 02-13-2013 09:58 AM
Have you double checked to make sure that you do in fact have a TCP connection established (ie, your TCP listen block is not timing out and passing on an error)?
I would also recommend upgrading to the newest version of the STM pallette.
02-13-2013 10:40 AM
I was able to load the latest version of STM onto my machine. I am now clear on how the Meta data works. I will continue on.
Thanks for the help.
02-13-2013 10:45 AM
Just so you know, there's a board specifically for the STM. That would be a good place to ask for improvements or better clarifications.
http://forums.ni.com/t5/Components/Simple-TCP-Messaging-STM/td-p/583438