New to Redpitaya
-
- Posts: 29
- Joined: Thu Nov 27, 2014 5:21 am
Re: New to Redpitaya
ok thank you...
Can you tell me the perfect procedure to modify the acquire utility...??
In which environment i should work??
if i program it using C in Eclipse then what cross compiler should i use??
and further which memory it will use??
in short please give me detail idea about the procedure...
thank you...
Can you tell me the perfect procedure to modify the acquire utility...??
In which environment i should work??
if i program it using C in Eclipse then what cross compiler should i use??
and further which memory it will use??
in short please give me detail idea about the procedure...
thank you...
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: New to Redpitaya
Hi,
I'd recommend to use the SDK to build applications for the Red Pitaya. It can be set up quickly to target the Red Pitaya, see this thread.
When you have created a new application project, import the acquire sources into your new project. Right-click the "src" folder in your project, "Import..." from filesystem, select all .c and .h files in Test/acuire . You may also need to import "version.h" from Applications/scope/src .
Then add the required external libraries to the linker settings (acquire needs the standard libs "m" and "pthread"). Right-click your project, navigate to libraries and add "m" and "pthread": You may also want to remove the ".elf" extension, in "Settings" select the "Build Artifact"-tab and clear the extension.
Then hit the build button.
After you have verified that everything works as expected, go and modify acquire to do what you need it to.
I'd recommend to use the SDK to build applications for the Red Pitaya. It can be set up quickly to target the Red Pitaya, see this thread.
When you have created a new application project, import the acquire sources into your new project. Right-click the "src" folder in your project, "Import..." from filesystem, select all .c and .h files in Test/acuire . You may also need to import "version.h" from Applications/scope/src .
Then add the required external libraries to the linker settings (acquire needs the standard libs "m" and "pthread"). Right-click your project, navigate to libraries and add "m" and "pthread": You may also want to remove the ".elf" extension, in "Settings" select the "Build Artifact"-tab and clear the extension.
Then hit the build button.
After you have verified that everything works as expected, go and modify acquire to do what you need it to.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 29
- Joined: Thu Nov 27, 2014 5:21 am
Re: New to Redpitaya
Hey... u gave me the solution to change acquire utility in terms of trigger mode...bcoz acquire.c is programmed in auto triggering mode.. so can give me more detail about where to change??
or in a program where should i make this change??
and what kind of change??
or in a program where should i make this change??
and what kind of change??
-
- Posts: 29
- Joined: Thu Nov 27, 2014 5:21 am
Re: New to Redpitaya
Also, can you give me guideline about my application??As I am new to this redpitaya...
i have an application in that i want acquire data at particular triggered event..event rate may be of 50ms... during this time i have to acquire the data and it should be stored in some place (?? i doono where i can put it)...
So first of all, 1) redpitaya should perform multiple triggering...for that what should I do??whether i should change in acquire utility in C code?? or anything else??
2) each data should be stored in some memory so that it can be retrieved from it for post processing...for this what should i do???how many choices are available to me??in which environment i can perform this task?? whether Vivado will helpful to me or not???
3)what is actual difference between vivado and programming in C
Please give me desirable answer...as i am new to red pitaya, there are so many confusions in mind....kindly needed you support...thank you...
i have an application in that i want acquire data at particular triggered event..event rate may be of 50ms... during this time i have to acquire the data and it should be stored in some place (?? i doono where i can put it)...
So first of all, 1) redpitaya should perform multiple triggering...for that what should I do??whether i should change in acquire utility in C code?? or anything else??
2) each data should be stored in some memory so that it can be retrieved from it for post processing...for this what should i do???how many choices are available to me??in which environment i can perform this task?? whether Vivado will helpful to me or not???
3)what is actual difference between vivado and programming in C
Please give me desirable answer...as i am new to red pitaya, there are so many confusions in mind....kindly needed you support...thank you...
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: New to Redpitaya
kavilshah wrote:3)what is actual difference between vivado and programming in C
- Vivado is a platform to develop programmable logic for Xilinx FPGAs. Think of it as a way to add new devices to your Red Pitaya.
- C programs on the other hand run on the ARM cores within the linux OS. They can use the devices that the Red Pitaya offers (existing and new). C programs can be written and compiled with the Xilinx SDK, as described earlier.
The simplest way to make acquire do an acquisition triggered by an external trigger signal is to change the parameter presets in Test/acquire/acquire.c (line 55+)kavilshah wrote:1) redpitaya should perform multiple triggering...for that what should I do??whether i should change in acquire utility in C code?? or anything else??
Code: Select all
/** Oscilloscope module parameters as defined in main module
* @see rp_main_params
*/
//float t_params[PARAMS_NUM] = { 0, 1e6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
// 3rd value is trigger mode (mode 1 = normal)
// 4th value is trigger source (source 6 = external trigger rising edge)
float t_params[PARAMS_NUM] = { 0, 1e6, 1, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
You can redirect the output of the acquire utility to a file with standard linux console mechanisms ("acquire 16384 >samples.txt"). Then do with the file whatever you want.kavilshah wrote:2) each data should be stored in some memory so that it can be retrieved from it for post processing...for this what should i do???how many choices are available to me??in which environment i can perform this task?? whether Vivado will helpful to me or not???
If you are so inclined you could also put some code into acquire to make it write directly to a file instead of standard out, or have it send the data over the network, or, or, or. There are many choices available to you, but since you say yourself that you are new to the platform, it's best to stick to something simple like what I mentioned above.
-
- Posts: 29
- Joined: Thu Nov 27, 2014 5:21 am
Re: New to Redpitaya
thank you so much nils..
as per your answer for the first question, i can change parameters in acquire.c file...
but my file is located in /opt/src/utils/acquire/acquire.c....so basically it is read only file...and i am unable to change its read write access by changing its property...
so how to make change in it...??
hope you got my question...
as per your answer for the first question, i can change parameters in acquire.c file...
but my file is located in /opt/src/utils/acquire/acquire.c....so basically it is read only file...and i am unable to change its read write access by changing its property...
so how to make change in it...??
hope you got my question...
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: New to Redpitaya
This is not the file you are looking for ...kavilshah wrote:but my file is located in /opt/src/utils/acquire/acquire.c....so basically it is read only file...and i am unable to change its read write access by changing its property... so how to make change in it...??
You can not compile sources on the Red Pitaya, because it has neither compiler nor toolchain installed. In your local Red Pitaya git repository, look for the file Test/acquire/acquire.c . Do your changes there, build the acquire binary and copy that to your Red Pitaya, into /opt/bin (by following these instructions).
-
- Posts: 29
- Joined: Thu Nov 27, 2014 5:21 am
Re: New to Redpitaya
Thank you so much nils...
-
- Posts: 29
- Joined: Thu Nov 27, 2014 5:21 am
Re: New to Redpitaya
hii Nils...
need your help... i am unable to build binary for acquire.
every time i got the error binary not found!!
please can you tell me whether i missed any steps or not...
or tell me what i have to do actually.....
thank you...
need your help... i am unable to build binary for acquire.
every time i got the error binary not found!!
please can you tell me whether i missed any steps or not...
or tell me what i have to do actually.....
thank you...
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: New to Redpitaya
You did not provide enough information to enable helping you.
- What do you do (step by step) ?
- What happens at each step ?
- Where does the "binary not found" error appear ?
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: Google [Bot] and 38 guests