[beagleboard] Easy Interface for programming Beaglebone, (Kimat Interface)

2016-03-10 Thread Francisco Ignacio Matador Baena


For the ones starting with Beaglebone, Kimat Interface has been developed 
to create projects using C language, making simple the process of 
implementation and testing.

 

It integrates an auto-compilation module, compatible with many of the 
existing C libraries, which will reduce considerably the time required to 
develop our application. One of the benefits of the auto-compilation is 
that the user will not need to define the headers in the application, as it 
is required in standard C codes, because they are already implemented in 
the Interface itself.


*Kimat Interface Specifications*


   - 2 x TCP links (possibility of being configured as Master or Server).
   - 1 x S7 link (SIEMENS protocol).
   - 8 x PWM signals.
   - 4 x Analog inputs.
   - 4 x Analog Outputs (MCP4728 D/A converter).
   - 4 x Digital Inputs.
   - 4 x Digital Outputs.
   - Robust derivation (1th and 2nd Order).
   - Time Sync with external hardware.
   - Ordinary Differential Equation Solver ( Simulation module).   


For additional information: *http://www.kimatsystems.com/ 
*





-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Easy Interface to program Beaglebone Black. (Kimat Interface)

2016-03-10 Thread Francisco Ignacio Matador Baena


For the ones starting with Beaglebone, Kimat Interface has been developed 
to create projects using C language, making simple the process of 
implementation and testing. 

 

It integrates an auto-compilation module, compatible with many of the 
existing C libraries, which will reduce considerably the time required to 
develop our application. One of the benefits of the auto-compilation is 
that the user will not need to define the headers in the application, as it 
is required in standard C codes, because they are already implemented in 
the Interface itself. 

In following tutorial we will describe the structure of Kimat Interface, 
how to access to the different modules and create our first application.

*Kimat Interface Specifications* 


   - 2 x TCP links (possibility of being configured as Master or Server).
   - 1 x S7 link (SIEMENS protocol).
   - 8 x PWM signals.
   - 4 x Analog inputs.
   - 4 x Analog Outputs (MCP4728 D/A converter).
   - 4 x Digital Inputs.
   - 4 x Digital Outputs.
   - Robust derivation (1th and 2nd Order).
   - Time Sync with external hardware.
   - Ordinary Differential Equation Solver ( Simulation module)




 For additional information: www.kimatsystems.com





-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Easy Interface to program Beaglebone Black. (Kimat Interface)

2016-03-10 Thread Francisco Ignacio Matador Baena
For the ones starting with Beaglebone Black, Kimat Interface has been 
developed to create projects using C language, making simple the process of 
implementation and testing.

It integrates an auto-compilation module, compatible with many of the 
existing C libraries, which will reduce considerably the time required to 
develop our application. One of the benefits of the auto-compilation is 
that the user will not need to define the headers in the
application, as it is required in standard C codes, because they are 
already implemented in the Interface itself.

*Kimat Interface Specifications*

• 2 x TCP links (possibility of being configured as Master or Server).
• 1 x S7 link (SIEMENS protocol).
• 8 x PWM signals.
• 4 x Analog inputs.
• 4 x Analog Outputs (MCP4728 D/A converter).
• 4 x Digital Inputs.
• 4 x Digital Outputs.
• Robust derivation (1th and 2nd Order).
• Time Sync with external hardware.


For more info, refer to: www.kimatsystems.com






-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Ethernet communication in BBB

2014-07-17 Thread ignacio . matador


El miércoles, 16 de julio de 2014 13:59:53 UTC+2, ignacio...@gmail.com 
escribió:
>
> Hello,
>
> I have a beaglebone black and I am looking the way of communicating with a 
> PC.
> Do you know any simple program in ".c" to send data from the BBB to the PC 
> (windows) using the ethernet port? I could not find anything in inernet
>
> Thank you so much
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Ethernet communication in BBB

2014-07-17 Thread ignacio . matador


Hello

Thank you so much

I have developed 2 programs, in #c, which are running in my beaglebone and 
my pc (windows). I would like to integrate some code into these programs to 
be able to send data from my beaglebone to my pc as fast as possible.

These is the reason why i am looking for a simple code which i can modify 
and adapt to my code according to my requirements. Could you help me with 
it? O tell me where can i find any example?

