RajatDas Posted September 26, 2023 Share Posted September 26, 2023 Hi, I want to save the Network Analyzer channel 2 data in different scan and filename should be current date-time. Network.Export("/home/pi/"+(Network.Time.taken.toISOString().replace(':','.').replace(':','.'))+".csv","Channel2"); Using this above command, but it is giving error, "TypeError: Result of expression 'Network.Time' [undefined] is not an object." Kindly help. Link to comment Share on other sites More sharing options...
0 attila Posted September 26, 2023 Share Posted September 26, 2023 Hi @RajatDas Use Network.Frequency.taken... Use Ctrl+Space to list child nodes and see the status-bar tip for script access to controls. Link to comment Share on other sites More sharing options...
0 RajatDas Posted September 26, 2023 Author Share Posted September 26, 2023 Thank you @attila. So I am using below command Network.Export("/home/pi/"+(Network.Frequency.taken.toISOString().replace(':','.').replace(':','.'))+".csv","Channel2"); But the time stamp is not the system time (2023-09-26T08.23.44.395Z.csv)? How to change it to system time ? Link to comment Share on other sites More sharing options...
0 attila Posted September 26, 2023 Share Posted September 26, 2023 Hi @RajatDas Link to comment Share on other sites More sharing options...
0 RajatDas Posted September 26, 2023 Author Share Posted September 26, 2023 Thank you @attila. attila 1 Link to comment Share on other sites More sharing options...
0 RajatDas Posted October 11, 2023 Author Share Posted October 11, 2023 Hi, I am saving a .csv file using this below command, Network.Export("/home/pi/"+(Network.Frequency.taken.toISOString().replace(':','.').replace(':','.'))+".csv","Channel2"); Using this command I am able save it. Next do I need to close this .csv file after the writing is complete or something similar to that ? Link to comment Share on other sites More sharing options...
0 attila Posted October 11, 2023 Share Posted October 11, 2023 Hi @RajatDas No, .Export closes the file. Link to comment Share on other sites More sharing options...
0 RajatDas Posted October 11, 2023 Author Share Posted October 11, 2023 ok, Thank u @attila attila 1 Link to comment Share on other sites More sharing options...
Question
RajatDas
Hi,
I want to save the Network Analyzer channel 2 data in different scan and filename should be current date-time.
Network.Export("/home/pi/"+(Network.Time.taken.toISOString().replace(':','.').replace(':','.'))+".csv","Channel2");
Using this above command, but it is giving error, "TypeError: Result of expression 'Network.Time' [undefined] is not an object."
Kindly help.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now