Command Print not working

5 years 8 months ago #29533190 by hernajou
Hello.
I am using the controller FBL2360 connected to a PC with Windows 7 via USB or Serial Port, and I use it to control a DC Motor, which perform a secuence that has to be repeated a defined number of cycles, and I would like to send the measurement data throuh the command Print direct to any Editor of the pc, for example Excel or Notepad, but I don't get to make it work, I mean, the simple task print("Hello World") makes nothing. To test the command, I execute the next script with Notepad in foreground:
top:
Print("Hello World \r")
wait(250)
goto top

Is there any special condition or configuration that I'm passing over?

Please Log in or Create an account to join the conversation.

5 years 8 months ago #29533191 by blake
Replied by blake on topic Command Print not working
The print data from your script will print into the Controller Log on the Console tab of Roborun+. You can then simply copy and paste this log to excel or notepad.

Attachments:
The following user(s) said Thank You: hernajou

Please Log in or Create an account to join the conversation.

5 years 8 months ago #29533203 by hernajou
Replied by hernajou on topic Command Print not working
Thank you blake for your answer. Is there any way to send the data direct to Excel or Notepad without using the log? I would like to program an autosave of the data through a macro in case of shut down of the System, since the cycles could last hours or even days, and since I know, the Controller Log has also a Limit of data before it is cleared/over writing. It would be really helpful.

Please Log in or Create an account to join the conversation.

5 years 8 months ago #29533204 by blake
Replied by blake on topic Command Print not working
The controller simply prints the data on the serial bus (RS232 or USB depending on your setup). However, neither Excel or Notepad have the ability to read and print live data from the serial ports directly to a spreadsheet or .txt file. This requires specialized software/drivers.

The simplest method to ensure that data is saved in a .txt file is to use a DataLogger
The following user(s) said Thank You: hernajou

Please Log in or Create an account to join the conversation.

5 years 8 months ago #29533215 by hernajou
Replied by hernajou on topic Command Print not working
I would like just to share, that I found some libraries in Internet to read and copy the data direct from the Serial bus to Excel through Macros in VBA, and it worked, thank you for the Support.

Please Log in or Create an account to join the conversation.

5 years 7 months ago #29533228 by LROBBINS
Replied by LROBBINS on topic Command Print not working
Could you post a link or links to those libraries?

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.081 seconds