Was rp_Init called

Applications, development tools, FPGA, C, WEB
Post Reply
omereis
Posts: 21
Joined: Mon Jan 27, 2020 1:10 pm

Was rp_Init called

Post by omereis » Mon Jul 04, 2022 10:34 am

Hi All,
Is there a way to find out there was already a call to rp_Init()?

Thanks in advance,
Omer.

User avatar
M0JPI
Posts: 19
Joined: Wed Jun 15, 2022 8:06 pm
Location: Cumbria, UK

Re: Was rp_Init called

Post by M0JPI » Mon Jul 04, 2022 3:32 pm

I've not used the C API much, but there is a rp_IsApiInit() function that returns g_api_state.

I can't find an official example in the Red Pitaya documentation, but the source for the API is available on GitHub.

I did find KevinR117 has a GitHub repository that uses it in C++. He is using it with an if statement, so it must evaluate to false if the Red Pitaya API is not initialised.

John M0JPI

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 34 guests