FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

FP-2000 and Datasocket Server

Hi all,

I'm attempting to use an FP-2000 to publish data via datasockets within it's
own server. At the moment I can get the FP-2000 to publish to a datasocket
server based on the client PC, however this is not a satisfactory situation.
Is it possible to publish to an internal datasocket and have the remote
software connect to this datasocket connection? If so, how do I go about
doing that. I don't want to use the Publish Data style of communications as
I would like to transfer clusters and the like.

Thanks in advance.

Regards,

Shane Broadbent
0 Kudos
Message 1 of 4
(3,483 Views)
Shane,

The FP-20xx's do not have datasocket servers on them. The only server is the NI Ethernet protocol server which you access via the Data Publish.vi. The Data Publish.vi supports four base types of data; boolean, integer, float and string. You can use the Flatten To String or Typecast functions to convert the cluster data to string and then use the Data Publish.vi to publish the string. The host side can then unflatten the string data.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
0 Kudos
Message 2 of 4
(3,483 Views)
Hi Aaron,

Thanks for your answer. It was the expected answer, but not exactly what I'm
after. Oh well I'll see if I can modify the Datasocket routines so that
there isn't a reliance on the PC or network being up for the code to
continue.

Regards,

Shane Broadbent

"Aaron G" wrote in message
news:5065000000050000002BB80000-1031838699000@exchange.ni.com...
> Shane,
>
> The FP-20xx's do not have datasocket servers on them. The only server
> is the NI Ethernet protocol server which you access via the Data
> Publish.vi. The Data Publish.vi supports four base types of data;
> boolean, integer, float and string. You can use the Flatten To String
> or Typecast functions to convert the cluster data to string and then
> use the Data Publish.vi
to publish the string. The host side can then
> unflatten the string data.
>
> Regards,
> Aaron
0 Kudos
Message 3 of 4
(3,483 Views)
You should be cautious in using the Flatten to String or Typecast when posting data with the Publish Data vi. The Publish Data strings are null-terminated. When using the Flatten to String the result is a binary string and it is likely to contain a null character. A better choice might be to use Format into String.
0 Kudos
Message 4 of 4
(3,483 Views)