03-24-2014 04:51 AM
Dear all,
I am new here, this is my first forum question. I seek help on CompactRio data communication.
I have a cRio-9024 doing data logging headlessly.( stand alone without a host computer)
The CompactRio is connected to a network drive( like \\XXX.X.XXX.XXX\data logging), via Ethernet cable. I want the TDMS data logging file to be saved in the network drive.
The network drive does not support FTP(only accessible using windows map a network drive), I am not sure how CompactRIO should talk to the network drive?
Should I use network steamming functions or Protocols-> TCP functions? or it is better first save the TDMS locally and then upload to the drive? I don't know how to do that without FTP.
I would appreciate your help! Thank you so much!
Best Regards,
Newbie LV user
03-24-2014 11:12 AM
You cannot write directly from a cRIO to a network shared drive. You'll need some other intermediate step. You could set up an FTP server on a Windows computer elsewhere on the network. If for some reason you wanted to avoid FTP entirely, you could instead write your own program (again, running on a Windows machine) that waits for data (from a network stream or TCP connection) and writes it to a file on the shared drive. This wouldn't be much work, at least if it's a private internal network where you don't have to worry about authentication or unexpected data.
03-24-2014 01:13 PM
Thank you so much for your response!!
I am not sure if I understand it correctly, but if I set up a FTP server for the shared drive(folder) from the computer, does the computer have to be online all the time to do the data transfer from CompactRio to the network drive?
It is a school network, with user name and password, I doubt stream data and TCp work, how could I enter user name and password everythime? I am sorry I am new to labview. My questions may not make sense. Thank you again!
03-24-2014 01:26 PM
Yes, the FTP server would need to run continuously. Or, the cRIO could try to connect to the FTP server at regular intervals, and anytime it succeeded it would upload any new files since the previous upload. Or, since the cRIO acts as an FTP server, you could have an FTP client on a Windows computer that periodically connects to the cRIO and downloads every data file, then deletes those files.
03-25-2014 04:04 AM
Dear nathand,
I just tried to make a ftp server for the shared folder. It didn't work becuase the username and password is required for the shared folder. I was able to make other folder a ftp server, but not the shared folder. it gave me error 530- User cannot log in, home directory inaccessible, Win32 error...
03-25-2014 10:45 AM
Sorry, I can't help further with setting up the FTP server. You'll have to look at the documentation to see if there's a way to give it access to the network folder. Maybe talk to your IT department and see if they can help.