Page 1 of 1

minimal sweep frequency of Pitaya RCL meter???

Posted: Fri Jan 06, 2017 9:53 am
by accobrasp
Hello,
We need to use a bridge RLC with frequencies of sweeping ultra low, ideally down to the millihertz.
Which is the usable minimal frequency at present, and can one intend to modify the application to reach such frequencies

Thank you

Re: minimal sweep frequency of Pitaya RCL meter???

Posted: Fri Jan 06, 2017 10:08 pm
by Nils Roos
Hi,

from a look through the impedance analyzer sources (web-app controllerhf.so and lcr program), I'd expect that the application will not work correctly below 1Hz, because the sampling logic will be misconfigured at smaller frequencies.

The lowest frequency that the generator logic of the RP can produce is 0.116Hz. It is possible to adapt the application to work at that frequency, but if you need to go lower, you would have to design your own generator FPGA logic.

Re: minimal sweep frequency of Pitaya RCL meter???

Posted: Mon Feb 13, 2017 8:14 pm
by amin
Hii Nils Roos,

I want to edit https://github.com/RedPitaya/RedPitaya/ ... Test/lcr.c by my self.
i want to make some modification about increase sweep speed frequency.
can you teach me about how to edit lcr.c and install in redpitaya?
until now i can generate matlab initial lcr and matlab initial bode sucessfully, but i need more sweep speed more faster.

Re: minimal sweep frequency of Pitaya RCL meter???

Posted: Wed Feb 15, 2017 8:19 pm
by Nils Roos
Hi,
the easiest way to do it is in a remote shell on your STEMlab:
1. follow these instructions to check out the sources onto your STEMlab
2. go into the RedPitaya/Test/lcr directory and edit the sources
3. when you are finished, call "make" in that directory to generate the modified lcr application
4. execute "rw" to make the SD-card writeable, then copy the new lcr binary to /opt/redpitaya/bin

Re: minimal sweep frequency of Pitaya RCL meter???

Posted: Sat Feb 18, 2017 4:15 am
by amin
Nils Roos wrote:Hi,
the easiest way to do it is in a remote shell on your STEMlab:
1. follow these instructions to check out the sources onto your STEMlab
2. go into the RedPitaya/Test/lcr directory and edit the sources
3. when you are finished, call "make" in that directory to generate the modified lcr application
4. execute "rw" to make the SD-card writeable, then copy the new lcr binary to /opt/redpitaya/bin
Nils Roos,
i already make fork https://github.com/amin3vdc/RedPitaya
and I already finished doing practice modifying https://github.com/amin3vdc/RedPitaya/b ... ed_blink.c
and then i already get respond from update of github which is after i click commit
but when i try to compile with this step:
git clone https://github.com/RedPitaya/RedPitaya.git
cd RedPitaya
cd Examples/C
make digital_led_blink
cat /opt/redpitaya/fpga/fpga_0.94.bit > /dev/xdevcfg
LD_LIBRARY_PATH=/opt/redpitaya/lib ./digital_led_blink

i did not get difference respond, still default blinking led.
i try modified
root@rp-f044db:~/RedPitaya/Examples/C# fatal: destination path 'RedPitaya' already exists and is not an empty directory.
-bash: fatal:: command not found
but the respond is command not found

i try scp digital_led_blink root@192.168.11.12:/opt/redpitaya/lib/
the respond is
root@rp-f044db:~/RedPitaya/Examples/C# scp digital_led_blink root@192.168.11.12:/opt/redpitaya/lib/
root@192.168.11.12's password:
digital_led_blink: No such file or directory
but the respond is No such file or directory

please need advice

Re: minimal sweep frequency of Pitaya RCL meter???

Posted: Sat Feb 18, 2017 6:50 am
by amin
amin wrote:
Nils Roos wrote:Hi,
the easiest way to do it is in a remote shell on your STEMlab:
1. follow these instructions to check out the sources onto your STEMlab
2. go into the RedPitaya/Test/lcr directory and edit the sources
3. when you are finished, call "make" in that directory to generate the modified lcr application
4. execute "rw" to make the SD-card writeable, then copy the new lcr binary to /opt/redpitaya/bin
Nils Roos,
i already make fork https://github.com/amin3vdc/RedPitaya
and I already finished doing practice modifying https://github.com/amin3vdc/RedPitaya/b ... ed_blink.c
and then i already get respond from update of github which is after i click commit
but when i try to compile with this step:
git clone https://github.com/RedPitaya/RedPitaya.git
cd RedPitaya
cd Examples/C
make digital_led_blink
cat /opt/redpitaya/fpga/fpga_0.94.bit > /dev/xdevcfg
LD_LIBRARY_PATH=/opt/redpitaya/lib ./digital_led_blink

