12-02-2008 10:23 AM
I have a real-time DAQ application that samples data in the deterministic loop and saves it to a TDMS file in the non-deterministic loop. The data is shared between the loops using a single-process shared variable. The TDMS file is saved onto the target PC.
The code executes without problems and the TDMS file seems to be written correctly.
How do I now access the TDMS file from the host PC for viewing?
12-03-2008 04:46 AM
baslers,
to access the TDMS file on your host PC, you can use the FTP server on your real-time target to transfer the data.You can use MAX, your internet browser, any FTP-client or the DataSocket API if you want to access the file programmatically.
Here are some links about this topic:
FTP Transfer of Files Between Host and Real-Time Targets in MAX
Protocols for DataSocket and DataSocket Server
Kind regards,
Jochen Klier
National Instruments
01-14-2009 09:50 AM
Jochen,
first of all thank you for your suggestions. I was successful in accessing my TDMS file using MAX.
Also, I spent quite some time trying to get the DataSocket file transfer working programmatically (see attached image). I have DataSocket for LV 4.5.5 installed on my desktop RT target system (LVRT 8.6) and LV 8.6 running on the host.
When trying to open the DataSocket I keep getting the following error:
Error 1184 occurred at DataSocket Open in DAQ_transfer_TDMS_file.viPossible reasons(s):
LabVIEW: Path not found, FTP login incorrect, or no FTP write permission.
What is wrong in the URL I am using? I have also tried using dstp instead of ftp. Furthermore, I have tried supplying my username and pwd. Do I need to run the DataSocket server on the target instead of the host? How do I accomplish this?
Also, will reading the original file and writing the data into a new TDMS file on the host work like this? Or do I need to write the data to a DataSocket and simultaneously read it from there?
Thanks in advance for any help. Programmatic access of my files would significantly facilitate my experiments... Kind regards,
baslers
01-15-2009 03:27 AM
Hi baslers,
I have tried to reproduce this issue. I have used a text file on an RT target and it just works fine using this URL:
ftp://xxx.xxx.xxx.xxx/ni-rt/system/errlog.txt[text]
Could you please verify that it is possible to read a text file from your RT system? Please make sure, that the text file contains some characters.
Error 1184 occurrs if you try to access a file on an FTP server without having the necessary privileges. E. g. if you try to read a file from an FTP server directory that provides only write access (like ftp://ftp.ni.com/incoming), this error will occurr.
Jochen
01-20-2009 11:07 AM
Hello,
I think I have resolved the URL issue by using the FTP Browser.vi example of the Internet Toolkit. It correctly reads the list of files on my remote target. It is possible to download a text file from the target to the host and vice versa. However, if I try the same with a .tdms file, I get the following error:
Error 15425 occurred at FTP Transaction:
425 Connection error
Possible reason(s):
Internet Toolkit: (Hex 0x3C41) 425 Can't open data connection.
A file is in fact created on my host, but it doesn't contain the data in the correct .tdms format.
I have tried changing the FTP mode (active/ passive) according to Document ID: 4AJGEHLO, but then I get a timeout error 56.
How do I proceed on this? There should be no general problem with the FTP connection, since I am able to download the .tdms file using the FTP client in MAX.
Thanks in advance for any help!,
baslers
06-15-2010 10:13 AM