File transfer from drivers to main Scada

Find and share HowTos to various installations / configurations!
2 posts • Page 1 of 1
cjimenez
Posts:6
Joined: Fri May 15, 2015 11:12 pm

File transfer from drivers to main Scada

Post by cjimenez »

Hello,

I need to transfer some files from the pc's where drivers are running to the pc of the main Scada.
I have not found any function that allows me to send the file from the drive whenever I want but, on the other hand, I have seen that there is a function call "requestFileTransfer" that allows that but from the server. I have coded this in a new manager, cos my intend is to request all the files in that manager:

Code: Select all

do
	{
		ManagerIdentifier id = ManagerIdentifier(EVENT_MAN, 0, 10);
		this->requestFileTransfer(id, "File.xml");
		this->requestFileTransfer(id, "AnotherFile.xml");

		std::this_thread::sleep_for(std::chrono::seconds(60));
	} while (!doExit);
I am receiving nothing. I have checked also instead of "EVENT_MAN", "DRIVER_MAN" and my driver number but anything.

EDIT: I have putted the files into the directory where the driver exe is and into the root path of the driver.

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: File transfer from drivers to main Scada

Post by Gertjan van Schijndel »

You could try 'DB_MAN' instead of 'EVENT_MAN'.
The filename should be absolute or relative to the project directory.

2 posts • Page 1 of 1