Sorry for disturbing you and thank you so much

El miércoles, 16 de julio de 2014 16:03:08 UTC+2, wharms escribió:
>
>
>
> Am 16.07.2014 13:59, schrieb ignacio...@gmail.com : 
> > Hello, 
> > 
> > I have a beaglebone black and I am looking the way of communicating with 
> a 
> > PC. 
> > Do you know any simple program in ".c" to send data from the BBB to the 
> PC 
> > (windows) using the ethernet port? I could not find anything in inernet 
> > 
>
> hi ignacio, 
> there are many solutions: 
>
> look for "busybox" 
> compile ftp-server and client 
> use it 
>
> a clever one requieres "unix-services for windows" 
> install knfs-server on bbb 
> export desired directory 
> mount on windows 
>
> start sshd 
> copy data via putty from/to windows 
>
> help that helps, 
> re, 
>  wh 
>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Ethernet communication in BBB

2014-07-16 Thread ignacio . matador
Hello,

I have a beaglebone black and I am looking the way of communicating with a 
PC.
Do you know any simple program in ".c" to send data from the BBB to the PC 
(windows) using the ethernet port? I could not find anything in inernet

Thank you so much

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] PWM PRU and AI on beaglebone black

2013-12-08 Thread ignacio . matador


hi,

I am not really familiarise with assembler. I have a beagle bone black, i 
followed several examples that I found in internet regarding how to use pwm 
with PRU ports and it works properly in my BBB.

As I said I am not familiarise with assembler and PRU. I wonder if anybody 
could help me on that. I need to use 4 pwm and 4 AI in beagle bone, but I 
don´t know exactly how to do it. I wonder if you could modificate pwm.c and 
pwm.p  to use these signals and also BB-BONE-PRU-00A0.dts

I will really appreciate it if you can help me on that, because i am not 
sure if i should copy paste the same code several times or create a bucle 
to get the mod efficient way.

thank you so much and sorry for the inconveniences

regards

*1) *BB-BONE-PRU-00A0.dts

> /*
>
> * pru dts file BB-BONE-PRU-00A0.dts
>
> */
>
> /dts-v1/;
>
> /plugin/;
>
>  
>
> / {
>
>   compatible = "ti,beaglebone", "ti,beaglebone-black";
>
>  
>
>   /* identification */
>
>   part-number = "BB-BONE-PRU";
>
>   version = "00A0";
>
>   exclusive-use =
>
> "P8.12";
>
>  
>
>   fragment@0 {
>
> target = <&am33xx_pinmux>;
>
> __overlay__ {
>
>   mygpio: pinmux_mygpio{
>
> pinctrl-single,pins = <
>
>   0x30 0x06
>
>   >;
>
>   };
>
> };
>
>   };
>
>  
>
>   fragment@1 {
>
> target = <&ocp>;
>
> __overlay__ {
>
>   test_helper: helper {
>
> compatible = "bone-pinmux-helper";
>
> pinctrl-names = "default";
>
> pinctrl-0 = <&mygpio>;
>
> status = "okay";
>
>   };
>
> };
>
>   };
>
>  
>
>   fragment@2{
>
>   target = <&pruss>;
>
> __overlay__ {
>
>   status = "okay";
>
> };
>
>   };
>
> };
>
>
>

*2) *mytest.c

 

