Running a test every 300 millisecond, how can I do it?

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Running a test every 300 millisecond, how can I do it?

Postby arjfca » 13 Jan 2012

Hello

I'm using an external DLL suite "XLInput" from !QCLSolution to send data to Excel. Work great and stable.

I want to send info to Excel every 300 millisecond. How can I do that. Actually, have a code that is running, but for whatever reason it crash at midnight everyday.

Code: Select all

If Machinetime > referencetime then begin // Delay is over
Referencetime = Machinetime + delay;
//print (machinetime, " ", delay, " ", referencetime);
//if lastbaronchart then print (datastring);
XLO.TextA1(sBook,sSheet,iDataString,DataString);
//Bar info as been transmited then reset the Barcompleted value to Bar in Progress barcompleted = "BIP";
end; //If Machinetime > referencetime
The problem may be caused by the machinetime + delay variable that has an invalid value when the hour turn to 00:00:00 ( midnight).

Is there another way to execute a routine every 300 ms?

Hope I'm clear enough with my no so good English

Martin

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Running a test every 300 millisecond, how can I do it?

Postby Henry MultiСharts » 18 Jan 2012

Hello Martin.
In PowerLanguage it is not possible to set the update frequency less than 1 second.
The problem can be caused by the dll that initiates an update.
Please check the dll you are using.
You can also try to change the update frequency to 1 second.


Return to “MultiCharts”