Can I execute or Test Functions from Studio
Brent Simpson
Posts: 36
Hi All,
Does anybody know if it is possible to test or execute Functions or parts of programs directly from Studio rather than setting up test buttons and assigning then to the Function? I imagine it would be executed via diagnostics similar to emulating a device?
I would find it exteremly useful if it was possible...
Cheers
Brent
Does anybody know if it is possible to test or execute Functions or parts of programs directly from Studio rather than setting up test buttons and assigning then to the Function? I imagine it would be executed via diagnostics similar to emulating a device?
I would find it exteremly useful if it was possible...
Cheers
Brent
0
Comments
I can't see why it couldn't be added - after all we can control and emulate almost everything via Diagnostics...
Brent
Well it may perhaps look trivial, but emulate a master is pretty complicated, instead emulation of a touch panel is very simple, as NSX just sends on ICSNet message as if it came from touch panel unless it doesn't really existe
Vince
Brent's post just got me thinking about it and I thought I would just throw the idea out there.
You've got MyFunction() that you just created that does some stuff and you just want to try it out. So create some "dummy" handler for a button or something, compile and link and download and then use Diagnostics to trigger the event that calls the function.
What Brent is asking for is a way to bypass the "dummy" event handler. He's not asking for the code to run on the PC, he's not asking about bypassing the compile and link and download phase.
Doing this is actually a lot easier than emulating the master on the PC. It just needs the proper API from the master.
Fred