>
>> /**
>>  
>
> * Include Files * 
>
>
>> **/
>>  
>
> // Standard header files
>
> #include  
>
> #include  
>
> #include  
>
> #include  
>
> #include  
>
> #include  
>
> #include  
>
> //#include 
>
> // Driver header file
>
> #include "prussdrv.h"
>
> #include   
>
> #include 
>
>
>>
>> /**
>>  
>
> * Local Macro Declarations * 
>
>
>> **/
>
> #define PRU_NUM   0 
>
>
>> int main(void){
>
>
>> unsigned int ret;
>
> unsigned int i,value;
>
>
>> tpruss_intc_initdata pruss_intc_initdata = PRUSS_INTC_INITDATA;
>
> printf("\nINFO: Starting %s example.\r\n", "PWM Demo with PRU");
>
> // Initialize the PRU 
>
> prussdrv_init();
>
> // Open PRU Interrupt 
>
> ret = prussdrv_open(PRU_EVTOUT_0);
>
> if (ret)
>
> {
>
> printf("prussdrv_open open failed\n");
>
> return (ret);
>
> }
>
>
>> // Get the interrupt initialized
>
> prussdrv_pruintc_init(&pruss_intc_initdata);
>
>
>> //Execute example on PRU
>
> printf("\tINFO: Executing example.\r\n");
>
> prussdrv_exec_program(PRU_NUM, "./mytest.bin");
>
> for (i = 0; i < 10; i++) {
>
> usleep(100);
>
> value=(sin(i*0.01)+1)*120+5;
>
> prussdrv_pru_write_memory(PRUSS0_PRU0_DATARAM, 0x0040, &value, 
>> sizeof(unsigned int));
>
> printf("(%d)\n-> ",value);
>
> }
>
>
>>
>> // Wait until PRU0 has finished execution
>
> printf("\tINFO: Waiting for HALT command.\r\n");
>
>  prussdrv_pru_wait_event(PRU_EVTOUT_0);
>
> printf("\tINFO: PRU completed transfer.\r\n");
>
> prussdrv_pru_clear_event(PRU0_ARM_INTERRUPT);
>
>
>> // Disable PRU and close memory mapping
>
> prussdrv_pru_disable(PRU_NUM);
>
> prussdrv_exit();
>
> return(0);
>
> }
>
>
>>
*3) mytest.p*

.origin 0
>
> .entrypoint START
>
>
>> #include "mytest.hp"
>
>
>> #define GPIO1 0x4804c000
>
> #define GPIO_CLEARDATAOUT 0x190
>
> #define GPIO_SETDATAOUT 0x194
>
> #define MEM_START 0x0100
>
>
>> START:
>
> //set ARM such that PRU can write to GPIO
>
> LBCO r0, C4, 4, 4
>
> CLR r0, r0, 4
>
> SBCO r0, C4, 4, 4
>
>
>>
>>
>> CLR r30.t14
>
> SET r30,14
>
>
>> //for(r0=0x010;r0>0;ro--){
>
> MOV r0,0x0100
>
>
>>
>> LOOP1:
>
>   CLR r30.t14 //clear pin GPIO1_12
>
>
>>   MOV r18, MEM_START
>
>   LBBO r1, r18, 0, 4
>
>   AND r1, r1, 0x00FF
>
> DELAY2:   SUB r1, r1 , 1 //if r1=100 =>delay 1us
>
>   QBNE DELAY2, r1, 0 
>
>
>>   SET r30,14 //set pin GPIO44
>
>   MOV r18, MEM_START
>
>   LBBO r1, r18, 0, 4
>
>   AND r1, r1, 0x00FF
>
>   MOV r2, 0x0100
>
>   RSB r1, r1, r2
>
> DELAY3:   SUB r1, r1 , 1
>
>   QBNE DELAY3, r1, 0
>
>
>>   SUB r0, r0, 1
>
>   QBNE LOOP1, r0, 0
>
>  
>
>
>>
>>   MOV r31.b0, PRU0_ARM_INTERRUPT+16  //tell the c program we are 
>> done 
>
> //(just remove it if your c program does not handle the interrupt)
>
>   HALT  // Halt the processor
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups

Re: [beagleboard] elapsed time microseconds c++

2013-10-07 Thread ignacio . matador
hi,

Looks like there is something wrong in eclipse. I compiled the code 
gettimeofday directly from ubuntu terminal and it works properly. Also the 
code works in my beaglebone :-)

BUT... :-S. I am trying to run my code. It compiles and run under ubuntu 
but when i try to run in in my beaglebone i got the error:
-sh: ./hil: cannot execute binary file

I am using the following command in my beaglebone:
chmod ugo+x hil
./hil

I am using this includes:
stdio.h
stdlib.h
math.h
sys/time.h

any suggestion? thanks in advance to everybody


