Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   printf issue (http://www.chiefdelphi.com/forums/showthread.php?t=42556)

Max Brin 24-01-2006 12:19

printf issue
 
Hey teams,
We have connected the controller via the 9pin cable to our pc.
We tried to put printf("test"); se we could test the communication between the controller and our pc. we downloaded (I guess successfully via the IFI loader) it to the controller and saw nothing on our terminal...

Can anyone help us?

Thanks & Good luck!

MikeDubreuil 24-01-2006 12:39

Re: printf issue
 
Quote:

Originally Posted by Max Brin
We tried to put printf("test"); se we could test the communication between the controller and our pc. we downloaded (I guess successfully via the IFI loader) it to the controller and saw nothing on our terminal...

To solve this one I think we'll need more information. Can you tell us in what function and which file you put the printf?

Max Brin 24-01-2006 12:41

Re: printf issue
 
Hey, thanks for replying so fast, our problem has been solved, by Connecting the controller directly via cable (not via radio) to the interface. .

Thanks and good luck!!!

steveg 24-01-2006 12:47

Re: printf issue
 
where in the code did you put the printf statement?

did you #include <stdio.h>?


EDIT:

Bah, too slow!

MikeDubreuil 24-01-2006 12:49

Re: printf issue
 
Quote:

Originally Posted by Max Brin
Hey, thanks for replying so fast, our problem has been solved, by Connecting the controller directly via cable (not via radio) to the interface. .

That's great Max. An important tip to other teams experiencing similar problems. The printf function prints data out the program port on the robot controller. The radios are connected to the Robot Controller and the Operator Interface, allowing them to communicate.

It is possible to connect a personal computer to the Operator Interface through the Dashboard port. The possibilities with the Dashboard port are limited to the communication specification for the Dashboard port. More information on the Dashboard port, including a sample application can be found on the IFI website here.

Astronouth7303 24-01-2006 16:16

Re: printf issue
 
Make sure you also include the line ending (printf("test\r\n");)

steven114 24-01-2006 17:03

Re: printf issue
 
You just need the \r, not the \n (at least as of a few years ago).


All times are GMT -5. The time now is 01:04.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi