07-12-2008 12:38 AM
Solved! Go to Solution.
07-12-2008 09:57 PM
I'm sure if there is something you want to do, it is possible to find a way to do it in LabVIEW. But is it worth the time and trouble? Where does ActiveX come into play in your situation?
How much work was it to do the configuring of the parameters in the way you did it? How much more work would it be do try to program into LabVIEW the steps that you did? Probably quite a bit more work. How many timess and how frequently do you think the Drives' models or makes would change? Probably very infrequently.
I think you would save a lot of time and trouble (which would be for little gain) if you just clearly document the procedures you just went through to set up the Drive parameters in OPC and use that in the future as a reference.
07-13-2008 11:31 PM
07-14-2008 02:12 PM - edited 07-14-2008 02:14 PM
07-15-2008 12:06 AM
07-15-2008 05:00 PM
07-15-2008 07:10 PM
Are the AC drives connected through TCP/IP or a serial port? If serial, are all 50 on the same serial line? How many tags are you reading from each drive?
I don't think 25 seconds for 50 drives would be that unusual if you were reading a few tags/drive, and all drives were on the same serial port. That is less than 1/2 second for write a query, wait and get the read on each drive.
07-15-2008 11:12 PM
11-18-2008 01:52 PM
Setting the OPF file NI OPC Servers loads at startup:
In NI OPC Servers, go to Tools >> Options >> Service tab and verify that "Automatically start as a Windows NT service" is checked.
You can start the service programmatically by sending this command line (via System Exec.vi):
net start "NI OPC Service"
(If the service is already started, you will get text back but the service will continue to run.)
You can stop the service by sending:
net stop "NI OPC Service"
Whenever the service starts, NI OPC Servers obtains the location of the Default Project (OPF file) here:
C:\Program Files\National Instruments\Shared\NI OPC Servers\ServerMain.ini
You can change the OPF file NI OPC Servers loads at startup by changing the path in the "Default Project" key in the "Service" section. See attached for an example program.
11-18-2008 02:09 PM
Caveat:
NI OPC Servers overwrites the existing ServerMain.ini file when it shuts down. Therefore, shutdown NI OPC Servers (as described above) before attempting to make the aforementioned changes to ServerMain.ini.
-Jason