Home AMX User Forum NetLinx Studio

Receive code from amx device question

udiudi Posts: 107
I have a client which has a ni-2100 device and he has MVP-7500 touch panel. He wants some changes in the control of the devices. But the program of the amx device wrote by another company and I don’t have the code of the ni-2100 control.
Is it possible to get the file from the ni-2100 controller? Or I have to write everything from scratch????
Thanks for any help

Comments

  • Jimweir192Jimweir192 Posts: 502
    If the last company selected to compile with source, then you should be able to download the src file from the master.

    Use the send/ receive dialog box and select the receive tab.

    You will always get an src file downloaded, but if it is very small it will just contain the text "no source code available on master" or similar.
  • udiudi Posts: 107
    problem
    Jimweir192 wrote: »
    If the last company selected to compile with source, then you should be able to download the src file from the master.
    .

    what does it mean compile with source. how you can compile without a source? don't you have to compile before sending to the device??? I don't understand.
    Anyway, I managed to download the file as you said, But files are missing and there are some errors. how can it be ?
    Is not that the files that have on the device????
  • Jorde_VJorde_V Posts: 393
    udi wrote: »
    what does it mean compile with source. how you can compile without a source? don't you have to compile before sending to the device??? I don't understand.
    Anyway, I managed to download the file as you said, But files are missing and there are some errors. how can it be ?
    Is not that the files that have on the device????

    You normally only upload the compiled file to the controller. What he means is that you can include the original source with it. So NetLinx sends that to the controller as well so that the next programmer can retrieve the code that's on the actual device and see/alter it. Same goes for yourself as well. If you do it that way you always know which code is running on that controller as you can simply retrieve it.

    You can do this in the settings menu:
    Netlinx Compiler -> "Build with source" if you check that it will add the source.

    You can still password protect it if you want to avoid access by strangers. There's a checkbox just below that will allow you to do just that. Hope this helps.
  • udiudi Posts: 107
    Jorde_V wrote: »
    You normally only upload the compiled file to the controller. What he means is that you can include the original source with it. So NetLinx sends that to the controller as well so that the next programmer can retrieve the code that's on the actual device and see/alter it. Same goes for yourself as well. If you do it that way you always know which code is running on that controller as you can simply retrieve it.
    .
    I managed to download but files are missing and there are some errors. how can it be ?
    Is not that the files that have on the device????
  • DHawthorneDHawthorne Posts: 4,584
    udi wrote: »
    I managed to download but files are missing and there are some errors. how can it be ?
    Is not that the files that have on the device????

    Include files that were compiled into the program will not be on the master if they were not included in the workspace. I think (but am not positive) that this applies to TOK files as well. IN other words, the original programmer didn't upload a complete set of files.
  • udiudi Posts: 107
    DHawthorne wrote: »
    Include files that were compiled into the program will not be on the master if they were not included in the workspace. .

    how can you compiled files into the program and not included them in the workspace.
    When i try to compile the softwere said that one .axi file is missing.
    The file declaration is in other .AXI file, Maybe because of this it is not included in the workspace????
    DHawthorne wrote: »
    I think (but am not positive) that this applies to TOK files as well.

    In addition the program missing also one TKO file as you said.
  • AuserAuser Posts: 506
    udi wrote: »
    how can you compiled files into the program and not included them in the workspace.
    When i try to compile the softwere said that one .axi file is missing.
    The file declaration is in other .AXI file, Maybe because of this it is not included in the workspace????

    The compiler will find files which reside in compiler search paths which are configured from the menu in NetLinx Studio under Settings -> Preferences -> NetLinx Compiler -> Directories without them being added to the workspace.
    udi wrote: »
    In addition the program missing also one TKO file as you said.
    If this is an AMX written module, we may be able to dig you up a copy. What is the name of the .tko file?
  • udiudi Posts: 107
    ERROR: L20206: File [EIBIP_dr1_0_0.tko] could not be found

    this is the file that missing. they use EIB lighting.
    anyone have some module example for the EIB?
  • udiudi Posts: 107
    More questions.

    Some of the file I got from the AMX device are .AXS files and in those file they wrote a module (Example file attached). Do I need to add the TKO file of this .AXS files to my workspace??? How do I use this filed in the workspace??? When I am doing compiling are those files included??
    thanks for any help.
  • rfletcherrfletcher Posts: 217
    you can attach either the .tko or .axs file to the workspace for a module, you do not need to attach both. If you attach the .axs file, when you compile choose the build active system, or compile each module individually before compiling the main file.

    Hope that helps
    -Ryan
  • udiudi Posts: 107
    rfletcher wrote: »
    ERROR: L20206: File [EIBIP_dr1_0_0.tko] could not be found
    this is the file that missing. they use EIB lighting.
    -Ryan

    anyone have some module example for the EIB?
Sign In or Register to comment.