Author Topic: How to calculate Id Vds for given gate bias  (Read 3981 times)

0 Members and 1 Guest are viewing this topic.

Offline sathyajit

  • Heavy QuantumATK user
  • ***
  • Posts: 31
  • Country: in
  • Reputation: 0
    • View Profile
How to calculate Id Vds for given gate bias
« on: June 17, 2015, 16:48 »
Hi,

I used the script MoS2_FET_Mo_test-3-gatescan-test-3.py to loop over gate bias to get to Vg=0.5V
Now to run Id Vd  I am using MoS2_FET_Mo_iv-test-1.py
But it gives the following error



 File "MoS2_FET_Mo_iv-test-1.py", line 10
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,trans0.5)[0]
                                                                                                                ^
SyntaxError: invalid syntax
  File "MoS2_FET_Mo_iv-test-1.py", line 10
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,trans0.5)[0]
                                                                                                                ^
SyntaxError: invalid syntax
+------------------------------------------------------------------------------+
|                                                                              |
| Atomistix ToolKit 2014.2 [Build 811a2e4]                                     |
|                                                                              |
+------------------------------------------------------------------------------+
  File "MoS2_FET_Mo_iv-test-1.py", line 10
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,trans0.5)[0]
                                                                                                                ^
SyntaxError: invalid syntax
  File "MoS2_FET_Mo_iv-test-1.py", line 10
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,trans0.5)[0]
                                                                                                                ^
SyntaxError: invalid syntax
  File "MoS2_FET_Mo_iv-test-1.py", line 10
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,trans0.5)[0]
                                                                                                                ^
SyntaxError: invalid syntax
  File "MoS2_FET_Mo_iv-test-1.py", line 10
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,trans0.5)[0]
                                                                                                                ^
SyntaxError: invalid syntax
  File "MoS2_FET_Mo_iv-test-1.py", line 10
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,trans0.5)[0]
                                                                                                                ^
SyntaxError: invalid syntax
  File "MoS2_FET_Mo_iv-test-1.py", line 10
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,trans0.5)[0]




How to resolve the issue ?

Regards
Sathyajit
« Last Edit: June 19, 2015, 10:01 by sathyajit »

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Re: How to calculate Id Vds for given gate bias
« Reply #1 on: June 18, 2015, 07:56 »
This is a syntax error. The correct syntax for nlread is
device_configuration = nlread("ncfile.nc", DeviceConfiguration, "object_id")[0]
where "object_id" should be a string (and may often be left out).

Therefore,
device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,trans0.5)[0]
should be
device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc", DeviceConfiguration, "trans0.5")[0]

Offline sathyajit

  • Heavy QuantumATK user
  • ***
  • Posts: 31
  • Country: in
  • Reputation: 0
    • View Profile
Re: How to calculate Id Vds for given gate bias
« Reply #2 on: June 19, 2015, 06:23 »
Hi Jess,

I changed it to "trans0.5" but now the error is :

Traceback (most recent call last):
  File "MoS2_FET_Mo_iv-test-1.py", line 10, in <module>
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,"trans0.5")[0]
IndexError: list index out of range
Traceback (most recent call last):
  File "MoS2_FET_Mo_iv-test-1.py", line 10, in <module>
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,"trans0.5")[0]
IndexError: list index out of range
Traceback (most recent call last):
  File "MoS2_FET_Mo_iv-test-1.py", line 10, in <module>
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,"trans0.5")[0]
IndexError: list index out of range
Traceback (most recent call last):
  File "MoS2_FET_Mo_iv-test-1.py", line 10, in <module>
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,"trans0.5")[0]
IndexError: list index out of range
+------------------------------------------------------------------------------+
|                                                                              |
| Atomistix ToolKit 2014.2 [Build 811a2e4]                                     |
|                                                                              |
+------------------------------------------------------------------------------+
Traceback (most recent call last):
  File "MoS2_FET_Mo_iv-test-1.py", line 10, in <module>
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,"trans0.5")[0]
IndexError: list index out of range
Traceback (most recent call last):
  File "MoS2_FET_Mo_iv-test-1.py", line 10, in <module>
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,"trans0.5")[0]
IndexError: list index out of range
Traceback (most recent call last):
  File "MoS2_FET_Mo_iv-test-1.py", line 10, in <module>
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,"trans0.5")[0]
IndexError: list index out of range
Traceback (most recent call last):
  File "MoS2_FET_Mo_iv-test-1.py", line 10, in <module>
    device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc",DeviceConfiguration,"trans0.5")[0]
IndexError: list index out of range

I am now attaching a snapshot of my lab floor for the .nc file.

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Re: How to calculate Id Vds for given gate bias
« Reply #3 on: June 19, 2015, 09:02 »
OK, is see the problem. The issue is that you did not name the object_id "trans0.5". Instead, you have used "trans0.5 V". The strings used for nlread must exactly match what you used for nlsave:

device_configuration = nlread("/home/sathya/.vnl/MoS2_FET/MoS2_FET_Mo_test-3.nc", DeviceConfiguration, "trans0.5 V")[0]

Offline sathyajit

  • Heavy QuantumATK user
  • ***
  • Posts: 31
  • Country: in
  • Reputation: 0
    • View Profile
Re: How to calculate Id Vds for given gate bias
« Reply #4 on: June 19, 2015, 09:34 »
Hi,

I tried using "trans 0.5 V" and "trans0.5V" and "trans0.5" , but still I face the same issue. Kindly help me out.

Regards
Sathyajit

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Re: How to calculate Id Vds for given gate bias
« Reply #5 on: June 19, 2015, 09:50 »
You need to use the exact same string (whatever it is) for reading the nc file as you used for writing the nc file.