Jump to content

Mike Matthes

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by Mike Matthes

  1. Add my vote to the conditional disables being accessed by the build specifications. Ton - nice work hunting down the conditional disables programmatically. I don't believe any of your VIs access the project level of conditionals, do they? I tried hacking around the the project invokes and properties, but I don't know what value to give to the "Section" in the Project method "Get Item", which I'm guessing accesses it. I can see it clearly in the XML of the project under the same tag "CCSymbols" that you hacked. Any ideas? If you can access this via VIs then you have all the hooks you need to have a build vi that sets the conditionals and calls the .exe builder you want, or even the full sequence for a complete build. Sweet! Thanks, Mike
  2. QUOTE (Paul_at_Lowell @ Sep 18 2008, 10:42 AM) Paul - do you recall if this produces error 1527 - "LabVIEW: Attempted to read flattened data of a LabVIEW class that is not currently loaded into LabVIEW."? I'm getting this error trying to convert out of an XML string that was just saved to disk. I certainly have the class loaded in memory - there's an object sitting right next to the unflatten from XML (in fact its wired into that function). I don't think this XML is quite ready for use... Mike
  3. QUOTE(JasonKing @ May 7 2007, 11:53 AM) I'll be sure to do that (make some product suggestions) once I get a chance. I followed the other thread and it was very interesting. In general I have to say that I ran into the exact same bugs, so it must be a fairly common thing to do to try and move scales around, graphs to different plots, etc programatically. As for use cases, in general you could take every XY graph property / method and assume that we'll want to do the same thing with the Muliti-plot. I have many uses where I just want a common X axis, and this has provided a great tool for these. I think it was one of the better additions to 8.0 feature-wise, it just has some more development to get to the maturity of the other graphs.
  4. Does anyone know if there's a way to programmatically add a new plot area? I don't know how many graphs to create until run-time, and I want to have seperate plots for each graph, all on the same x-axis. Am I overlooking the property I need?
  5. I'm trying to figure out if there is a fixed type descriptor for a VISA refnum type of Variant. It's easy enum to determine types that are listed in NI's documentation, such as SGL, DBL, etc, but when you get to hex 70, it is a "refnum". There are tons of different types of refnums available, but I need to know if it is a VISA refnum so I can handle it differently. I have a solution where I just try to convert the variant back to a VISA - if it works it must be a VISA refnum, if it fails it must not be. That's kindof a shotgun approach. Does anyone know the secret decoder for the refnum subtypes? I haven't been able to find a document on this. Thanks!
  6. If you just have a few simple items and haven't installed the openG stuff, the NI ini functions will work fine as well. If you're already running in the openG environment, it is probably more flexible, however...
  7. I ran into this same problem and the only real way to fix it is to install the oldest version, then copy up to any later versions of Labview on the machine, much like the threads you have posted. I think this is NI's way of saying this is legacy and you need to stop using it. Unfortunately, many of us are forced to support old code (I'm in the same boat). By the way, the database toolkit seems to have a similar issue. I couldn't get the "complete" to work for me, as suggested in this article: http://digital.ni.com/public.nsf/allkb/e73...6256fff0049a600 I had to manually copy it to each version. The "Complete" probably works if its the first time you've installed it, but I've had to uninstall and reinstall all my Labview versions recently due to a mishap with installing the 8.20 beta a few months back.
  8. I know I can "concatenate" by opening the 2nd file, reading it, and appending it to the first. I could do this in chunks to reduce memory use, in the case that the file is huge. This will take time (one of the problems I'm trying to solve). The "reserved" space option is also one to consider, and probably the most efficient for processing time. Unfortunately, that could leave a some dead space. I will likely have to live with that and use this solution. So far I haven't heard an equivelant solution to "appending" a file, where you do not have to read in file chunks to memory. A file on disk is just a bunch of fragments. It seems like windows could add a new fragment and change the file table on disk appropriately. I'm 99.9% sure Labview doesn't support this. I'm wondering if somebody has tackled this some fancy way. Thanks for the suggestions - they are most likely the easy options available at this time.
  9. I have an ASCII file (unfortunately) that contains header information such as test parameters, results, etc. at the top of the file. This is followed by a somewhat large tab delimited data table. This is easy to do post formatting and save the file once, but now I have the need to save the data file on the fly. The problem is the header information changes as the test finishes. Making the end of the file appends is easy - just append to the end and keep going. Is there a way to prepend a file - ie change the length in the other direction? I'll probably have to split off a header file and a data file, but of course I like to do things the fancy hard way if possible.
×
×
  • Create New...

Important Information

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