Jump to content

yiweihua2002

Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Posts posted by yiweihua2002

  1. QUOTE(Justin Goeres @ Jan 24 2008, 12:19 AM)

    I've noticed, too, that for large files the OpenG Variant Config File VIs are slow under certain circumstances. I have a system for setting up GUI interlocks (enable/disable on various trigger conditions) that uses an INI file to store the interlock configurations. The number of lines in the file is slightly larger than (number of GUI slave controls) x (number of interlock signals). In one particular case, this is about 350x20 = 7000 entries in the INI File, and that takes a long time to load (2-4 minutes, as I recall). The file itself was something over 100KB if memory serves.

    I was able to mitigate the delay by stripping the "default" values out of the INI file. For instance, for every boolean array element that was FALSE, I removed that line from the file (using the File I/O palette and some regular expressions). In my case (because my data was mostly booleans, and mostly FALSE), this reduced the file size by something like 75%, and reduced the load time by about half. Something like that might work for you if some of your cluster data is just a default value.

    However, I've never gotten LabVIEW to crash while reading an INI file. That's a new one to me.

    EDIT: Just to be clear, this isn't a dig at the OpenG Variant Config File VIs. I love them :wub: . There's just a point of diminishing returns when you try to use them to store large amounts of data.

    Thank you Justin Goeres:

    I have post my question in ni.com,and in which I got the answer to let me set FileĀ»VI Properties

    and selecting Execution in the VI Properties dialog box,set the preferred execution system to user interface.

  2. QUOTE(crelf @ Jan 23 2008, 09:57 AM)
    QUOTE(crelf @ Jan 23 2008, 09:57 AM)

    Just by looking at the right scroll bar on your front panel, I'm assuming that's one huge cluster - can you please post your code (the actual VI, not just the screen shot) for us to have a look at?

  3. Dear ALL: I have a VI use OpenG Read INI Cluster subvi to read a complex cluster data structure called step config data,and when I Run this VI,It sometimes read INI File quickly,and sometimes read INI File very slowly.If I want to speed up the read INI File speed,I must quit labview and restart it,and when I quit labview it will reports error just look like Labview Error Message.JPG

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.