On Friday, October 4, 2013 5:33:04 PM UTC+2, ignacio...@gmail.com wrote:
>
> Hi,
>
> My big code compiles properly in eclipse. As you said I started with hello 
> world and small codes. My problems became only measuring elapsed time. With 
> small codes, just to measure elapsed time it still doesn't work. I tried 
> with clock() as i said but the elapsed time showed in the terminal is 
> wrong. Now I am trying with the code supplied by you, because i would like 
> to try with gettimeofday but errors commented before.
>
> I will put my compiler, linker and assembler later. I am not in my 
> personal computer now.
>
> really thanks for your help.
>
> El viernes, 4 de octubre de 2013 16:59:35 UTC+2, Dieter Wirz escribió:
>>
>> Hi Ignacio 
>> On Fri, Oct 4, 2013 at 10:06 AM,   wrote: 
>> > My aim is program in ansi c my beaglebone black. I am using an ubuntu 
>> vm under mac os. 
>> > 
>> > I am new in ubuntu and eclipse and this is the main problem, i guess 
>> :-S 
>> > 
>> > I have a model that i would like to run into BB but i have problems to 
>> measure the elapsed time, i tried before with clock(), but looks like it 
>> doesn't measure properly the time. For this i am trying with gettimeofday, 
>> but i have the problems that i commented previously. 
>> > 
>> > Looks like if eclipse could not link time.h and for this appear these 
>> errors. But maybe i am wrong 
>> Eclipse  with an installed crosscompiler is only one way to go and it 
>> certainly makes sense if you have a huge Project with thousands of 
>> lines of code, X, etc. But I usually code only small terminal programs 
>> (in ANSI C) that read in some ports, write to some ports, do some 
>> calculations and write the results to a excel readable text file. For 
>> such problems I am too lazy to install Eclipse with all the gnuaebi 
>> etc. stuff 
>> So, I edit and compile my programs directly on BB, usually over ssh 
>> and sftp (usually from my Mac, with Cyberduck). The only thing you 
>> need on BB is gcc and if you have a bit bigger projects make. 
>>
>> Starting with "Hello World" is always a good idea 
>> Connect to your BB with ssh 
>> nano helloworld.c 
>> type in your code, quit and save with "ctrl x" 
>> gcc -Wall helloworld.c -o helloworld 
>> And run your program with 
>> ./helloworld 
>> you need the ./ for running terminal programs in the same folder 
>>
>> Have fun! 
>>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] elapsed time microseconds c++

2013-10-04 Thread ignacio . matador
Hi,

My big code compiles properly in eclipse. As you said I started with hello 
world and small codes. My problems became only measuring elapsed time. With 
small codes, just to measure elapsed time it still doesn't work. I tried 
with clock() as i said but the elapsed time showed in the terminal is 
wrong. Now I am trying with the code supplied by you, because i would like 
to try with gettimeofday but errors commented before.

I will put my compiler, linker and assembler later. I am not in my personal 
computer now.

really thanks for your help.

El viernes, 4 de octubre de 2013 16:59:35 UTC+2, Dieter Wirz escribió:
>
> Hi Ignacio 
> On Fri, Oct 4, 2013 at 10:06 AM,  > 
> wrote: 
> > My aim is program in ansi c my beaglebone black. I am using an ubuntu vm 
> under mac os. 
> > 
> > I am new in ubuntu and eclipse and this is the main problem, i guess :-S 
> > 
> > I have a model that i would like to run into BB but i have problems to 
> measure the elapsed time, i tried before with clock(), but looks like it 
> doesn't measure properly the time. For this i am trying with gettimeofday, 
> but i have the problems that i commented previously. 
> > 
> > Looks like if eclipse could not link time.h and for this appear these 
> errors. But maybe i am wrong 
> Eclipse  with an installed crosscompiler is only one way to go and it 
> certainly makes sense if you have a huge Project with thousands of 
> lines of code, X, etc. But I usually code only small terminal programs 
> (in ANSI C) that read in some ports, write to some ports, do some 
> calculations and write the results to a excel readable text file. For 
> such problems I am too lazy to install Eclipse with all the gnuaebi 
> etc. stuff 
> So, I edit and compile my programs directly on BB, usually over ssh 
> and sftp (usually from my Mac, with Cyberduck). The only thing you 
> need on BB is gcc and if you have a bit bigger projects make. 
>
> Starting with "Hello World" is always a good idea 
> Connect to your BB with ssh 
> nano helloworld.c 
> type in your code, quit and save with "ctrl x" 
> gcc -Wall helloworld.c -o helloworld 
> And run your program with 
> ./helloworld 
> you need the ./ for running terminal programs in the same folder 
>
> Have fun! 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] elapsed time microseconds c++

