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.
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
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
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?
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.
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.
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.
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.
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.
Comments
.SRC files are basically zip files with a .src file extention instead of .zip
Only your main AXS, not those from your modules.
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.
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.
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
Damnit, I'm like you