I was experimenting with editing a Lua script in the motor imagery example scenario. For learning and development purposes, I was wondering if there's a want to print data in the Lua script and have it appear in the OpenViBE console? If not, is there some other way to print values in the Lua script?
I tried simply adding some print statements to the script, but of course that did not work.
Thanks in advance!
Is there a way to print from a Lua script to the console?
Re: Is there a way to print from a Lua script to the console
Hi,
You can use box:log(log_level, line_of_text).
Sample script from OpenViBE also suggest that io.write should work.
Cheers,
You can use box:log(log_level, line_of_text).
Sample script from OpenViBE also suggest that io.write should work.
Cheers,
Re: Is there a way to print from a Lua script to the console
That's very helpful, thank you very much!tgaugry wrote:Hi,
You can use box:log(log_level, line_of_text).
Sample script from OpenViBE also suggest that io.write should work.
Cheers,