2013-10-04 Thread ignacio . matador
My aim is program in ansi c my beaglebone black. I am using an ubuntu vm under 
mac os.

I am new in ubuntu and eclipse and this is the main problem, i guess :-S

I have a model that i would like to run into BB but i have problems to measure 
the elapsed time, i tried before with clock(), but looks like it doesn't 
measure properly the time. For this i am trying with gettimeofday, but i have 
the problems that i commented previously.

Looks like if eclipse could not link time.h and for this appear these errors. 
But maybe i am wrong

Really thanks to everybody for your help

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] elapsed time microseconds c++

2013-10-03 Thread ignacio . matador
Hi,

sorry it was my fault. I only have problems with:
>>> Field "tv_sec" could not be resolved 
>>> Field "tv_usec" could not be resolved 

the issue is that i can not find gettimeofday.c in ubuntu. I only find 
/usr/share/man/man2/gettimeofday.2.gz

sorry, i am quite new with this. how could i solve this issue?

Thank you so much

El miércoles, 2 de octubre de 2013 17:04:18 UTC+2, Tux Leonard escribió:
>
> The code works fine. Even with Eclipse.
>
> How is it posible that you get errors about cout, endl and std. Those 
> commands are not in the posted code.
>
>
> 2013/10/2 Dieter Wirz >
>
>> On Tue, Oct 1, 2013 at 11:14 PM,  > 
>> wrote:
>> >>> hi, Sorry for disturbing you. How can I compile  "gcc -Wall
>> >>> gettimeofday.c -o gettimeofday " in eclipse under ubuntu?
>> I don't know Eclipse too much, I compile such programs in terminal:
>> Open Terminal
>> cd to the folder where gettimeofday.c is
>> type in:
>> gcc -Wall gettimeofday.c -o gettimeofday
>> run the Porgram with
>> ./gettimeofday
>>
>> >>> I got some errors:
>> >>> Field "tv_sec" could not be resolved
>> >>> Field "tv_usec" could not be resolved
>>
>> Maybe you have to tell Eclipse:
>> - it is C (not C++)
>> - from where to include 
>>
>> HTH
>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups 
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to beagleboard...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] elapsed time microseconds c++

2013-10-01 Thread ignacio . matador


On Tuesday, October 1, 2013 10:08:54 PM UTC+2, ignacio...@gmail.com wrote:
>
>
>
> On Tuesday, October 1, 2013 9:38:07 PM UTC+2, ignacio...@gmail.com wrote:
>>
>>
>>
>> On Tuesday, October 1, 2013 2:11:39 PM UTC+2, Dieter Wirz wrote:
>>>
>>> On Thu, Sep 26, 2013 at 9:36 PM,   wrote: 
>>> > hello, 
>>> > 
>>> > I tried several ways ( clock(), gettimeofday()..) but I can get the 
>>> proper 
>>> > way to measure the elapsed time in microseconds. 
>>> > 
>>> > I am using eclipse to program in ansi c. Could anybody help me about 
>>> how to 
>>> > measure the elapsed time in microsecond? Could it be possible to 
>>> enclosed 
>>> > the code that I should use? 
>>> Ansi C or C++ (as in the title)? 
>>> In Ansi C it might look like this: 
>>>
>>> #include  
>>> #include  
>>> // compile with: gcc -Wall gettimeofday.c -o gettimeofday 
>>> void main() 
>>> { 
>>> float elapsed_time; 
>>> struct timeval start_time, end_time; 
>>> gettimeofday( &start_time, NULL ); 
>>> for (;;){ 
>>> gettimeofday( &end_time, NULL ); 
>>> elapsed_time = end_time.tv_sec - start_time.tv_sec + ( 
>>> end_time.tv_usec - start_time.tv_usec ) / 1e6; 
>>> printf( "sec: %g  \r", elapsed_time ); 
>>> } 
>>> } 
>>>
>>
>>
>>
>>
>>
>> hi, Sorry for disturbing you. How can I compile  "gcc -Wall 
>> gettimeofday.c -o gettimeofday " in eclipse under ubuntu?
>>
>> I got some errors:
>> Field "tv_sec" could not be resolved
>> Field "tv_usec" could not be resolved
>>
>>
>> Sorry for the inconveniences 
>>
>> Regards
>>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] elapsed time microseconds c++

