Jump to content

vugie

Members
  • Posts

    393
  • Joined

  • Last visited

  • Days Won

    32

Posts posted by vugie

  1. One thing that bugs me a little though is that when I create a new plugin by using the context menu option "New Sandbox VI" the VI generated is in the JKI.LV.Extentions context and therefore not savable... wouldn't it be easier to place the new plugin in the main application context?

    I guess it is possible to choose the context in which you create a VI, but I was wandering how do you create your own context programmatically?

    Strange, I have no problems with saving VIs created that way. I have never dive deep into context related issues. I remember that there were some problems with RCF's context.

    Any suggestions what should I wire to Application input of "New VI" block? Now there is a This Application constant.

  2. I had a situation where I needed something like this, however, I found a good G code solution. I had a dll call that would spawn a new thread, and return immediately. The spawned process would continuously put data into an array that was provided to the dll by LV. The problem was that LV would de-allocate/reallocate the array memory space after the subVI calling the dll completed. This of course causes memory corruption problems. The solution was to use an uninitialized shifter for the array, prefilled to the desired array size. This allows the memory space to remain open, and no corruption errors.

    To make things clear - These functions ARE pure G code. Although they use Call External Function Node, as library path they use "LabVIEW" keyword - so they should work regardless of operating system. Of course there is question of "pureness" definition...

  3. Here's what I'm seeing, which doesn't look like the image Mikael posted. I can barely tell that it says "stop"; GOCR doesn't see anything. What can I do?

    post-7534-0-37501400-1291372904_thumb.pn

    I've attached the file as .txt instead of .ppm.

    I reproduced this behavior. It seems that you use ClearType font smoothing. So there are gray levels in the image. Just modify the code in such way:

    post-7450-0-58048200-1291635921_thumb.pn

    You can change font smoothing setting in Windows with Screen properties->Apperance tab -> Effects button -> Smoothing method->Standard (sorry, controls names may not be exact, because I translated them from localized system version).

    BTW - it seems that Get Image method does not exist in 8.2 for anything but diagrams. If you want to make the code general, you should use Get Image of Block Diagram instead and trim it with Master Rectangle of structure

    • Like 2
  4. Have you done anything with GOCR in LabVIEW? Do you have a sample?

    Not in LabVIEW, but this is just calling an exe. So write file (PPM format), run exe, read file.

    I made a quick try. For this image:

    --------------

    the output is

    _ _1 ''Boolean'': mouse Leave _ _

    For this:

    ---------------------------

    [l]''Boolean'': mouse Leave

    Probably with font definition would it would be better

    [EDIT] Some problems with uploading. First image was whole the frame selector, and the second was selector with border and buttons stripped

  5. "I wonder what would happen if I put methane gas in a microwave and cook it for a while?"

    Well, AFAIK methane has not any significant absorption peaks in microwave part of spectrum, so I don't suspect that anything bad would happen. At least unless there are no metallic objects with sharp edges, which cause sparking...

    • Like 2
  6. These are private methods (brown) that have not been released by NI, even with the scripting license released last year.

    They are undocumented because they are for their internal use.

    They might be relics that have been replaced by Tags, but that's just a wild guess.

    Where did you get them? Scripting Workbench?

    BTW, does anybody know how to prepare data files for Scripting Workbench for versions higher than 8.5? Just to know what new appeared.

  7. .. The second one gives me all the 'dialog' that show up but are not present as a vi. Well, they just consist of the FP, the terminals are not connected. Wonder if I could place some code there.

    ...

    They may be templates for some xnodes. Putting code there could work, but his depends on how xnodes put their code into templates.

  8. The latter. Or draw it using primitives. The other issue is how to keep it in the corner while user is rotating the model - I would like to have special billboard mode for this. Now you have to constantly change position of th axes to follow changes of viewport, or to implement your own controller which rotates and translates certain sceneobject (parent of model itself) and only rotates axes.

×
×
  • Create New...

Important Information

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