Is it possible to pass a variable to start()

 

I have a routine to read a file on init(), then would like to pass the value to start(). How can I pass this value to start()? I don't want to read the disk on every tick.

 

GlobalVariables would be one way.

Declaring a variable after the extern section is accessable to all functions that follow which includes start()

 
Ickyrus:

GlobalVariables would be one way.

Declaring a variable after the extern section is accessable to all functions that follow which includes start()


Thanks, that's what I was doing. It turned out to be a double to string on write and string to double on read conversion error on my part. I initial did not decalre FILE_CSV and wrote the file by hand. So I had my EA re-write the file with FILE_CSV declared.

Works now.

Reason: