The procedure may be listed as below:
1) Use the CNT builder in VNL to build the atomic structure of (4,0) CNT with the default C-C bond length.
2) Optimize the atomic coordinates with fixing the lattice constants of the supercell for (4,0) CNT, and then calculate the stress;
3) Change the lattice constant of the supercell along the periodicity of (4,0) CNT;
4) optimize the atomic coordinates of (4,0) CNT with the adjusted lattice constant, and then calculate the stress;
5) repeat the 3) and 4) steps for another new value of lattice constant.
.....
The adjustment of lattice constants of the supercell for (4,0) CNT can be done by the Builder of VNL or by manually changing the values of lattice constants in the script file.