12-31-2012 01:27 AM
Hi.
I am a beginner in LabView.
So please don't be hard on me.
I followed the manual to record some signals from the system.
I used [write to measurement file] from express vi.
And it just does not create any data file for me.
I am totally lost.
Can anyone help me to find flaws?
I am attaching the block diagram I have.
12-31-2012 01:31 AM
Hi,
Post the vi instead of an image, that will help in further debugging.
Mathan
12-31-2012 01:34 AM
Hi, Mathan.
Thank you for your super fast reply.
Here's the vi.
Thank you so much.
12-31-2012 09:23 AM
Were you getting any errors? You should wire up the Error Out of the Write to Measurement File to and indicator.
12-31-2012 10:27 PM
As i understand your Express settings, you create a series of files, but you only rename the last one, thus you'll end up with 2, the last and the 2nd to last. Use "Use next number" and you'll get a numbered series of files.
/Y
12-31-2012 11:00 PM - edited 12-31-2012 11:01 PM
Hi, crossrulz!
Thank you for your comments.
I tried as you advised, however, it showed no error messages.
And still it doesn't work.
ah....
12-31-2012 11:05 PM
Dear Yamaeda
Thank you for the comments!
However, I am getting no data files...
Of course I will follow your advice!
Thank you.
01-01-2013 01:25 AM
I found out that the data file was stored in the cRIO's c:\.
Now, how can I store it in my PC's c:\?
I really don't know the path I should put in.
Does anyone have any idea?
01-01-2013 12:18 PM
yunha,
You can do a couple of different things to get the file to your PC.
1) After the file has been written you can manually copy it over. Just type ftp://<ipaddress of crio> into Windows Explorer and you should be able to copy the file. However, since you've found the file and are still looking for a way to get it to your PC, I'll assume that this isn't an option for you.
2) You can write code to ftp the files over. There are FTP VIs built into LabVIEW. I can't remember off hand whether they are supported on RT, but if not you could write a Windows app to automatically copy all of your files off of your cRIO and onto your PC.
3) If your computer is setup properly on the network (as in visible on the network with write permissions to a folder) you should be able to write directly to it from the cRIO. Again, I can't remember the exact path you use, but it's the same path as if you were saving something from your computer onto the networked drive.
4) Finally, you can transfer all of the data to your PC as your cRIO gets it (via TCP, Network Streams, etc.) and then write to file on your PC with a host application. You should be able to follow the builtin templates in LabVIEW for creating a Host-RT application.