An archive of community.esquilo.io as of Saturday January 26, 2019.

Error creating instance of DAC?

bluerondo7

Hello,

I get an error trying to create an instance of DAC using the library example?
// Create an instance for DAC0
local dac = DAC(1);

%%Runtime error [the index 'DAC' does not exist]

Thanks

Scott_Shumate

You'll need to load the DAC library first. If you are using EOS 0.3+, you can do this dynamically:

require("DAC");

For earlier versions of EOS, you can find the library enables in the IDE system menu.

Also, Esquilo only has one DAC so you'll need to change the code to:

local dac = DAC(0);