Forums › SM Series Discussions › SCPI Commands
- This topic has 4 replies, 3 voices, and was last updated 6 months, 1 week ago by EDourado.
- AuthorPosts
EDouradoParticipantHello everybody !
I am having difficulty collecting via SCPI commands the power of a signal in DB at a specific frequency 410 Mhz!
Could anyone help me with this issue?
My equipment is the SA44!
Yours sincerely
Eduardo Dourado
Justin CrooksModeratorEduardo,
Can you measure the signal just fine using the Spike software, and are trying to automate it? If so, read through our SCPI documentation in the SDK and let us know how you’re trying to connect (socket / VISA) and what errors you’re seeing. https://signalhound.com/news/scpi-automation-of-signal-hound-spectrum-analyzers/
EDouradoParticipantHello, support!
I am able to send and receive commands via SCPI,
I got some commands which return me.
I only need the power of the carrier center.Send Command:
:SENSe:FREQuency:CENTEr 99.3MHZ
:INITiate:IMMediate
:TRACe:DATA?Receiver Data :
6542,-98.46289063,-99.19606018,-99.44489288,-98.0976181,-97.15883636,-97.4758911 1,-97.79647064,-97.97171783,-97.94218445,-98.68054962,-100.169136,-101.2541962,- 100.2560349,-99.08863068,-98.55926514,-97.85823822,-96.90113068,-96.21005249,-97 .83423615,-98.40544891,-97.27323151,-96.30270386,-95.94580078,-96.12761688,-98.1 0494232,-103.3041,-103.0513687,-100.0662231,-98.58818054,-97.61444092,-97.103454 59,-97.44826508,-98.04976654,-98.26808167,-98.33592987,-99.24827576,-99.70206451 ,-99.36817169,-99.0928421,-97.52159882,-98.82128143,-100.0514145,-99.22328949,-9 8.52346039,-98.65546417,-99.05467224,-99.51422119,-99.09081268,-99.15896606,-100 .1868515,-99.79811096,-98.25203705,-97.85289764,-98.54919434,-100.5147705,-102.8 981934,-102.6172333,-100.9173965,-99.61625671,-98.61450958,-100.6425705,-99.9521 3318,-98.22180176,-98.22529602,-97.64253998,-97.21448517,-96.83650208,-96.592926 03,-97.50859833,-99.14573669,-99.68962097,-99.55441284,-99.99632263,-99.82548523 ,-97.64709473,-95.65724945,-95.74784851,-96.52140808,-97.48952484,-98.42012024,- 98.69261169,-97.20575714,-95.42430878,-95.02336121,-94.97708893,-95.40798187,-95 .65640259,-96.24620819,-97.67757416,-99.21216583,-99.86734009,-99.66433716,-98.6 4590454,-97.85160828,-98.26010132,-99.76503754,-99.57562256,-99.24624634,-99.588 85956,-100.1938858,-99.47446442,-97.81324768,-96.69555664,-96.77521515,-97.38481 903,-98.58740234,-100.5941772,-100.9588852,-99.25970459,-98.07510376,-99.2173309 3,-99.45111847,-98.69924164,-98.2208252,-98.48058319,-99.23540497,-99.72667694,- 100.3662338,-102.0394135,-100.0117264,-99.05536652,-100.3101196,-101.0761261,-10 0.9386292,-100.1937256,-99.43900299,-99.489151,-100.0117416,-100.8884583,-100.48 54507,-99.18213654,-97.7990036,-97.07662201,-96.73666382,-96.55735016,-96.741981 51,-97.4276123,-97.41982269,-98.04285431,-100.2022858,-102.8136749,-99.73994446, -96.05949402,-94.77999878,-94.66700745,-95.44135284,-95.75447845,-95.43018341,-9 5.8547287,-96.55780792,-96.75045776,-96.62052155,-96.50447083,-96.72234344,-96.7 0200348,-96.34072876,-95.65106201,-94.82169342,-94.38462067,-94.06463623,-93.579 5517,-93.81859589,-94.7397995,-95.4979248,-95.88500214,-96.25241089,-97.16742706 ,-99.34049988,-101.624382,-101.8510056,-102.2711868,-99.66683197,-96.00234222,-9 5.32386017,-95.02420807,-94.42063141,-94.26617432,-94.03636169,-94.98361206,-96. 0276413,-96.97673798,-98.03982544,-98.85301208,-99.4380722,-99.94282532,-99.8159 4849,-99.72930908,-100.4686966,-100.1748123,-99.56564331,-98.69709778,-96.924240 11,-96.02391815,-96.03517914,-96.38819122,-97.44089508,-98.57220459,-100.6308517 ,-101.4767532,-96.90076447,-95.27055359,-94.78518677,-95.10513306,-95.91521454,- 97.0554657,-99.34044647,-104.093338,-108.1054459,-104.8315277,-102.304985,-101.0 597916,-100.3953018,-99.87326813,-98.42695618,-95.77832794,-93.90401459,-93.1328 6591,-92.5234375,-91.89990234,-92.0348587,-93.29299927,-94.19754791,-94.63608551 ,-95.1394577,-95.68929291,-97.5794754,-102.2544632,-98.08083344,-94.45066833,-93 .39323425,-92.86456299,-92.03160858,-91.09150696,-90.72377777,-91.42727661,-92.8 2601166,-93.958992,-94.01535034,-93.60545349,-94.05156708,-95.39038849,-96.12797 546,-95.68417358,-95.35219574,-95.6787796,-96.67290497,-97.36656952,-95.5006485, -92.92227173,-91.64278412,-91.42285919,-91.80315399,-91.19506836,-90.75359344,-9 1.58180237,-92.07293701,-90.74176788,-89.6138916,-89.15270996,-89.35153961,-89.5 6285095,-93.77510071,-93.67250061,-92.71460724,-91.33165741,-89.88829803,-88.427 43683,-88.02562714,-87.76197815,-86.78136444,-85.28762054,-83.63253021,-82.49715 424,-81.97489929,-81.79734802,-81.89328766,-82.3039856,-82.91222382,-83.4746933, -83.69681549,-83.87837982,-83.79086304,-82.97475433,-82.4337616,-82.5960083,-82. 83579254,-82.66553497,-82.71549225,-83.80792236,-85.79917908,-88.21998596,-92.54 696655,-93.36394501,-90.48332214,-89.80364227,-89.22785187,-88.08600616,-87.2854 4617,-87.05947113,-87.30573273,-88.04935455,-88.94351196,-89.04431152,-86.350784 3,-83.21902466,-82.55050659,-82.99031067,-83.27043152,-83.09947205,-81.45944214, -78.41231537,-75.91213226,-74.69418335,-74.69743347,-75.29530334,-75.87563324,-7 6.87228394,-79.3730545,-83.03833008,-79.912323,-76.02971649,-74.39659882,-73.900 00153,-73.57546234,-73.39990234,-73.93652344,-75.45140839,-77.07301331,-77.71055 603,-77.88280487,-78.07700348,-78.06179047,-77.25205231,-77.82667542,-78.2642135 6,-77.2074585,-76.17933655,-76.05278015,-76.07808685,-75.48161316,-74.85629272,- 74.8121109,-74.61972809,-72.81034088,-70.61369324,-69.18466949,-68.59535217,-69. 22566223,-70.61036682,-70.07102966,-67.60116577,-64.79244232,-62.78641129,-61.87 493515,-61.70830536,-61.87569809,-62.49427032,-64.00222015,-66.60816956,-68.2203 9795,-65.66512299,-63.15242004,-62.01651382,-61.36813354,-60.9600029,-61.341465, -61.11775589,-61.70043182,-62.42147064,-63.42206955,-64.94403076,-67.19403839,-6 9.65842438,-71.99972534,-73.95527649,-73.48740387,-72.71097565,-72.63549042,-72. 66275024,-72.3795929,-71.45561981,-71.26812744,-71.29166412,-71.14395905,-70.841 98761,-70.65472412,-71.88948822,-74.70896912,-77.3605957,-71.92803192,-67.221504 21,-64.69902802,-63.60583115,-63.3174057,-63.41342926,-63.49717331,-63.84902573, -65.33016968,-66.27644348,-65.13699341,-63.98514938,-62.73163605,-61.67652512,-6 1.13687515,-60.77239609,-60.62166977,-60.61972046,-60.27229691,-59.69075394,-59. 48706055,-59.93124008,-60.76241302,-61.66643906,-61.96395111,-60.90875244,-59.23 722839,-58.17336273,-58.14369202,-59.01314163,-59.68540192,-58.64530945,-58.3938 9801,-58.36655807,-58.75482559,-58.21107864,-56.53520584,-55.45989227,-57.282600 4,-60.67780304,-58.87165451,-54.23655319,-51.32872009,-49.87469482,-49.41817093, -49.42931366,-49.41355133,-49.71232605,-51.00112915,-52.77627563,-52.9511795,-50 .97671509,-48.87048721,-47.70555115,-46.9189415,-46.11006165,-45.76274872,-45.89 824677,-46.01257324,-46.1721077,-46.73888779,-47.63607025,-48.97528839,-50.86821 747,-51.9470253,-51.38349915,-50.24449158,-49.15563583,-47.99434662,-46.96601105 ,-46.2976799,-45.77555847,-45.75406265,-46.52127457,-47.28237152,-48.15884018,-4 9.04429626,-49.68181229,-49.99712753,-50.06445694,-50.01821518,-52.53318024,-55. 04402542
AndrewModerator- This reply was modified 6 months, 1 week ago by Andrew.
Eduardo,
You have requested the entire sweep. There are two ways to retrieve the value at a specific frequency.
Using the trace data you have already requested, you could also request the :TRACe:XSTARt? and :TRACe:XINCrement? which allows you to determine the frequency of each point in the sweep using the equation freq = start + index * increment. Then you just need to find the index into the sweep that is closest to your desired frequency.
Alternatively, you could look at the SCPI marker commands, place a marker at the target frequency, then readback the marker amplitude value.
Both methods would result in the same final result.
Let me know if you have questions.
EDouradoParticipantThank you, as soon as possible I will test this command and post the results on the forum again.
Kindregards- AuthorPosts
You must be logged in to reply to this topic.