Hello All,
How to call or execute API command through TES.
Kind Regards
Arash
Hello All,
How to call or execute API command through TES.
Kind Regards
Arash
Hi Arash,
API's can be executed through the IronPython scripting window. This is detailed in the user guide in the Transceiver Evaluation Software (TES) -> IronPython Scripting section.
We recommend…
Hi Arash,
Can you elaborate on what you mean by "no success"?
For IronPython scripting, you need to use the Pythonic form of the API and not the C format given in the doxygen file. For example…
Hi Arash,
API's can be executed through the IronPython scripting window. This is detailed in the user guide in the Transceiver Evaluation Software (TES) -> IronPython Scripting section.
We recommend to use this for small scripts and quick experiments as it's not suitable for more detailed applications.
Best Regards,
Conrad
Dear Conrad,
Thank you for your answer.
I tried to call the API function for shutdown (adi_adrv9001_Shutdown()), but no success.
I added the command at the end of default script in python editor.
Kind Regards
Arash
Hi Arash,
Can you elaborate on what you mean by "no success"?
For IronPython scripting, you need to use the Pythonic form of the API and not the C format given in the doxygen file. For example, in this case, the correct API would be "Adrv9001.core.Shutdown()".
Regards,
Conrad
Hi Conrad,
Thank you for the reply.
Where should I find the python format of the doxygen file?
I'm trying to soft shut down the carrier board. from the user guide : ""
I clicked on the shutdown platform in the file tab of the TES GUI but still the LED on ADRV9002 blinking like the same state before shutdown!!!
Then I press and hold SW9 switch on the carrier board(exactly as explained in the manual) but all 4 GPIO LEDs on the ZYNQ platform do not blink together that I can softly turn off the board.
Kind Regards
Arash
Hi Arash,
Ok, I understand. That API will not help you here. That API is to shutdown the ADRV9001 device and not the FPGA platform.
If shutting down the platform won't work from TES, I would suggest that you log in to the platform itself to shut it down.
I use Putty to SSH into the device. The default username is "root" and password "analog". From there you can run "sudo shutdown" or "sudo reboot".
Best Regards,
Conrad
Dear Conrad
That API is to shutdown the ADRV9001 device and not the FPGA platform.
I know this. But why does the procedure not work for me?
It means, I need to have always the UART serial port connected.
I would be grateful if you let me know where can I find the python version of doxygen?
Thank you
Kind Regards
Arash
Hi Arash,
We're certainly going to help you with the correct procedure but initially we may need to work around it to get into the correct state.
Can you confirm that you can successfully connect to TES and program the part? Can you also confirm that you can connect to the platform via SSH?
Unfortunately, we do not provide a python version of the doxygen file. All the APIs work the same on all languages. You just need to write it with Python syntax. The best way to get familiar with this is to look through the code examples for IronPython and look at the Python driver debugger window.
Best Regards,
Conrad
Hello Conrad,
I can successfully connect to the board in TES, Program it, I can also connect to the board via SSH.
Thanks
Arash
Thanks Arash,
What version of TES are you using? When you connect to device in TES, on the connection page, there is "System info" box. Can you screenshot this and send it here? There may be some kind of version mismatch.
Can you login to the platform via SSH and run the "sudo shutdown" command? Does this successfully turn off the platform?
Best Regards,
Conrad
Hello Conrad,
Here the screen shot from system info:
I think I know where the problem is from! My board silicon revision is B0 and not C0. Perhaps this is the issue!
When I try to perform init calibration or use an external LO, the calibration fails and I get the following error:
I can loging via SSH and shutdown the linux kernel.
Kind Regards
Arash