Jump to content

Norm Kirchner

NI
  • Posts

    823
  • Joined

  • Last visited

  • Days Won

    25

Posts posted by Norm Kirchner

  1. post-208-1135897125.jpg?width=400



    If the picture is 255 shades of grey, the attached picture will accomplish what you need, minus the 2 for loops. NOTE: Good range for magnitiude control 0-10

    If it is a color picture, then you must break out each of the color channels and re-combine them after you have adjusted their values.

    The dirty version of the technical answer is, you must increase the distance of the current pixel value from a center pixel value

    Thus making the light pixels lighter and the dark pixels darker
  2. Much like Michael I have started on a parser with the attempt to grab the simple functions from the rest of the gook in a header file.

    I think even w/ out a Perl coder available, if we start small w/ the assumption of having a concise list of well formatted function calls, we can create somethign that will save ooodles of time.

    I have a prototype already together that can even handle the creation of clusters from structures and enums from enums.

    I'll be posting it after the new year when I get my PC back.

    Keep on rockin' in the free world

    ~,~ The Captain

  3. Got a few more min this time to read the thread and realized that it had more information than reailzed.

    BUT. This thread would be better suited for discussions on the development of the scripter.

    I'm installing CVI now to check out the utils that the thread mentioned, but I still think that we should be able to do this for all of us w/out the CVI license.

  4. Read Michael Ashe posting in this thread. He has apparently start working on this.

    This still doesnt' give me anything.

    Forget the boundries.

    This is needed. I have a number of DLL drivers with header files. I now need to create wrappers

    I can't imagine that this is the only situation.

    Great ideas can be accomplished through teamwork. All that post said was that it was too hard and wasn't worth NI's time.

    Let's make it worth OUR time!! Vive la communite

  5. This is the reason that I created my "work around" for adjusting the text. I don't quite understand why this is the case but without a doubt, you can not do what you are asking. I would love to hear the reason why it is that's for sure.

    But you can trust me that I tried most every possible implementation of accomplishing what you are looking for and the best I could get is w/ my align BD label.vi

  6. This will be VERY useful if I/we can do this.

    I am heading down the road of a utility that will automatically define a "Call Library Function Node" based upon an available header file, thus simplifying a very time consuming task.

    Is anyone up the road ahead :question:

    I'll keep my progress updated here and I am welcome to any suggestions.

    Norm Kirchner

    ~,~

  7. What I am looking to do is make somthing that operates as the end user would expect.

    In this case the addition needs to happen at the bottom.

    The user is going to expect a scroll bar rather than a slider for the fixed number of elements workaround, because the scrollbar gives feedback to the number of elements out of view.

    I've given into the fact that there is no way to easily accomplish this and have moved down another path.

    Thanks for all the help! :thumbup:

  8. This has nothing to do w/ what I'm asking for.

    I want to change the scroll position of a FP loaded into a SubPanel

    Only 1 VI will be loaded in the SubPanel.

    And I want to force it, from time to time, to scroll all the way to the bottom.

    Your solution only addresses a bug with a redraw.

    The loaded FP has an array on it, the array will be growing in the number of rows programmatically. So after a while the number of rows in the array will exceed the length of the FP. When this happens, I need the SubPanel to scroll all the way down.

  9. This topic came up in public on info-labview.

    Let's say you create a control named 'my control 1' and you hide it's label on the front panel.  Then you want to make 10 copies of it.  So, you use CTRL-drag to copy it.  Each copy gets named 'my control 2' 'my control 3' etc... Now, you go to the BD and see that all the terminals don't have their labels displayed.

    John Lokanis

    Well I have already made a nice little VI that accomplishes this.

    It's not super fancy or mega documented,

    but it works and I'll leave the fancying up to you guys.

    Enjoy

    -Norm

    ~,~ The Captain

    Download File:post-208-1122647205.llb

  10. I thought I would wrap up this thread by letting all know of the solution. It's a bit dependent on how much horsepower your PC has but it's PLATFORM INDEPENDENT :thumbup:

    SIDE NOTE: Mario, I was just looking to display the image (end side note)

    I have found a way to hack into the picture control to allow fast redraws of streaming video. Assuming you get your video data in a 1-d array of U8 (but concept can be adjusted for any vid format). If you use the standard "Draw Unflattened PixMap" for your first frame, to format all the picture data/header info

    post-208-1119285363.jpg?width=400

    And then for every following frame, simply replace only that portion of the picture data within the bytestream.

    post-208-1119285837.jpg?width=400

    You can reach framerates in excess of 30 FPS with only the PICTURE CONTROL. There are a number of other assumptions going on here, but for the sake of space I'll stop here.

    Happy Hacking

    ~,~

    The Captain

    • Like 2
  11. Now here's something interesting/BUG.

    I was trying to find an easier way than having about 100 plots to accomplish this.

    I was thinking about making 1 plot of bar graph type of the upper limits and then filling it to another plot of the lower limits.

    But alas, if you try to fill a bar graph to another graph (instead of to 0,+inf or -inf) it fills the whole area between the graphs.

    BOOOO :angry:

    Anyone know a way around this "Feature"

    See attachment

    Download File:post-208-1116868101.vi

  12. I'm going to ask Mike A. to start an External Code section under General, we'll see what happens.

    For now, the overloaded method "Show dialog" has an instance that takes an owner as an input.

    Now I have all the planks for the bridge but I just need the rope to tie them together :blink:

    I can get a windows HWND from the user32.dll calls,

    On any form there is a Handle property that can be read but not set.

    And the owner is of class IWin32Window.

    Now here's the question of the day. Is it wrong to try to typecast the HWND to the IWin32Window type :question:

  13. Where the 1.0.5000.0 is the .NET 1.1 version. If you don't see that one, I would recommend

    Now I see the light.

    Silly me, I was expecting the version number to start w/ something like ohh I dunno 1.1.

    In anycase, I don't know for sure what the version number was before I started kabitzing with everything, but it is now the correct 1.0.5

    I am now back on the track of :headbang:, trying to get an image into a print preview window and a page setup/print dialog available to the end user. :blink:

  14. I want to use System.Drawing.dll

    It looks as though the newest version is v1.1.4322, but in LV it still references 1.0.3

    I did find the GAC under admin tools, and it still ref's the 1.0.3 for all assemblies

    If I go to c:\windows\microsoft.NET\framework it shows 2 directories

    v1.0.3705

    v1.1.4322

    My LV list and the GAC still looks at the 1.0.3

    This is my problem :headbang:

×
×
  • Create New...

Important Information

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