Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

struggling with Cr6 and com111 data collection and sending through FTP


Dadeex Feb 23, 2021 12:46 PM

Hello to all,

I'm completely new and I think that most of the problems that i have are related to my inexperience.

I have optical sensor that send data by serial connected to cr6 and a com111 for internet connection.

Using loggernet I'm able to see data collected but what I'd like to do is to send those ones to an external SFTP server.

Could someone help me?

 


smile Feb 23, 2021 09:39 PM

Hi,

There are so many options, but it all revolves around the FTPClient instruction. In CRBasic for this instruction there are some help, you will find many useful tips.

Smile


Dadeex Mar 1, 2021 08:54 AM

Thank Smile for your reply.

I off course saw the "ftp streaming" manual and I tried to use the first option:

FTPResult=FTPClient ("ftp.server.com", "Myuser",
"Mypassword", "MyData", "FTP_MyData_1.csv", 9, 0, 5, Min,
-1008)

But honestly I didn't undestand where I have to put it. I tried to put at the end of "main.dll" program but It gave me some errors like:

[Version]C:\Campbellsci\Lib\Compilers\CR6Comp.exe VERSION:CR6.Std.09.02  DATE:04/15/2019Main.dld -- Compile Failed!
line 157: Undeclared variable FTPResult.line 157: Invalid, or out of place expression:   FTPResult=FTPClient ("ftp.server.com", "Myuser",.

line 158: Invalid, or out of place expression: "Mypassword", "MyData", "FTP_MyData_1.csv", 9, 0, 5, Min,.

line 159: Invalid, or out of place expression: -1008).Error(s) detected in the program. Double-click an error above to navigate to it.

Could you please help me?

Log in or register to post/reply in the forum.