Jump to content

bmoyer

Members
  • Posts

    207
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by bmoyer

  1. Thanks, I was not aware of that bug (but I'm not using 2012 much yet anyway).  Post 18 on that thread says there's a workaround, but I'm not sure what it exactly means.

     

     

    Also, in the meantime, if you unlock a folder, try changing the default install dir such that unlocked folders are not relative to the default install dir as a temporary workaround.

     

    Anyway, I'll wait for the update.

  2. Then when making changes save to ProgramData.

     

    Win 7 has some unexpected rules when it comes to the ProgramData folder, you can create and modify files (and folders) but if you switch users, they only have read access.  So for this I have my installer create the folder where I will be storing the modified ini (by creating a new destination [Public App Data]<Company Name><Application Name>), and set the folder to unlocked.

  3. What I do is I look for an ini file for my application in the COMMON_APPDATA folder (for Win 7 it's usually C:ProgramData<CompanyName><ApplicationName>) and if the file is not found, to copy it from the location of the exe to this location.  That way, if they make changes to the default configuration, the changes are stored in the AppData folder.  In the VI that reads the .ini, I have a the default settings stored, and if I happen to make a new setting or section, the new settings are created automatically in their copy of the ini but they get to keep all of their previous settings.  I use the OpenG Variant Configuration libraries to handle creating ini's from clusters.  Attached is a simple example.

     

    Bruce

    ini example.zip

  4. This might be slightly off topic, but is there a 64-bit compatible version of this ZIP library? I really like the ability to extract a single file and the ability to save to a zipped string (I don't think NI's toolkit has this yet), but since everything's moving to 64-bit here, I had to change over to the NI ZIP libraries which are a lot more cumbersome.

    Thanks,

    Bruce

  5. I think I've uncovered the/my error. Apparently when converting to LV2011 I ended up with a space in the File Type value string ini header which was causing the ini file not to load properly because it didn't know that format of the file. The file seems to load properly now (after removing the trailing space) even with all of the quotes (at this point I don't know if other programs that were developed in 8.5 will be able to handle the change).

  6. I'm in the process of updating some code to LV2011 (from LV8.5) and most of the updating went relatively smoothly (I've tried updating to newer versions (8.5->8.6.1, 2009) in the past and this time the process seems a lot better).

    Anyway, I'm noticing some differences with writing to .ini files (using Write INI cluster__ogtk.vi) and I was hoping that someone already had some experience dealing with this. The old format (LV8.5) only had quotes (") around strings that had spaces, and now it seems like every saved value has quotes around it. Even numerical values. This is causing some issues loading the file back in to a cluster since the enum/numerics are being translated as a string. Also it is incompatible with other programs which load ini files.

    Old Format (8.5):

    [Acquired Images]

    File Type=2

    Images.<size(s)>=0

    Relative Path="Acquired Images"

    New Format (2011):

    [Acquired Images]

    File Type="2"

    Images.<size(s)>="0"

    Relative Path="Acquired Images"

    Any ideas as to how to fix this?

    Thanks, Bruce

    LV85 Header.txt

    LV2011 Header.txt

  7. JobDescription

    Position open for our Princeton, NJ office

    Summary:

    ISR Systems Princeton (formerlySensors Unlimited Inc) is the leading developer and manufacturer of indiumgallium arsenide one and two dimension focal plane arrays and cameras. Ourproducts have diverse applications in telecommunications, process/qualitycontrol, fiber optics inspection and military imaging industries. For additionalinformation on our business, please visit our website: www.sensorsinc.com.

    Develop and establish reliability of component parts, assemblies, and systems.Develop and maintain automated test system fixtures and test programming.Ensure that electronic designs are in conformance with company, customer,reliability, and safety standards. Enable modifications in the design toimprove yield, meet production and customer needs, and maintain the highestreliability standards. Get involved with debugging new system designs andperforming failure analysis on any returned systems. Resolve problems of amoderate scope and provide technical assistance to manufacturing and salesorganizations.

    BSEE required. MSEE preferred. 3~5 years electronics industry experience.Experience with electronic manufacturing processes and automated test systems.Significant experience implementing complex test and development procedureswith at least one of the following: LabView (preferred), Visual Basic, or C++.Experience with NI TestStand and/or JTAG test systems a strong plus.Demonstrated capabilities in failure analysis and troubleshooting electroniccircuits to the component level. Familiar with commercial electronicmeasurement and test equipment and in reading and understanding printed circuitboard schematics and firmware code.

    Essential responsibilities involve:

    • Developing Test Methods and creating test fixtures for testing camera basedsystems

    • Designing and implementing hardware, firmware, and software to test electronicprinted-circuit-board based systems

    • Transition to Manufacturing & Manufacturing Engineering Support

    • Performing Debug of new Electronic Platforms and Failure Analysis of anyreturned devices

    BasicQualifications :

    Four year degree in ElectricalEngineering. Masters degree is preferred.

    Requires 3-5 years of experience. Experience should be in testing integratedcircuits as well as designing probe cards/test stations for ICs and testing ofoptoelectronic devices.

    Please use the LAVA Forums PM (Personal Message) system for any inquiries.

  8. I didn't see your second post until I tried the VI, so I can verify that it works on 2 monitors using the same graphics card.

    Could you try this VI? I now realize that the issue was with when I turn anti-tearing ON. It works fine with anti-tearing OFF. :angry: (Anti-tearing is useful for preventing streaking that occurs when the image refreshes when the screen is in the middle of a redraw).

    Bruce

    IMAQ WindDraw Multiple Monitors Test (v2).vi

  9. I posted this to the NI Forums but I was hoping to get more input.

    I'm trying to develop an application using IMAQ drivers that displays the image fullscreen onto either the primary or a secondary monitor display. It works fine when operating on the primary window, but when I put the window on the secondary window it doesn't update. As an additional test, when I put half the window on 1 screen and half on the other, the part that is on the primary display updates while the part that is on the secondary display does not.

    Any ideas as to how to get this to work on the secondary monitor? Is this a coding error or a bug?

    (I've included an example VI to demonstrate the problem.)

    I'm developing using NI-IMAQ 4.5 with LabVIEW 8.5.

    Thanks,

    Bruce

    IMAQ WindDraw Multiple Monitors Test.vi

  10. I'm in the process of making a VI that can printout a report that show barcodes that the user can use to scan for other purposes. I'm using the VI Invoke Node "Print.Panel To Printer" and for some of the controls it looks like it is printing out in full resolution true type, but for others it is printing using the screen resolution. Attached is a PDF of the problem. You can see it more clearly if you zoom.

    Why do you think this is occurring? (I'm using LabVIEW 8.5 if that matters, has this been fixed in a later version?)

    Thanks,

    Bruce

    Barcodes.pdf

  11. Thanks for your input. Yes, that's what I was thinking. Just using the Fonts folder filenames doesn't work. You need the actual font names. I would think that this functionality would be "built-in" to LabVIEW by now. I guess I could try looking into using .NET methods to do this (this is how I implement a print dialog), but not sure if this will be easy or not. I think the Report Generation Toolkit used to have a way to open a font dialog (Report_Font_wizard.vi), but this is disabled and when I try to enable it gives an error (Class is not licensed for use in Report_Font_wizard.vi->Set Report Font.vi->Untitled 1.).

    Bruce

  12. I'm trying to create/access a dialog to allow the user to select which font they would like to use so that I can then change some front panel controls based on their selection.

    Does anyone know how to do this?

    Thanks,

    Bruce

  13. OK, thanks for the info. NOW I can do a workaround.

    < begin soapbox section >

    Remember I don't even have "ogtk" on my system and so had no way of knowing what that VI did, esp given that the VI in question only had one input (an int) and no outputs (except for Error In/Out) there was no way for me to discern what that VI did, esp with a truncated name. Maybe it was "...get the largest decimal..."...."...and set it to 0..."; or maybe it was "launch ALL the missiles". It's easy to forget that, if do have the relevant toolkit installed but you're emailing someone who doesn't, they probably can't even see some things that are very obvious to you.

    < end soapbox section >

    Thanks again! thumbup1.gif

    Oh, sorry about the misunderstanding, I assumed that since you knew it was from the OpenG toolkit that you had some experience with it. I got confused when you continued asking about it after I stated that it wasn't needed for the functionality of the VI.

    Sorry 'bout that,

    Bruce

  14. Now that's a really great idea -- who'd havve thunk'd it?

    How about a little help, like what does "Fit VI Windows to Largest Dec_ogtk.VI do and, perhaps more importantly, how does it do whatever do do it do do...(esp with a 0 argument...)....please?yes.gif

    I think you're making a mountain out of an mole hill since this isn't a required VI, but the VI finds the largest decoration on its caller's front panel and then fits the window around the decoration. The 0 argument refers to the border around the decoration.

    Bruce

×
×
  • Create New...

Important Information

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