"Error 1 when trying to open and read datalog file from several subVi's

So, I've been coding up this model based controller and have hit a snag:
The program starts and opens a datalog file and passes the refnum to two loops.
At a regular time interval (every 2 minutes), one loop (that's iterating once per second) writes the current information to a datalog file.
Meanwhile, another loop (that's iterating continuously) checks to see if the file is big enough to support training of the model, if it is, then the training process begins. Once this happens a period of recent information is read from the file. Initially, this read would fail and return 0 data. However, this problem was fixed by passing in the data file path rather then the refnum and having the vi open,
read, and close the data file. With the path, the vi was able to read all the data. However, still in the same loop, another vi downstream tries to read the file and returns error code 1, and no data is read. I tried passing that vi the path and seeing if it made any difference to open, read and close the file. But even then the read failed (with error code 1).
I don't understand why it can read in one vi and not the other!
Does anyone know what is going on here? It seems that semaphores would probably solve the problem, but would prefer a simpler solution. Thank you very much.

Try passing the data to the continuous loop through a LV2-style global. That way you are only access the file in one place. But then that begs the question, if the data is passed internally, do you really need the file at all?
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • On Windows Platform, encounters error when trying to open an Indesign document created from MAC

    Hi all,
    On Windows Platform, encounters error when trying to open an Indesign document in INDD format created from Mac. Error received "Either the file does not exist, you do not have permission, or the file may be in use by other application". I am currently using Adobe Indesign CC 9.2 Trial version.
    Kindly advise how can i open this document on windows platform and allows me to edit the document.
    Thanks!
    With Rgds,
    Fiona Choy

    Normally there is no problem to open any INDD opening on Windows, when created on the Mac.
    But Mac user are often not aware on the naming limitations. A file name must not contain /, \, |, :
    It should not contain any extended character, it is not a primary problem but will be, if something links to that file, so avoid also: ÄÖÜäöüß+&
    You can use all other non A-Z a-z, 0-9 and - and  _
    I personally would also recommend to avoid spaces.
    This is valid for the INDD file itself but also for all linked content.

  • How to open and read many files from a directory and store contents in 2D array?

    I want to make a VI that opens and reads the data from various files contained in a directory (200 files each with 2 columns) and store these in a single 2D array. For file number 1 I want to store the data from both columns in the 2D array, but for files 2 to 200 I only want to store the second column of each file. Can someone please help?

    Hi Nadav,
    Thanks for your help. I have followed your instructions but i cannot get it to work. I used the LIST DIRECTORY to list the files in the directory - that works. However, how do I read each of the 200 files using READ FROM SPREADSHEET FILE without me having to manually select each of the 200 files? So, if I use LIST DIRECTORY to list all 200 files in an array, how do I get each of these to open and store the data in a 2D array? Here is what I have done (File called read_files.VI) Could you please help me? Thank you very much in advance.
    Attachments:
    read_files.vi ‏18 KB

  • My Itunes continues to have an error when trying to open and Windows closes the program. I have uninstalled and re-installed several times but continue to get the same error. HELP?

    Windows shuts down my itunes evrytime I try to open it because of an error. I have unistalled and re-installed several times with the same results. HELP???

    what's the error specifically
    or does it say itunes has encountered a problem and needs to close because if that's the case then try these steps
    -download and install quicktime at the apple website
    or
    http://support.apple.com/kb/TS1717

  • Error when trying to open, edit & save the document from email link

    Hi,
    The error occurs when user tries to open the document from the email link (after the document is "shared" with them.
    The recipient has been given edit rights.  When the document is opened it is opened in read only.  The recipient will click "Edit Document" and then they receive an error
    "The file or folder name http://servername/sites/documents/Shared Documents/IT/Test/TESTfile.xlsx?NoRedirect=true' contains characters that are not permitted. Enter a different name."
    Any suggestions please.
    Thanks.

    Hi Inderjeet,
    Thank you very much for you reply.
    I tried with the LAN options, it didn't help.
    I see that in the
    http://blog.ray1.net/2007/12/file-or-folder-name-contains-characters.html it's written as the error occurs while "Creating a new site based on a custom site definition, you get the above error", which is not my case.
    Mine happens when I click on the link from the email body. An exact thread I found :
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/d724a882-66cf-4515-a088-afd7d088b103/email-link-to-share-documents?forum=sharepointgeneral&prof=required
    But no solution is mentioned there as well.
    I think this is an issue with SharePoint 2013. Do you agree? I would like to invite more experts for their opinion on this please.
    Many thanks & Regards

  • I get the following error when trying to open a pdf file... '*pdf.part could not be saved, because the source file could not be read"

    I get the following error when trying to open a pdf file... '*pdf.part could not be saved, because the source file could not be read". I am able to open pdf files in IE and other programs.

    I am encountering the same problem -- though with .qfx files from my bank. This worked fine in Firefox 31 ESR, but since upgrading to Firefox 33.0, I get the "<name>.qfx.part could not be saved, because the source file could not be read" when I attempt to download. (I should add that downloading PDF statements from the same site works fine, and that the qfx downloads work fine in IE and Chrome.)
    I tried safe mode, it is still broken. Tried v34 beta, no luck. I reverted to version 31, it works again.
    I guess I will stick with the older version until a solution is found...or just use an alternate browser to download my financial data.

  • I just agreed to a update of iTunes and now I get a "language" error when trying to open it.

    I just agreed to an update of iTunes on my imac (running OS-X 10.8.4) and now I get an error when trying to open iTunes.  The error is: "This version of iTunes has not been correctly localized for this language. Please run the English version."  What? 
    I'm not a tecchie and could really use some step-by-step instructions on how to get my Itunes working again!  I've never changed the language on my Mac...have no idea where this language error came from.
    Thanks!

    Hello E1777,
    You can try this link to download iTunes from the Apple website. It should resolve the issue for you.
    iTunes 11.0.4
    http://support.apple.com/kb/dl1614
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Currently using Flash Pro CS5,  getting error when trying to open CS4 file.  Error is "Slides and Forms documents are not supported in this version of Flash. Please open in previous version.

    Currently using Flash Pro CS5,  getting error when trying to open CS4 file.  Error is "Slides and Forms documents are not supported in this version of Flash. Please open in previous version.  Has there been a fix or patch to this issue or do I have to convert back to CS4 to open the file?

    Having the same problem in CS6.  I can tell you that converting back to CS4 will NOT solve the problem.  It seems when support for backward compatibility is discontinued, there's just no way to get
    any help at all?  Absolute failure to provide any user support so far...

  • I have a system error when trying to open my itunes on my laptop.  Should I unistall and reinstall itunes?

    i have a system error when trying to open my itunes on my laptop.  Should I unistall and reinstall itunes?

    The first error comes when i open my laptop:
    APSDeamon.exe -  System Error
    The program cannot start because MSVCR80.dll is missing from your computer. Try reinstalling....
    when I try to open Itunes, it says:
    iTunes.exe
    iTunes was no installed correclty, please re-install itunes
    Thanks!
    Annabel

  • I received an error when trying to open itunes

    I received an error when trying to open itunes.  It said itunes stopped working, so I tried to uninstall and re-install.  It let me install it, but when I tried to open it, it gave me the same error message.  How can I get itunes back on my laptop (windows).

    Perhaps is post what the error is someone might be able to offer assistance.
    Also, have you had a look here  >  http://www.apple.com/support/itunes/troubleshooting/

  • Error when trying to open EBS R12 on Windows 8.

    Hi,
    I have recently upgraded to windows 8 and am now getting the Below Error when trying to open Oracle EBS R12, any help would be appreciated:
    You have encountered an unexpected error. Please contact the System Administrator for assistance.
    Click here for exception details.
    Exception details
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_NO_REGION_CODE. Tokens: REGION = null; REGIONAPPLID = -1; at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1247) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:2204) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:549) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:437) at _OA._jspService(_OA.java:212) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:280) at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:68) at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:214) at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284) at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219) at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395) at _OA._jspService(_OA.java:221) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:680) ## Detail 0 ## oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_NO_REGION_CODE. Tokens: REGION = null; REGIONAPPLID = -1; at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeData(OAWebBeanFactoryImpl.java:3539) at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3490) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1113) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:549) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:437) at _OA._jspService(_OA.java:212) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:280) at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:68) at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:214) at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284) at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219) at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395) at _OA._jspService(_OA.java:221) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:680) oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_NO_REGION_CODE. Tokens: REGION = null; REGIONAPPLID = -1; at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeData(OAWebBeanFactoryImpl.java:3539) at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3490) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1113) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:549) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:437) at _OA._jspService(_OA.java:212) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:280) at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:68) at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:214) at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284) at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219) at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395) at _OA._jspService(_OA.java:221) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:680)

    Check if this make sense to you
      Why, when I try
         to run a self-service application I see an error similar to "oracle.apps.fnd.framework.OAException:
         Application: FND, Message Name: FND_NO_REGION_CODE. Tokens: REGION =
         WFNTFWORKLISTFNPAGE; REGIONAPPLID = 601"?
    This can occur when the OS locale is set
    differently from the database locale. For example, if the OS locale setting is:
    LC_CTYPE=en_UK and the
    Oracle locale setting is: NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
    then you may see this error. To get around this error, in jserv.properties add
    the following line:
    wrapper.env.copy=NLS_LANG
    Though this is from the note related to 11i, it may help in you in getting to problem
    regards
    Pravin

  • Getting error when trying to open Job Manager

    Hi List
    we are getting the below error when trying to open the Job Manager,which worked fine until yesterday.
    [nqs error 46105] Error executing Process: "C:\Program Files\Java\jdk1.6.0\bin\javaw.exe" - Xmx1024m -cp D:\OracleBI\server\Bin\JobManager\startup.jar org.eclipse.core.launcher.Main -data D:\OracleBIData\jobmanager -configuration C:\OracleBIData\jobmanager The system cannot find the path specified
    Please advice.
    Thanks..

    Did you change your JDK path by any chance? Also you are getting a strange error message. It is trying to point to both D:\OracleBIData\jobmanager and C:\OracleBIData\jobmanager. Is there anything that you changed prior to doing this?
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • I get an error when trying to open "The application Creative Cloud can't be opened. -1712

    I get an error when trying to open "The application Creative Cloud can't be opened. -1712

    The application Install.app can't be opened. -1712

  • Error when trying to open Data synchronisation

    Hi,
    I am getting the following error when tried to open the datasynchronisation tab
    Communication Error : http://demodrive:19000/awb/repository.enumWorkbenchElements.do
    Please let me know the resolution
    Edited by: Sravan Ganti on Apr 1, 2009 5:49 AM

    What version of ACR do you have installed? Waht type of files are you trying to open (camera model)? -adriana

  • I get the following error when trying to open iTunes

    I get the following error when trying to open iTunes:
    iTunes.exe - Entry Point Not Found
    The procedure entry point
    AVCFAssetCreateWithByteStreamAnd Options could not be located in
    the dynamic link library AVFoundationCF.dll.
    Any help would be much appreciated.
    Thanks,
    John

    I get the same error,
    Have you found any solution?
    Please let me know
    Thanks
    Premal

