Home AMX User Forum NetLinx Studio

.SRC File

So when Netlinx Studio transfers with source, it sends a .src file. How is this file used for anything? I've tried to open them in Netlinx Studio and the program just hangs.

Thanks.

Comments

  • viningvining Posts: 4,368
    Once you've extracted the .src file from the master go to the "tools" in the NS3 bar and select "File Extraction" -> "Extract from.SRC file". Choose a directory to extract the file to and then you'll have a file with all your .axi's and .axs's.

    .SRC files are basically zip files with a .src file extention instead of .zip
  • Jorde_VJorde_V Posts: 393
    vining wrote: »
    Once you've extracted the .src file from the master go to the "tools" in the NS3 bar and select "File Extraction" -> "Extract from.SRC file". Choose a directory to extract the file to and then you'll have a file with all your .axi's and .axs's.

    .SRC files are basically zip files with a .src file extention instead of .zip

    Only your main AXS, not those from your modules.
  • TurnipTruckTurnipTruck Posts: 1,485
    The downloading of .src from the master controller saved my a$$. I started using Dropbox and lost a few source files in the process.

    Since I "uploaded with source" to my master controller, the .src did contain the .axs files for both the main program and my modules.

    Nice. Thanks.
  • Jorde_VJorde_V Posts: 393
    Since I "uploaded with source" to my master controller, the .src did contain the .axs files for both the main program and my modules.

    Strange, I downloaded a .src file last week and it didn't include the .AXSes for my modules. I reckon it should include those if they are in the workspace and specified?
  • Nerieru wrote: »
    Strange, I downloaded a .src file last week and it didn't include the .AXSes for my modules. I reckon it should include those if they are in the workspace and specified?

    Not necessarily. It is an option that you select. Go to settings/preferences/netlinx compiler and make sure 'compile with source' is checked. This will add all .axs and .axi files to the src file. Otherwise, it just sends an empty one when you transfer code.
  • DHawthorneDHawthorne Posts: 4,584
    The modules have to be compiled with source as well as the main program. It's entirely possible to only load the compiled module even if the main program had its source included.
  • Jorde_VJorde_V Posts: 393
    DHawthorne wrote: »
    The modules have to be compiled with source as well as the main program. It's entirely possible to only load the compiled module even if the main program had its source included.

    Might have been the case that I used a simple compile last time I uploaded it, instead of compiling the entire program again. Guess it doesn't add the module AXSes when you use a normal compile last.

    Good to know :)
  • DHawthorneDHawthorne Posts: 4,584
    Nerieru wrote: »
    Might have been the case that I used a simple compile last time I uploaded it, instead of compiling the entire program again. Guess it doesn't add the module AXSes when you use a normal compile last.

    Good to know :)

    It does if you rebuild the entire system every time you compile ... but if you're like me, you don't bother :). It takes too long, I just re-compile the sources I know changed.
  • Jorde_VJorde_V Posts: 393
    DHawthorne wrote: »
    It does if you rebuild the entire system every time you compile ... but if you're like me, you don't bother :). It takes too long, I just re-compile the sources I know changed.

    Damnit, I'm like you :(
Sign In or Register to comment.