LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DATASOCKET connection between LV7 and LV8 with Lookout Communication (DSC)

Situation:
Several PC´s with LV7.1 and DSC (Citadel5)  communicating thru TCP/IP are controlling a bigger
testfacility for flow-meters. Datasocket (DSC-Module) is used for communication.

Problem:
Now I want to connect a new client with LV 8.21 (DSC) to test migrated VI´s developed with LV7.1
Migrating went okay and the Tags are now in an .lvlib of the Project.
The deployment of the new variables took some minutes, cause the data access is set to the server.
I can see the Tags at the new client as historical data inside MAX and also with the shared var. monitor.
Databinding also works with an VI and the Shared Variable Engine (NI-PSP)

BUT:
Within the migrated VI´s databinding with datasocket does not work.
The selected path is: lookout:\\localhost\LabVIEW\.....
I did check the datasocket server (manager) -> nothing there to see
Changing the programs to use only the Shared Var. Engine would be very nasty and at least one month work.....

Does Datasocket work between LV 7 and LV8?

thanks a lot

tomker

0 Kudos
Message 1 of 7
(9,201 Views)
Hi tomker,

bad news! As you already noticed the Tag Engine from LV 7.1 completely changed within LV 8.X due to the Shared Variable Engine.
Therefore , if you are using the DataSocket Read/Write VIs, you have to change the URLs from:
lookout:\\localhost\...
to:
psp:\\localhost\libraryname\variablename
(where variablename stands for the name of the variable >> same for libraryname)

Hope you implemented your URLs at a central point, so it's easy to change them. Otherwise it might get nasty as well...

Daniel
NIG
0 Kudos
Message 2 of 7
(9,103 Views)
Yes, it works when I channge to psp:\\localhost\libraryname\'variablename'
Thanks for finding my mistake. But now I have another (a bigger) problem:
We have about 2600Tags which are now shared vars. Many of them are updated via lookout on the front panel.

> Hope you implemented your URLs at a central point,

How can I do this? All VI´s come from version 7.1. and I do not have a central editor to change all
Front panel objects thru an editor or something similar.

And also please have a look to:
http://forums.ni.com/ni/board/message?board.id=170&message.id=165640
LabView 8 doesn´t seem to be powerful enough to manage a lot of shared vars.
Right now I am Updating to 8.5 (Hope this works....)

Thanks again

tomker


0 Kudos
Message 3 of 7
(9,056 Views)

Hi tomken,

you could use the Find and Replace (Ctrl+F or Edit >> Find and Replace...) function to check for all your URLs. For Example, find all text that includes lookout and replace it by psp. This should make it a little easier.

Bye

Daniel
NIG

0 Kudos
Message 4 of 7
(9,050 Views)
Hi Daniel,
I do not know if I understand your suggestion....

Should I:
- open the properties of each Control/Indicator
- go to data binding
- then paste the correct string ontop of the false one
?

This will take many, many days (weeks) for all VI´s (2600 tags)

Isn´t there a faster convieniant way?

Thanks

tomker
0 Kudos
Message 5 of 7
(9,038 Views)
Hi tomken,

I attached an example project, using the DataSocket:Enabled and DataSocket:URL property. It's possible to retrieve the references to the Controls of a VI using VI Server. Afterwards check for the DataSocket:Enabled state and set the new URL (psp) via the DataSocket:URL property.
Please copy the DataSocket folder to your local HDD (C:\) and run the VIs within the project.
Hope it's a bit easier now to change the 2600 tags of yours!

Bye

Daniel
NIG
0 Kudos
Message 6 of 7
(8,607 Views)
Hi Daniel,
after a pause I at last can work further on this project.
Thanks a lot, Daniel for your help - the datasocket.zip works fine.

But now, in order to change the data binding to a recommended property (from NI)
I would like to change from:    Datasocket 
to                                         Shared Var engine

But unfortunatly in the Ctl (Property node) I can´t change
Data Binding  ->   Binding Type    to  Write

Within the Popup-Window Numeric Properties it is possible to change this in the data binding section.

How can I do this within an LV program?

thanks a lot

tomker

0 Kudos
Message 7 of 7
(6,117 Views)