LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can you make a permanent cluster variable on the datasocket server?

I have 2 VIs on a network. One of them is regularly polling the datasocket server for values to update some controls and indicators.
The other VI is posting information to the datasocket server.
I would like to be able to post clusters to this server w/o worrying about the datasocket server releasing the cluster.(you can easily do this through datasocket server manager for booleans, strings and numeric dataitems)
datasocket reads and writes of clusters are no problem... but I can't have the polling VI grabbing meaningless values because the server released my cluster.
One idea I've come up w/ thus far is to concatenate all the elements of the cluster into a string... and then
store and retrieve this string from a permanent string dataitem created on the server.(and of course delimit the string w/ commas, spaces or whatever) and then reassemble the cluster on the other side... but this is quite far from convenient.
I can read and write clusters using datasockets... shouldn't I be able to have such a cluster initialized on the server?

Help...

Thanks,
Jim
0 Kudos
Message 1 of 7
(3,198 Views)
Hi Jim,

Have you had a look at the VI's DS Data Acqisition.vi and DS Data Remote Processing.vi under the LabVIEW samples DataSocket.

This is passing a cluster flatted to a string then passing the string via the DataSocket.

Hope this helps you
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 7
(3,198 Views)
I looked under resource library >> labview >> connectivity >> datasockets and the vis you mentioned were not there.
Could you please give me a little info as to where to look for them?

Thanks,
Jim
0 Kudos
Message 3 of 7
(3,198 Views)
\LabVIEW\Examples\Comm\datasktx.llb
0 Kudos
Message 4 of 7
(3,198 Views)
Hi Jim,

Sorry, I ment in your the LabVIEW examples folder. Dennis has got path name.

Ray.
Regards
Ray Farmer
0 Kudos
Message 5 of 7
(3,198 Views)
Neither
DS Data Acqisition.vi or
DS Data Remote Processing.vi
were in my
\LabVIEW\Examples\Comm\datasktx.llb

I'm still curious to check out these vis. Do you know where they are?
0 Kudos
Message 6 of 7
(3,198 Views)
Hi,

I've attached the llb file from the examples folder \LabVIEW\Examples\Comm

This is a LabVIEW 5.1.1 folder but it should open in Ver 6 OK. But there maybe some links to other example VI.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 7 of 7
(3,198 Views)