i did not get difference respond, still default blinking led.
i try modified
root@rp-f044db:~/RedPitaya/Examples/C# fatal: destination path 'RedPitaya' already exists and is not an empty directory.
-bash: fatal:: command not found
but the respond is command not found

i try scp digital_led_blink root@192.168.11.12:/opt/redpitaya/lib/
the respond is
root@rp-f044db:~/RedPitaya/Examples/C# scp digital_led_blink root@192.168.11.12:/opt/redpitaya/lib/
root@192.168.11.12's password:
digital_led_blink: No such file or directory
but the respond is No such file or directory

please need advice

OK problem is solved,
i to do this step:
i using eclipse and i can root and connect my github forx to eclipse.
Then i edit examples/digital_led_blink.c using eclipse and then with easily only need save as
goto remote shell of eclipse and doing this step:
root@rp-f044db:~/RedPitaya/Examples/C#

make CROSS_COMPILE=arm-linux-gnueabi- clean all
make digital_led_blink

cat /opt/redpitaya/fpga/fpga_0.94.bit > /dev/xdevcfg
LD_LIBRARY_PATH=/opt/redpitaya/lib ./digital_led_blink
Blinkbro LED[0]

Thanks!!!

Re: minimal sweep frequency of Pitaya RCL meter???

Posted: Sat Feb 18, 2017 7:12 am
by amin
amin wrote:
amin wrote:
Nils Roos wrote:Hi,
the easiest way to do it is in a remote shell on your STEMlab:
1. follow these instructions to check out the sources onto your STEMlab
2. go into the RedPitaya/Test/lcr directory and edit the sources
3. when you are finished, call "make" in that directory to generate the modified lcr application
4. execute "rw" to make the SD-card writeable, then copy the new lcr binary to /opt/redpitaya/bin
Nils Roos,
i already make fork https://github.com/amin3vdc/RedPitaya
and I already finished doing practice modifying https://github.com/amin3vdc/RedPitaya/b ... ed_blink.c
and then i already get respond from update of github which is after i click commit
but when i try to compile with this step:
git clone https://github.com/RedPitaya/RedPitaya.git
cd RedPitaya
cd Examples/C
make digital_led_blink
cat /opt/redpitaya/fpga/fpga_0.94.bit > /dev/xdevcfg
LD_LIBRARY_PATH=/opt/redpitaya/lib ./digital_led_blink

i did not get difference respond, still default blinking led.
i try modified
root@rp-f044db:~/RedPitaya/Examples/C# fatal: destination path 'RedPitaya' already exists and is not an empty directory.
-bash: fatal:: command not found
but the respond is command not found

i try scp digital_led_blink root@192.168.11.12:/opt/redpitaya/lib/
the respond is
root@rp-f044db:~/RedPitaya/Examples/C# scp digital_led_blink root@192.168.11.12:/opt/redpitaya/lib/
root@192.168.11.12's password:
digital_led_blink: No such file or directory
but the respond is No such file or directory

please need advice

OK problem is solved,
i to do this step:
i using eclipse and i can root and connect my github forx to eclipse.
Then i edit examples/digital_led_blink.c using eclipse and then with easily only need save as
goto remote shell of eclipse and doing this step:
root@rp-f044db:~/RedPitaya/Examples/C#

make CROSS_COMPILE=arm-linux-gnueabi- clean all
make digital_led_blink

cat /opt/redpitaya/fpga/fpga_0.94.bit > /dev/xdevcfg
LD_LIBRARY_PATH=/opt/redpitaya/lib ./digital_led_blink
Blinkbro LED[0]

Thanks!!!

Nils Roos,

but how to edit RedPitaya/Test/bode.c
and save to STEMlab
and running in matlab.
because in bode folder not only bode.c, but another c and fpga file

Re: minimal sweep frequency of Pitaya RCL meter???

Posted: Sat Feb 18, 2017 7:13 am
by amin
until now i can operate /opt/redpitaya/bin/bode in matlab but i want to edit modified bode.c

Re: minimal sweep frequency of Pitaya RCL meter???

Posted: Sat Feb 18, 2017 8:30 am
by amin
the problem is solved
i doing like this:
Edit .c
Save
root@rp-f044db:~/RedPitaya/Test/bode#
make bode
check: LD_LIBRARY_PATH=/opt/redpitaya/bin ./bode
copy: scp bode root@192.168.11.12:/opt/redpitaya/bin/
test in matlab