Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming,sci.engr.control
|
|||
|
|||
![]()
SCENARIO
A factory production line uses RSLINX software to gather data from PCI cards and expose it through DDE. An Excel spreadsheet consumes this via Copy and Paste of the link from RSLINX. This spreadsheet is then saved in XML format. This XML file is in turn consumed by a web page that displays the data gathered by the RSLINX software. The web page is set to refresh at 30s intervals. PROBLEM The Excel spreadsheet is updated in real time (you can see the numbers change as the data is pumped in by RSLINX), but of course the XML file is not updated until the file is saved, so the data on the web page is not updated unless and until the spreadsheet is saved. The client obtained a cheap "autosave" Excel plug-in to save the spreadsheet periodically, but it doesn't work reliably. DESIRED SOLUTION Remove the Excel middleware and replace it with an applet that will consume the DDE data directly and transform it into the XML file required by the web page. I was thinking of a windows service or something similar. They don't want a console application/scheduled task solution. The budget is TINY. ACCEPTABLE SOLUTION A reliable means of saving the XML file periodically. The most important word in that sentence is "reliable". A background timer in a macro? A save triggered by a cell's Change event firing? |
#2
![]()
Posted to microsoft.public.excel.programming,sci.engr.control
|
|||
|
|||
![]()
Why are you using DDE? OPC would be much more useful..
Cameron:-) wrote in message oups.com... SCENARIO A factory production line uses RSLINX software to gather data from PCI cards and expose it through DDE. An Excel spreadsheet consumes this via Copy and Paste of the link from RSLINX. This spreadsheet is then saved in XML format. This XML file is in turn consumed by a web page that displays the data gathered by the RSLINX software. The web page is set to refresh at 30s intervals. PROBLEM The Excel spreadsheet is updated in real time (you can see the numbers change as the data is pumped in by RSLINX), but of course the XML file is not updated until the file is saved, so the data on the web page is not updated unless and until the spreadsheet is saved. The client obtained a cheap "autosave" Excel plug-in to save the spreadsheet periodically, but it doesn't work reliably. DESIRED SOLUTION Remove the Excel middleware and replace it with an applet that will consume the DDE data directly and transform it into the XML file required by the web page. I was thinking of a windows service or something similar. They don't want a console application/scheduled task solution. The budget is TINY. ACCEPTABLE SOLUTION A reliable means of saving the XML file periodically. The most important word in that sentence is "reliable". A background timer in a macro? A save triggered by a cell's Change event firing? |
#3
![]()
Posted to microsoft.public.excel.programming,sci.engr.control
|
|||
|
|||
![]()
Depends what's wrong the current autosave plug-in. Can you access the code
and correct/improve it ? If you write your own code with a timer, you can do whatever you want. You are still limited by Excel overall stability, which generally is pretty good, but it was never designed to run 24/7. Apart from that, VB6 supports DDE and XML output can be achieved easily. You could write it as a service also. Depends how much effort you want to put in. NickHK wrote in message oups.com... SCENARIO A factory production line uses RSLINX software to gather data from PCI cards and expose it through DDE. An Excel spreadsheet consumes this via Copy and Paste of the link from RSLINX. This spreadsheet is then saved in XML format. This XML file is in turn consumed by a web page that displays the data gathered by the RSLINX software. The web page is set to refresh at 30s intervals. PROBLEM The Excel spreadsheet is updated in real time (you can see the numbers change as the data is pumped in by RSLINX), but of course the XML file is not updated until the file is saved, so the data on the web page is not updated unless and until the spreadsheet is saved. The client obtained a cheap "autosave" Excel plug-in to save the spreadsheet periodically, but it doesn't work reliably. DESIRED SOLUTION Remove the Excel middleware and replace it with an applet that will consume the DDE data directly and transform it into the XML file required by the web page. I was thinking of a windows service or something similar. They don't want a console application/scheduled task solution. The budget is TINY. ACCEPTABLE SOLUTION A reliable means of saving the XML file periodically. The most important word in that sentence is "reliable". A background timer in a macro? A save triggered by a cell's Change event firing? |
#4
![]()
Posted to microsoft.public.excel.programming,sci.engr.control
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Extreme, time-consuming processing | Excel Discussion (Misc queries) | |||
Calculate Cells - Time consuming! | Excel Programming | |||
Consuming a web service in Excel 2003 that requires a certificate | Excel Programming | |||
Resource / Time consuming macro | Excel Programming | |||
Consuming excel events in C# | Excel Programming |