2013-10-01 Thread ignacio . matador


On Tuesday, October 1, 2013 9:38:07 PM UTC+2, ignacio...@gmail.com wrote:
>
>
>
> On Tuesday, October 1, 2013 2:11:39 PM UTC+2, Dieter Wirz wrote:
>>
>> On Thu, Sep 26, 2013 at 9:36 PM,   wrote: 
>> > hello, 
>> > 
>> > I tried several ways ( clock(), gettimeofday()..) but I can get the 
>> proper 
>> > way to measure the elapsed time in microseconds. 
>> > 
>> > I am using eclipse to program in ansi c. Could anybody help me about 
>> how to 
>> > measure the elapsed time in microsecond? Could it be possible to 
>> enclosed 
>> > the code that I should use? 
>> Ansi C or C++ (as in the title)? 
>> In Ansi C it might look like this: 
>>
>> #include  
>> #include  
>> // compile with: gcc -Wall gettimeofday.c -o gettimeofday 
>> void main() 
>> { 
>> float elapsed_time; 
>> struct timeval start_time, end_time; 
>> gettimeofday( &start_time, NULL ); 
>> for (;;){ 
>> gettimeofday( &end_time, NULL ); 
>> elapsed_time = end_time.tv_sec - start_time.tv_sec + ( 
>> end_time.tv_usec - start_time.tv_usec ) / 1e6; 
>> printf( "sec: %g  \r", elapsed_time ); 
>> } 
>> } 
>>
>
>
>
>
>
> hi, Sorry for disturbing you. How can I compile  "gcc -Wall gettimeofday.c 
> -o gettimeofday " in eclipse under ubuntu?
>
> I got some errors:
> Field "tv_sec" could not be resolved
> Field "tv_usec" could not be resolved
> symbol "cout" could not be resolved
> symbol "endl" could not be resolved
> symbol "std" could not be resolved
>
> Sorry for the inconveniences 
>
> Regards
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] elapsed time microseconds c++

2013-10-01 Thread ignacio . matador


On Tuesday, October 1, 2013 2:11:39 PM UTC+2, Dieter Wirz wrote:
>
> On Thu, Sep 26, 2013 at 9:36 PM,  > 
> wrote: 
> > hello, 
> > 
> > I tried several ways ( clock(), gettimeofday()..) but I can get the 
> proper 
> > way to measure the elapsed time in microseconds. 
> > 
> > I am using eclipse to program in ansi c. Could anybody help me about how 
> to 
> > measure the elapsed time in microsecond? Could it be possible to 
> enclosed 
> > the code that I should use? 
> Ansi C or C++ (as in the title)? 
> In Ansi C it might look like this: 
>
> #include  
> #include  
> // compile with: gcc -Wall gettimeofday.c -o gettimeofday 
> void main() 
> { 
> float elapsed_time; 
> struct timeval start_time, end_time; 
> gettimeofday( &start_time, NULL ); 
> for (;;){ 
> gettimeofday( &end_time, NULL ); 
> elapsed_time = end_time.tv_sec - start_time.tv_sec + ( 
> end_time.tv_usec - start_time.tv_usec ) / 1e6; 
> printf( "sec: %g  \r", elapsed_time ); 
> } 
> } 
>





hi, Sorry for disturbing you. How can I compile  "gcc -Wall gettimeofday.c 
-o gettimeofday " in eclipse?

I got some errors:
Field "tv_sec" could not be resolved
Field "tv_usec" could not be resolved
symbol "cout" could not be resolved
symbol "endl" could not be resolved
symbol "std" could not be resolved

Sorry for the inconveniences 

Regards

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[beagleboard] elapsed time microseconds c++

2013-09-26 Thread ignacio . matador
hello,

I tried several ways ( clock(), gettimeofday()..) but I can get the proper 
way to measure the elapsed time in microseconds.

I am using eclipse to program in ansi c. Could anybody help me about how to 
measure the elapsed time in microsecond? Could it be possible to enclosed 
the code that I should use? 

thank you so much and sorry for the inconveniences

Regards

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.