Forum

Important Notice for New User Registrations

To combat an increasing number of spam and bot registrations, we now manually approve all new user registrations. While this may cause a delay until your account is approved, this step is essential to ensure the quality and security of this forum.

To help us verify your registration as legitimate, please use a clear name as user name or an official email address (such as a work, university, or similar address). If you’re concerned that we may not recognize your registration as non-spam, feel free to email us at with a request to approve your username.

Please or Register to create posts and topics.

whether do SIL running in ubuntu system have some difference?

Page 1 of 2Next

Dear developer:
the sample code have not the system for ubuntu, so is it okay to run in ubuntu system.

Hi Guoyue,

QBlade SIL can be run under Windows or Linux operating systems, where the SIL samples are either based on Matlab or Python.

But maybe I didnt understand correctly, could you clarify your question?

BR,

David

Thank for your reply.Is there other different request for path.for example r” or b”.Because i have sucessfully simulated in windows but failed in ubuntu.

Hello,

the QBlade Linux archive includes a shell script named run_pythonInterface.sh, which sets the required LD_LIBRARY_PATH environment variable. This ensures that the QBlade library can correctly locate its dependent shared libraries. When I run this script, the SIL interface sample script (sampleScript.py) executes without any issues.

Best regards,

David

Yes,if i don’t run the function “loadSimDefinition”,it would have a good simulation.But if i load the .sim file for example(b’.\test.sim’),it will end at just few seconds, and no valid result.
I don’t know what reasons,can you give an example for me. Thanks for you.

Hi Guoyue,

could you clarify your question? I dont understand what issue you are having.

Maybe also share console outputs that highlight the problem.

BR,

David

Thanks for you reply.
# Load and run simulation using QBlade DLL(Windows)/SO(Linux)
QBLADE = QBladeLibrary(self.file_path[“dll_file”]) # type: ignore
QBLADE.createInstance(self.device, 32)
path: str = SIM_file_path if SIM_file_path is not None else self.file_path[‘base_sim’]
path_b = path.encode()
QBLADE.loadSimDefinition(path_b)
QBLADE.loadProject(self.str_to_byte(self.file_path[“QBR_file”]))
QBLADE.initializeSimulation()
This is my codes for running the simualtion,it can be run.But the .sim is not be loaded, in the other words,the project running the default simulation, not the expected sim file.

Hi,

the issue is that you are loading the .qpr project file after you have loaded the .sim file. This “overwrites” the previously loaded .sim file with the .qpr file when you are startintg the simulation.

To use the .sim file you just have to remove ” QBLADE.loadProject(self.str_to_byte(self.file_path[“QBR_file”]))” from your script.

BR,

David

 

Thanks for you reply. This means there is some conflicts between QBLADE.loadProject and QBLADE.loadSimDefinition?
Just using the one of them?

Hi,

both .sim and .qpr files describe a simulation that the SIL interface can load, but the interface can host only one simulation at a time.

Loading a second simulation simply replaces the first; the most recently loaded simulation is the one that runs.

Could you tell me what you hoped to achieve by loading both files?

Best regards,

David

 

Page 1 of 2Next

Scroll to Top