LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[Beginner] Write to measurement file does not create any file

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.

Download All
0 Kudos
Message 1 of 9
(3,284 Views)

Hi,

 

Post the vi instead of an image, that will help in further debugging.

 

Mathan

0 Kudos
Message 2 of 9
(3,281 Views)

Hi, Mathan.

 

Thank you for your super fast reply.

Here's the vi.

 

Thank you so much.

 

0 Kudos
Message 3 of 9
(3,279 Views)

Were you getting any errors?  You should wire up the Error Out of the Write to Measurement File to and indicator.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 9
(3,252 Views)

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 9
(3,231 Views)

Hi, 

 

Thank you for your comments.

I tried as you advised, however, it showed no error messages.

And still it doesn't work.

 

ah....

0 Kudos
Message 6 of 9
(3,225 Views)

Dear Yamaeda

 

Thank you for the comments!

However, I am getting no data files...

 

Of course I will follow your advice!

Thank you.

0 Kudos
Message 7 of 9
(3,223 Views)

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?

0 Kudos
Message 8 of 9
(3,209 Views)

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.

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 9 of 9
(3,191 Views)