Why is AI Continuous Scan.vi causing LabView 6.0 to run at such a slow rate?

I am working on a 6 degree-of-freedom load application system.  It is forced controlled by pneumatic actuators operated using servovalves in a closed loop force controlled feedback system. The machine is instrumented with displacement (LVDTs and RVDTs) and force transducers (load cells and strain gage torque cells) so I can obtain measurements of all degrees-of-freedom (3 rotations and 3 translations).
The user interface to operate the machine has been designed on LabView 6i.  I know this is an outdated version - but half of the code was written previously, so I wanted to simply update and add to its functionality.  It runs on a Dell Optiplex GX260 Computer running Windows 2000.
What I do with LabView is input a control file that contains a series of clutch activations, loading parameters, and data collect on/off options to manipulate the machine.  This seems to run very well and FAST (about 25 seconds for 15 lines of code).  However, when I choose to acquire the data from our load and displacement sensors - this becomes VERY slow (about 12 minutes for the same 15 lines of code).  I have been trying different things out with the code to no avail.  First, everything that can be is running in parallel loops.  Second, I disabled loops that aren't required when we are running the control file.  Third, I omitted all signal processing that occurs (this is where we convert the voltages from the load and displacement transducers to actual force and distances using calibration coefficients).  However, nothing is speeding up the data acquisition.   
Currently we have two DAQs (a PCI-6023E and PCI-6040) for data acquisition.  I am only currently using the PCI-6023E board. I am using the NI provided .vi AI Continuous Scan (waveform).vi.  I would like to sample at 100 Hz (scan rate) and have a buffer size of 1000 and a number of scans to read at 10.  Prior to the data acquisition the user  chooses what load and displacement channels he/she would like to acquire data from.  It is rare that more than 2 channels are being acquired from at a single time (usually a single load and single displacement channel).  Only the user selected channels are passed to AI Continous Scan (waveform).  I have the iteration input variable wired to the iteration terminal of my while loop, so AIConfig and AIStart only configure the first time. 
So how this works is the control file looks for a "data_collect" phrase set to "on" and then the parallel data acqusition loop is activated.  The file control loop is matched to the data acquisition loop using a "Wait on Occurrance." 
I am attaching several VIs.  The main executable I run is called KBiii_Esther.vi.  This runs many subVIs to configure the experiment, etc.  The file control is activated in the file control loop and runs using the do_file_control.vi.  Finally, the data acquisition is activated in a seperate parallel loop and runs the do_acq_wave.vi.  This is where I believe the problem lies.
Questions:
1) Does anyone have any ideas why the data acquisition is slowing everything down?  AND do you have any ideas or suggestions as to how to fix this problem?  Is it the reading of the data or the writing to a spreadsheet that slows everything down? 
2) Does anyone have any suggestions for better buffer size and  number of scans to read values to optimize performance?
Thanks in advance.
Solved!
Go to Solution.
Attachments:
KBiii_Esther.vi ‏488 KB
do_file_control.vi ‏324 KB
do_acq_wave.vi ‏249 KB

To many sub VIs could not be found so I can not give you more than some advises. But I see that you run all your loops at full speed. I do not think it is very wise. Insert the "wait (ms)" functions in all while loops, but not the loops handling the daq functions. Since they are controlled by a occurrence. In Loops handling user input only you may set the wait time as high as 500ms. In more important loops use shorter time.
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)

