LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 9.0: Error 1 occurred at Write To Measurement File

Hi

 

Our University recently got the latest version of Labview (9.0 32-bit) which I installed today.The labview file I am using (my6008v6.vi)  used to work fine with the older version (8.5 i think). My write-to-file VI is enabled at certain time intervals in order to log data. As soon as it is enabled for the second time I get the following error:

 

Error 1 occurred at Write To Measurement File->Copy of murray6008v6.vi

Possible reason(s):

LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
=========================
NI-488:  Command requires GPIB Controller to be Controller-In-Charge.

 

I made a simple file (simplew2f.vi) to test this, with a button which I can press to enable/disable the writing of data. I am able to start writing data and then stop writing data but as soon as I try resume the writing the same error occurs.

 

This confuses me greatly since this wasn't a problem using the old version and my Labview knowledge is minimal. Any help would be appreciated.

 

 

 

Download All
0 Kudos
Message 1 of 11
(5,481 Views)

So, which VI are you having problems with?  Sounds like both...

 

Okay... - sigh - where to start....   

 

Well..  Let's start with a few comments. 

 

1.  Try to stay away from the Express VI.  I know the Marketing guys at NI will not like me for saying so, but I am saying so.  They are a nice marketing feature that Grumpy Old Men like myself do not like. 😉  They make it easy to write quick code..  And I will limit my comments to that.  😮 (It's not your fault.. )

 

2.  The wiring on your diagram is not clear or easy to read.  Yes, with additional time and double-clicking each wire I can tell where they are going.  However, a rule of thumb, alway wire from Left to Right.  Never right to left.  And do not run the wires under objects, even the ones you are wiring to.

 

3.  simplew2f.vi:  You should put a small delay in the While Loop.  I ran it three times and it wrote to the files without error.  And yes, I used LV2009.

 

4.  my6008v6.vi:  Avoid wiring from the top of the While Loop.  At frist, it looked like the data was coming out of the While Loop because the wires went to the left side of all the index node of the Index Array function.  

 

You should set your Browse Option for the file path to "Files or Folders" and "New or existing".  I did that and I was not getting the error message you described.

 

R

 

Message Edited by Ray.R on 03-03-2010 08:33 AM
0 Kudos
Message 2 of 11
(5,469 Views)

Point taken about the wiring and layout of the block diagram 🙂

 

I put a small delay in the while loop. It made no difference to the error. Did you start writing, then stop writing and then try resume writing? It is only at this point that I get an error.

 

I made EXACTLY the same diagram/file as "simplew2f.vi" in Labview 8.5 and I get no errors. "my6008v6.vi" also runs fine in 8.5.

 

Changing the browse options in "my6008v6.vi" makes no difference to the error for me.

0 Kudos
Message 3 of 11
(5,462 Views)

That's strange..  I did run it, write to file, stop writing, write to file again, stop writing and then stop the VI.

 

I didn't get the error message.

 

Unfortunately, I did not save the changes I made to the code and closed the VI.. 

You are saying that you have the errors in the simplew2f.vi as well?  And you are using LabVIEW2009.  

Humm....  Strange..

 

Do you have the Service Pack 1 installed for LabVIEW 2009?

 

During my next "break", I will download simplea2f.vi and run it and then post the code and the  LVM files that it created.

Can you post the text file that you have (the 2D data).  That way, I can even experiment with my6008v6.vi and post a modified version of it.

 

RayR

0 Kudos
Message 4 of 11
(5,455 Views)

Thank you for getting back to me.

 

I am downloading service pack one for labview 2009. I didn't even know that it existed. Perhaps it will solve my problems.

 

I have attatched the text file anyways.

0 Kudos
Message 5 of 11
(5,450 Views)

Yes, installing SP1 is a very good idea. 

 

I am downloading you text file and VI's.

 

I will post what I have soon.

 

RayR

0 Kudos
Message 6 of 11
(5,441 Views)

I ran your simplew2f.vi two more times without errors.

I hit the boolean button 6 times and it didn't cause any errors.

 

I include the code and the data files.  I did not verify the data in the lvm files.

 

I will look into the other VI tomorrow morning.  

 

Let me know if the SP1 helped.

 

RayR

 

 

0 Kudos
Message 7 of 11
(5,427 Views)

A strange "unexpected error" occurred and would not let me post the files in the last post..

 

I will try again here.

 

THis time I will zip them up..

 

Just found out that the zip file was too big.  Let's try again with a single lvm file.

Message Edited by Support on 03-04-2010 08:07 AM
0 Kudos
Message 8 of 11
(5,425 Views)

Hi

 

I tried to load your file but it tells me that your VI version is 10.0b17 whereas mine is 9.0.1.

I have installed the service pack already.

 

Do I need to update labview in some other way to get it to v 10.0b17

???

0 Kudos
Message 9 of 11
(5,398 Views)

I have managed to fix this problem by using the trick mentioned in this post: http://forums.ni.com/ni/board/message?board.id=170&message.id=470393

I copied the express output fodler from the old verison of labview (8.5) into my 2009 verison. It works now, however I still feel like there is something wrong.

0 Kudos
Message 10 of 11
(5,389 Views)