Get Netlinx file name
jjames
Posts: 2,908
Has any body found a way to get the NetLinx file name in Duet? In NL, you can use __file__, but I can't seem to find anything in Duet where I can get that.
It appears the only option I might have is to telnet into the machine and get it that way, though that is too much of a round about way to do it. Also, I *DO NOT* want to pass this information to the module, it should grab it automatically.
Any suggestions would be great.
It appears the only option I might have is to telnet into the machine and get it that way, though that is too much of a round about way to do it. Also, I *DO NOT* want to pass this information to the module, it should grab it automatically.
Any suggestions would be great.
0
Comments
So - as a feature request for version 4 firmware, maybe in amx.com.duet.core you can add getNetLinxFileName(); you can get nearly everything else as far as system information goes. I'd imagine this would be something you guys could add into the VxWorks layer and ultimately could be interfaced with NetLinx OR Duet . . . I do see in boot up that VxWorks is aware of which program is loaded:
If there is a specific file that you want retrieved by your Duet module, simply issue a SEND_COMMAND to Duet from that AXS or AXI file at startup to set the value. Then whenever you need to use the new, pseudo __FILE__ within Duet, you'll have it there waiting for you. You can do the same with __NAME__.
As Mr. Engineer pointed out - impossible.