Similar Messages

  • I'm currently having trouble understanding why my Inactive Memory (Displayed in Activity Manager) is running at such a high rate.

    I'm using Quicktime Player to export movies. I'm just bothered by the fact that is says "Inactive" rather than "Active". Can someone please explain to me why I have such low Free Memory?
    Computer Specifications:
    iMac i7 3.4Ghz
    RAM: 16GB DDR3
    1TB HDD
    AMD Radeon 6970m 1GB

    Inactive Memory is memory which has been allocated  to applications which were previously, but no longer, using it. It remains available to them on a "first call" basis. In theory, it should be readily available to other applications on demand, but in practice it doesn't seem to work this way.
    Looking at Page outs and Swap used down at the bottom -- and I won't go into any details right now -- it looks like you are low on RAM, but maybe not critically, and could use more. Either that or run fewer memory intensive applications concurrently.
    One (little known) way to regain some of that Inactive memory to Free memory, which right now on your system is quite low and will end up causing your Mac to run sluggishly or freeze it completely, is to open Disk Utility in Utilities and run repair Permissions. Another way is to simply restart. If you want to read more on memory
    http://www.thexlab.com/faqs/lackofram.html
    http://support.apple.com/kb/ht1342
    http://macs.about.com/od/usingyourmac/qt/os-x-memory-usage.htm
    http://apple.stackexchange.com/questions/104/whats-the-difference-between-real-v irtual-shared-and-private-memory

  • Hy Labview installed DAQ - mx no AI Continuous Scan?

    Vi open others found because there is no AI Continuous Scan can't run, what module driver have AI Continuous Scan (scale array). vi
    Attachments:
    1.jpg ‏18 KB

    That function was part of the obsolete traditional DAQ driver.

  • Error: Could not continue scan with nolock due to data movement, DBCC proccache will clear the probelm

    SQL Server: 2008 R2 SP2
    Before describing my problem, I have gone via the forum, there is no view or functions inside my stored procedure
    When running a particular stored procedure inside crystal report, the error " Could not continue scan with nolock due to data movement" comes once every few weeks. After I clear the query cache plan, it works again for few weeks and the problem
    comes again. During these few weeks, there is no restart or query plan clearing.
    If I run the stored procedure inside SSMS, where the SQL statement is copied and pasted from SQL profiler during crystal report run, there is no error.
    I discovered running in SSMS and crystal report generate 2 different query plans even I copied the SQL from SQL profiler, I have actually saved the query plans. Unfortunately, this forum does not accept attachments, or otherwise I will post my query plans
    here.
    There is one thing I notice about the query plan is during nested loop operation, there is a warning "no join predicate". I don't use any views or UDF in the statement, nor did I use pre-1992 ANSI join syntax. However, I did use table variables.
    My guess is whether this will cause " Could not continue scan with nolock due to data movement", after I clear the cache, I run crystal report again, and I look at the plan again, the "nested loop no join predicate" warning is gone.
    Running this stored procedure took 1 second maximum, even when this error is popping up, it pop up within 1 second.
    DBCC checkdb has been run
    The same stored procedure running by crystal report in a SQL 2008 (non r2) live environment has no problems, so I am thinking this is R2 specific problems.
    The "nested loop no join predicate" error SQL statment is below, no views, no udf, but table variables
    INSERT @ChequeAccount
    SELECT        PS.PaySummaryID, PS.EmployeeID, PS.CostCentreID,
                (PS.GrossPay    + PS.LumpSumA + PS.LumpSumB    + PS.LumpSumD+ PS.LumpSumE+ PS.ETP+ PS.PaymentsAfterTax    - PS.DeductionsAfterTax  
     - PS.Tax- PS.ETPTax    + PS.TaxRebate) * -1 AS Amount,
                CGLM.GLAccountID
    FROM Pay_Summary PS JOIN Input_Sheet ISH ON PS.InputSheetID = ISH.InputSheetID  AND  ISH.PayrollID = @binPayrollID   
    AND PS.PaySummaryID NOT IN (SELECT PaySummaryID FROM @ChequeAccount)
    JOIN Payroll P ON P.PayrollID = ISH.PayrollID AND P.EmployerID = @binEmployerID
    JOIN CustomGLFixMapping CGLM ON CGLM.EmployerID = P.EmployerID AND CustomGLFixMappingNameID = 1 AND CGLM.CostCentreID IS NULL

    The error Could not continue scan with nolock due to data movement can occur when you use the NOLOCK table hint, or use the command SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED. That is, so-called dirty reads. The error is not related to the
    query plan per se, but when scanning a table, the storage engine will use an IAM scan rather than following the clustered index. If there is simultaneous activity, the storage engine may detect this and abort the operation to avoid returning incorrect data.
    Or it may not detect it, and return uncommitted data or fail to return committed data.
    All of these effects are transitory and they will not show up when you are alone on the system, only when there is concurrent activity in one or more of the tables in the query.
    Using dirty reads is a risky business for the reasons explained above, and it takes careful analysis to understand whether you can live with the errors you can get from a particular query. The error about data movement can be handled: trap the error and
    resubmit the query. But what about spurious incorrect results?
    If you believe locking to be a problem, you should consider setting the database to READ_COMMITTED_SNAPSHOT
    and take out all use of READ UNCOMMITTED/NOLOCK. When the database is in READ_COMMITTED_SNAPSHOT, readers read from the snapshot and only see committed data without blocking writers. This has some other effects like requiring a bigger tempdb,
    and there is a risk for other types of concurrency errors, but they tend to be smaller risks.
    I discovered running in SSMS and crystal report generate 2 different query plans even I copied the SQL from SQL profiler,
    This is because SSMS by default runs with SET ARITHABORT ON. I discuss this in more detail in this article on my web site:
    http://www.sommarskog.se/query-plan-mysteries.html
    However, as I said, this problem is not related to the query plan as such, although some query plans are more susceptible to this error than others. (All plans are suscpeitble to produce incorrect results).
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Why is osx continuously caching external disk?

    While I am -using an/any application that does- reading from an  external disk, free memory continuously decreases and inactive memory  increases with the same amount, which is aproximately the amount of data  read. At some time, os starts paging and the system renders useless,  forcing me to reboot.
    Closing the application or using another usb slot has no effect, I have to eject the USB or use purge -which makes other applications sluggish-. Format of the -external  drive's- partition (GUID, MBR),(HFS+, FAT32, NTFS) does not matter. All  of the drives are excluded from Spotlight (are not indexed). I have
    OSXFuse but that is only for Truecrypt, info about partitions show native drivers.
    Why is osx continuously caching external disk, can a  configuration/app/plugin cause this, is there a way to avoid this? Is  there a selective purge command for external disk cache? Does anybody have this problem with external drives, and also with Mavericks?
    My EtreCheck (after a reboot) is:
    EtreCheck version: 1.9.11 (43) - report generated June 15, 2014
    Hardware Information:
        MacBook Pro (13-inch, Mid 2009)
        MacBook Pro - model: MacBookPro5,5
        1 2.26 GHz Intel Core 2 Duo CPU: 2 cores
        4 GB RAM
    Video Information:
        NVIDIA GeForce 9400M - VRAM: 256 MB
    System Software:
        OS X 10.8.3 (12D78) - Uptime: 0 days 1:4:54
    Disk Information:
        Hitachi HTS5450 disk0 : (160.04 GB)
            disk0s1 (disk0s1) <not mounted>: 209.7 MB
            Macintosh HD (disk0s2) / [Startup]: 94.62 GB (48.81 GB free)
            Recovery HD (disk0s3) <not mounted>: 650 MB
            BOOTCAMP (disk0s4) /Volumes/BOOTCAMP: 64.57 GB (44.49 GB free)
        HL-DT-ST DVDRW  GS23N 
    USB Information:
        Apple Inc. Built-in iSight
        JMicron Storage 500.11 GB
            BKPFAT (disk1s1) /Volumes/BKPFAT: 443.2 GB (25.08 GB free)
            BKPNTFS (disk1s2) <not mounted>: 56.9 GB
        Apple Internal Memory Card Reader
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
        Apple Inc. BRCM2046 Hub
            Apple Inc. Bluetooth USB Host Controller
    Configuration files:
        /etc/hosts - Count: 1
    Gatekeeper:
        Anywhere
    Startup Items:
        TuxeraNTFSUnmountHelper: Path: /Library/StartupItems/TuxeraNTFSUnmountHelper
    Launch Daemons:
        [loaded]    com.adobe.fpsaud.plist Support
        [loaded]    com.google.keystone.daemon.plist Support
        [loaded]    com.oracle.java.Helper-Tool.plist Support
        [not loaded]    de.jinx.SmartSleepDaemon.plist Support
        [loaded]    org.macosforge.xquartz.privileged_startx.plist Support
    Launch Agents:
        [loaded]    com.google.keystone.agent.plist Support
        [loaded]    com.oracle.java.Java-Updater.plist Support
        [loaded]    org.macosforge.xquartz.startx.plist Support
    User Login Items:
        GrowlHelperApp
        Google Drive
        witchdaemon
        BetterTouchTool
    Internet Plug-ins:
        JavaAppletPlugin: Version: Java 8 Update 05 Check version
        FlashPlayer-10.6: Version: 12.0.0.38 - SDK 10.6 Support
        QuickTime Plugin: Version: 7.7.1
        Flash Player: Version: 12.0.0.38 - SDK 10.6 Outdated! Update
        o1dbrowserplugin: Version: 5.4.2.18903 Support
        googletalkbrowserplugin: Version: 5.4.2.18903 Support
        Silverlight: Version: 5.1.30317.0 - SDK 10.6 Support
        Unity Web Player: Version: UnityPlayer version 4.1.5f1 Support
        iPhotoPhotocast: Version: 7.0
    Safari Extensions:
        Bing Highlights: Version: 1.0.20
        ClickToFlash: Version: 2.5.1
    Audio Plug-ins:
        AirPlay: Version: 1.7 - SDK 10.8
        iSightAudio: Version: 7.7.1 - SDK 10.8
    iTunes Plug-ins:
        Quartz Composer Visualizer: Version: 1.4 - SDK 10.8
    3rd Party Preference Panes:
        Flash Player  Support
        FUSE for OS X (OSXFUSE)  Support
        GamePadCompanionPrefPanel  Support
        Growl  Support
        Java  Support
        MenuMeters  Support
        SmartSleep  Support
        Tuxera NTFS  Support
        Witch  Support
    Time Machine:
        Time Machine not configured!
    Top Processes by CPU:
            25% firefox
             4% activitymonitord
             4% WindowServer
             1% hidd
             1% BetterTouchTool
    Top Processes by Memory:
        254 MB  firefox
        111 MB  Google Chrome
        66 MB   Sublime Text
        61 MB   mds
        59 MB   Google Chrome Helper
    Virtual Memory Information:
        1.72 GB Free RAM
        1.21 GB Active RAM
        416 MB  Inactive RAM
        425 MB  Wired RAM
        378 MB  Page-ins
        0 B Page-outs

    Try a restart.
    Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one.
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account

  • Why do I continue to receive notifications, even after I change my preferences?

    why do I continue to receive notifications, even after I change my preferences? I had about 100 or so today. I switched all of my notification anwers to NO, as in , I don't want to receive any email from apple communities whatsoever. ??? Thanks.

    You need to double check that you aren't subscribed to the community, not just to the question you asked.  Go to the community that you are receiving the emails from and the same box called "Actions" will appear there just like it does next to the individual question.  Make sure that you are not reciveing email notifications for that community.  Probably the community  where you asked your question.  Typically that is what causes people to get 100's of email notifications. I think that this is not included in the tutorial so a lot of people miss it. 
    Hope that works for you.
    laverne's mom

  • During continuous scanning thermocouples with a SCXI 1120 module is the cjc reference read each scan?

    Did the developers of the DAQmx drivers improve the temperature scan capability of the SXCI 1120 module over the methods used in the traditional drivers?
    When using the SCXI 1120 module for temperature measurement and in the continuous scan mode with traditional drivers the cold junction reference was only checked on the initial start of the scan. In order to maintain accuracy it was necessary to restart the scan.
    For the most part I have switched to the 1125 module for thermocouple measurement but I need to use some 1120 modules on a test stand now and I will be using the DAQmx drivers on these. I was in hopes that with the DAQmx drivers this behavior was corrected.
    I can conduct testing to determine this but would like to know ahead of time if this is still an issue.
    Thanks

    Thank you Ben for the answer.
    I checked the article you referenced appears to me that I will be adding the physical address in the channel strings then do the voltage to temperature conversion and then correct the appropriate channels associated with the cjc in question. I will also need to adjust some on board jumpers for the SCXI 1120.  If I am wrong please correct me.
    If scanning the physical channel is possible as suggested in this article, would it not be possible to create the channel as a virtual global channel and reference it as the cold junction in Max? Then the temperature adjustment could be done at this level of acquisition rather than having to sort this out in the LabVIEW program. This takes me back to the days with LabVIEW 4.0 before we had the virtual channels and when we had to handle the temperature conversions and other scaling ourselves. Again if I am incorrect please let me know, for I would like to use the method recommended in the article if I don't have to perform all the calculations in the application.
    Just wondering if anybody reading this has actually used this method. If so, how did it work for you?
    I may end up building a start up routine testing for 1120 modules being used for thermocouple measurement then if found run a stop and restart scan every 5 minutes to prevent large errors from being introduced.

  • NISE virtual device causes LabVIEW exception error

    I can't delete a virtual device because when selected it causes an exception error in LabVIEW. I'm running MAX 4.1 with DAQmx8.3. Do I need to uninstall everything and then reinstall to correct this error?
    kph

    Okay here is what I remember...
    I had MAX 4.0 installed on the computer (not sure of the DAXmx version but probably 8.1) and I went to export a NISE virtual device to a network drive. At that time MAX froze up and I had to kill it with task manager. When I reopened MAX the virtual device gave me a LabVIEW error when I selected it. I was able to rename it and replace it with a backed up version. I then went to delete it but MAX continued to lock up. I read in the discussion forums about the export to network drive issue and the fix with MAX 4.1 so I downloaded DAQmx 8.3 with MAX 4.1 and installed it. Afterwards MAX seemed more stable but I still get the LabVIEW error when I try to select the renamed (broken) virtual device. Also since this started I've been getting weird exception errors when I run my TestStand/LabVIEW code.
    Any help will be greatly appreciated.
    kph

  • AI Continuous Scan.vi and channel inputs

    It seems that I am having difficulty connecting a DAQ Channel Name Constant to the channel input of the AI Continuous Scan.vi. Anyone know why the two data types are different?

    Currently you are connecting a string(DAQ Channel Name constant) to a terminal that requires 1-D array of strings. I'll recommend you introduce the Build Array function between the two terminals. In case you have more than one DAQ Channel Names, all you need to do is to adjust the Build Array function to the number of your channel names.

  • AI Read is executing only once in a while loop instead of continuously scanning the channels

    The ultimate goal is to sample 15 channels (1 at 20kHz, 9 at 1000Hz, and 5 at 100Hz). Since only one scan rate is possible, I would like to reduce the data (for both displaying and saving purposes). The decimate function does not seem to work correctly.
    Attached is the current subroutine used to 'decimate' the data. It seems to work on the first loop iteration, as seen by the data block with correct time stamps and data values, but with each additional iteration, all values are zero. Why is only one scan being used in the displaying of data?
    Attachments:
    Acquire_N_ScansNM4.llb ‏76 KB

    When you call AI Clear, the DAQ session is over. You will not get any new data by calling AI Read after an AI Clear. Move your AI Clear to the right of your while loop such that it runs after the while loop completes. Don't forget to wire an error cluster or DAQ session ID to AI Clear from inside the while loop to create the data dependency. Also, consider adding a shift register for the error cluster and some way to exit the loop on an error.
    Remember that Alliance Members are here to help. We do this stuff every day.
    Daniel L. Press
    PrimeTest Corp.
    www.primetest.com

  • When I start firefox, i get this message ( The instruction at "0x7b9c77a9" referenced memory at "0x7b9c77a9". The memory could not be "read" ) hs anyone any idea why? I have scanned with AVG and something simply called 'Trojan Remover' and they both fin

    when I start firefox, i get this message ( The instruction at "0x7b9c77a9" referenced memory at "0x7b9c77a9". The memory could not be "read" ) hs anyone any idea why? I have scanned with AVG and something simply called 'Trojan Remover' and they both find nothing.... any advice would be greatly welcomed.. thanks
    == This happened ==
    Every time Firefox opened
    == this morning 22/07/10

    Lyall,
    I have seen this before, a long time ago (several years), and I cannot
    remember how/if we resolved it.
    If this is an impotant issue to you, I suggest that you open a case with
    BEA support.
    Regards,
    Peter.
    Got a Question? Ask BEA at http://askbea.bea.com
    The views expressed in this posting are solely those of the author, and BEA
    Systems, Inc. does not endorse any of these views.
    BEA Systems, Inc. is not responsible for the accuracy or completeness of
    the
    information provided
    and assumes no duty to correct, expand upon, delete or update any of the
    information contained in this posting.
    Lyall Pearce wrote:
    The title says it all really.
    I see other posts getting replies.
    This is a rather important issue, I have seen another post with a similar problem.
    While not being a show-stopper it certainly raises concerns.
    The application works ok until the application exits (in both development and
    executable form)
    Apparently this did not happen with Tux 7.1
    It does with 8, I do not have 7.1 so I have no workaround.
    ..Lyall

  • What does "extracted channel PDF" mean and why does it continually duplicate on my desktop?  I think it happens when I move a file in Finder to another file and when I copy some web files.  How do I avoid this on my Mac (Mavericks)?  Thanks for your help!

    What does "extracted channel PDF" mean and why does it continually duplicate on my desktop?  I think it happens when I move a file in Finder to another file and when I copy some web files.  I have to immediately move to trash all the duplications on my desktop.  How do I avoid this on my Mac (Mavericks)?  Thanks for your help!

    What application is set to open PDF files? If you CNTRL click on the file and open with Preview does the problem occur?
    If not change the default application to open PDF files to Preview.
    You can do this by highlighting the file and either use CMD i or Get Info , this will open a window with the info on the file with an option to change the application that opens the file.
    That's all I can think of.

  • 3D graphs cause LabVIEW 2010 to hang

    I've been using LabVIEW  2010 for several weeks without any problems, but today I noticed that it doesn't work at all with anything related to the 3D picture control. Today was the first time that I tried doing anything with the 3D picture tool since installing LV 2010. Dropping any of the 3D Graphs on the front panel of a new VI causes LV2010 to hang. (By hang, I mean the VI window remains open but most UI things no longer work.  Right-clicking on the window does not show a context menu.  The main menu doesn't work.  The X button does not close the VI front panel window nor the diagram window. Control-Q does not cause LabVIEW to quit.  I have to kill the process in Task Manager.)  It is the same story with just a plaing 3D picture indicator.  Also, the solarsystem.vi example does not work either.  The problems start as soon as I open the solarsystem.vi.  After killing LV with Task Manager and relaunching LV10, I do not get the LV message about a previous crash.
    The problem I am talking about is for LabVIEW 2010 with the f2 patch running in Win7.  I am actually running it using VMware Fusion 3.1.3 on a 2009 Mac Pro running Lion.  The Mac drivers are all updated.  Since it is VMware Fusion machine, the video driver on the Windows side is part of the VMware Tools installation, which is up to date.
    After searching the forums, I've tried all the other potential solutions I could find:  1) repaired LV2010 using add/remove programs and 2) tried using the compatibilty mode settings to turn off Aero. 
    Interestingly, 3D graphs work fine on the Mac side for LV2010 for Mac.  
    Even more insterestingly, 3D graphs work fine on Win7 for LV 8.5, which I still have installed.  The fact that it works fine for LV 8.5 would seem to indicate that Lion did not introduce the problem and that the video driver is working fine.
    Solved!
    Go to Solution.

    Yep, it's the same virtual machine.  I set it up almost 2 years ago and it has been extremely stable.  Both LabVIEW 8.5 and 2010 have been perfectly happy on it.  It's a great way to do LabVIEW on Win7.  I didn't notice any changes at all to the VM when I upgraded from Snow Leopard to Lion.  I installed LabVIEW 2010 before upgrading to Lion, but I didn't have occasion to work with 3D controls before the upgrade to Lion so I don't know if it would have worked on Snow Leopard.  The Mac versions of both LabVIEW 8.5 and LabVIEW 2010 also work great on the both Snow Leopard and Lion.
    I happen to have an XP virtual machine too, but I haven't installed LabVIEW there.  Let me know if that would be a worthwhile test.
    You might check with Marc Page--unless he has already upgraded again I think he has a similar machine to mine.
    The video card is the original stock:
    NVIDIA GeForce GT 120:
    Chipset Model: NVIDIA GeForce GT 120
    Type: GPU
    Bus: PCIe
    Slot: Slot-1
    PCIe Lane Width: x16
    VRAM (Total): 512 MB
    Vendor: NVIDIA (0x10de)
    Device ID: 0x0640
    Revision ID: 0x00a1
    ROM Revision: 3386
    Displays:
    Cinema HD Display:
    Resolution: 2560 x 1600
    Pixel Depth: 32-Bit Color (ARGB8888)
    Main Display: Yes
    Mirror: Off
    Online: Yes
    Rotation: Supported
    Display Connector:
    Status: No Display Connected

  • Running the VI causes LabVIEW to crash

    Hello
    While debugging a SW, I found that a particular VI, when run, causes LabVIEW to crash. This happens whether this VI is called while executing an exe or called by higher VI or even when it is run separately.
    The VI to be run is NLD_Test_PP_Plot.vi present in the folder "Generic VI's".
    The input for this VI is .csv file, which is attached. The csv file needs to be placed in a separate location and that path needs to be entered in the string constant in the VI.
    Note: This VI is developed and run in LV v2009.
    Thanks
    Sharath
    Attachments:
    SpecimenCW_20150407_193059.csv ‏67 KB
    NLD_Test_PP_Plot Folder.zip ‏208 KB

    LabVIEW did not crash for me (nor did it throw an error).  It made a bmp of your data and then exited.  I am using LV 2013.
    Did it actually crash or did it throw an error?  If it crashed, do you have the crash zip file?
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Deny Access function with invalid file refnum causes LabVIEW to crash

    Hi folks,
    I have LabVIEW 8.5, and today encountered something interesting that consistently causes LabVIEW to crash.  Essentially, if you find the "Deny Access" function under the advanced file IO palette and wire up an invalid refnum, Windows (XP in my case) reports that LabVIEW has to close.  I checked in task manager, and the LabVIEW process is still active and using a disproportionate amount of the CPU.
    To reproduce the issue, simply drop the function on your block diagram, create a constant from the refnum input terminal, and run the VI.  Has anyone else seen this behavior?
    Thanks,
    Jim

    Hi Carla,
    I'm glad to help, and thanks for looking into it.  The way I ran into the bug was while I was working on an action engine VI to log certain text values (see attached picture).  While logging, I didn't want other programs to access the file.  When a new file had to be generated, I wanted to stop denying access and close the reference.  However, if the value on the shift register was invalid, LabVIEW crashed instead of throwing an error (I guess a crash qualifies as an error).
    If you look at the attached picture, my workaround was to use the "Not A Number/Path/Refnum?" function.  If the reference is bad, I don't try to use the "Deny Access" funtion or close the file.  That worked just fine and seems like a good solution for now.
    Jim
    Attachments:
    Logger.png ‏6 KB

Maybe you are looking for