Maybe you are looking for

  • Save file to database using WEBUTIL

    Hi, I have used webutil_file_transfer.Client_To_AS_with_progress to upload files from client to Application Server using Forms 10g However, now i want to save file in database and not upload to database. Apart from the problem, I was wondering if the

  • Error when trying to play embedded movie

    SecurityError: Error #2148: SWF file http://wings-of-lifedotcom/zodiac-code-video/zodiac-code-video.swf cannot access local resource D:\Users\Matthew\My Documents\MS Data Systems\wings-of-life.com\the-zodiac-code.flv. Only local-with-filesystem and t

  • Phone keeps shutting down & unexpected battery drain

    I'm having the same issue, my phone is just 3 days old but it keeps shutting down frequently. When I press the power button it doesn't get turned on, I called customer service who asked me to press power button +volume rocker which turned the phone o

  • IPhone is disabled

    I have just ordered my iPhone 5 and whilst doing it decided to trade in my iPhone 4s and 3Gs.  The 3Gs offer was very low so I am now giving it to my Mum.  Problem it has not been used since September 2011 (when I got my 4s) I have forgotten the pass

  • WEB AS For ABAP?

    Hi Friends, Whether a <b>WEB AS for ABAP</b> will be possible in future in EP Development? Any idea? Thanks, Abdul