Home AMX User Forum NetLinx Studio

Can I execute or Test Functions from Studio

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

Comments

  • matt95gsrmatt95gsr Posts: 165
    As far as I know, that is not possible. However, it is something that I've often thought would be useful as well. Perhaps someone out there knows something I don't?
  • Maybe if enough of us ask for it, AMX might add it to their todo list?

    I can't see why it couldn't be added - after all we can control and emulate almost everything via Diagnostics...

    Brent
  • FrankieFrankie Posts: 71
    Good idea! If they can emulate a touch panel why not a master?
  • vincenvincen Posts: 526
    Frankie wrote:
    Good idea! If they can emulate a touch panel why not a master?

    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
  • FrankieFrankie Posts: 71
    I never thought it would be trivial. As a mater of fact sound pretty difficult to me. I have seen other companies emulate other devices on a pc, take palm of instance.

    Brent's post just got me thinking about it and I thought I would just throw the idea out there.
  • frthomasfrthomas Posts: 176
    Hold on.

    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
Sign In or Register to comment.