LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dsc - programmaticly create IO server?

Is it possible to programmaticly create IO-servers in my project (I use LabView 8.0)? I can programmaticly create libraries with folders and shared variables, but I havent found a way to programmaticly create a IO-server in my project (that for ex. points to a FieldPoint OPC server)... So I wonder if this is possible at all?
 
Thanks in advance!
 
-Cornelis
0 Kudos
Message 1 of 6
(4,857 Views)


@Corny wrote:
Is it possible to programmaticly create IO-servers in my project (I use LabView 8.0)? I can programmaticly create libraries with folders and shared variables, but I havent found a way to programmaticly create a IO-server in my project (that for ex. points to a FieldPoint OPC server)... So I wonder if this is possible at all?
 
Thanks in advance!
 
-Cornelis


Mmmh, this is more or less a two step process and you can't exactly do everything programmatically. First you would need to get the DSC device registry updated for the IO server in question. You would do this with the DSC Module VIs->DSC Module Server Development->DSC Module Server Registration VIs. But I have no idea if this would work with OPC too since I have only used NI hardware or my own VI based IO servers with LabVIEW DSC until now.
These VIs are mainly meant to be used if you develop your own VI based IO server and there is a chance that the internal database organziation has been extended with additional attributes or tables for OPC servers, but that those VIs do not give you access to those attributes and tables. But I would try it out by first creating an OPC server interactively, then using the "Get" VIs retrieve the information for that server through those VIs to see what is what, and then try to create my own server through the "Add" VIs of that library and see if it works.

The next step would be to create the tags in the SCF file but as far as I know there is no documented API access to the SCF file so this will have to be done interactively through the Tag Configuration Editor anyhow.

Rolf Kalbermatter

Message Edited by rolfk on 04-23-2006 04:06 PM

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 6
(4,838 Views)


@rolfk wrote:


@Corny wrote:
Is it possible to programmaticly create IO-servers in my project (I use LabView 8.0)? I can programmaticly create libraries with folders and shared variables, but I havent found a way to programmaticly create a IO-server in my project (that for ex. points to a FieldPoint OPC server)... So I wonder if this is possible at all?
 
Thanks in advance!
 
-Cornelis


Mmmh, this is more or less a two step process and you can't exactly do everything programmatically. First you would need to get the DSC device registry updated for the IO server in question. You would do this with the DSC Module VIs->DSC Module Server Development->DSC Module Server Registration VIs. But I have no idea if this would work with OPC too since I have only used NI hardware or my own VI based IO servers with LabVIEW DSC until now.
These VIs are mainly meant to be used if you develop your own VI based IO server and there is a chance that the internal database organziation has been extended with additional attributes or tables for OPC servers, but that those VIs do not give you access to those attributes and tables. But I would try it out by first creating an OPC server interactively, then using the "Get" VIs retrieve the information for that server through those VIs to see what is what, and then try to create my own server through the "Add" VIs of that library and see if it works.

The next step would be to create the tags in the SCF file but as far as I know there is no documented API access to the SCF file so this will have to be done interactively through the Tag Configuration Editor anyhow.

Rolf Kalbermatter

Message Edited by rolfk on 04-23-2006 04:06 PM



DSC 8.0 did away with the scf file and the TCE.  There is no way, in 8.0, to programmatically configure an IO Server.  I would expect that this is something that will be added in a future release.
Regards,
Robert
Message 3 of 6
(4,821 Views)


@REM1 wrote:

DSC 8.0 did away with the scf file and the TCE.  There is no way, in 8.0, to programmatically configure an IO Server.  I would expect that this is something that will be added in a future release.

One strong reason to not upgrade to 8.0 then. In two of my projects I use custom made VI IO servers and I need to register them somehow.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 6
(4,808 Views)
There is actually a way to create the IO-Server 'item' in LV8, but no way to configure it programmatically... Hope this will be possible in a future release! Smiley Happy
0 Kudos
Message 5 of 6
(4,787 Views)
In 8.0, DSC still support custom made VI IO servers in 7.x version. There is a KB on how to migrate your custom made vi io server to 8.0.
It does not show up in the pallete because DSC has new interface for creating VI IO servers.



0 Kudos
Message 6 of 6
(4,774 Views)