Jump to content

Neil Pate

Members
  • Posts

    1,156
  • Joined

  • Last visited

  • Days Won

    102

Posts posted by Neil Pate

  1. I am using USB cameras (several different vendors on different projects) and have noticed that sometimes my image acquisition fails as the camera has just disconnected (or failed in some manner). My camera is configured for Continuous Acquisition and I am using IMAQdx Get Image 2.vi. When the camera has failed (or is physically disconnected) I do not get any error out of that VI, just the last image is returned. I have tried various other techniques like looking at the buffer number etc but cannot seem to get anything to work reliably.

    Any ideas on what I am doing wrong or a strategy I can employ for figuring out if the camera has failed?

    Thanks

    n

  2. 11 minutes ago, Thoric said:

    2. Sending a message to the subactor directly after registering for notifications, which gets the subactor to send a reply, does work. But it didn't in my actual project work, only in the test code. So there's either a race condition, timing error, or something else different.

    When something works in the IDE but not in an exe (assuming nothing stupid e.g.e path differences) it very often is a race condition showing up. Never fun to do but can you chuck some delays into your launching code and/or the launched code to simulating running in the IDE which is usually slightly less responsive.

  3. OK turns out I was looking in the wrong place!

    You have to browse to just System (Not System.Net.Networkinformation) and there it is..

    Also the .net API browser courtesy of Microsoft comes in handy https://docs.microsoft.com/en-gb/dotnet/api/system.net.networkinformation.networkinterface.getisnetworkavailable?view=netframework-4.7.1#System_Net_NetworkInformation_NetworkInterface_GetIsNetworkAvailable

     

    Capture2.PNG

    • Like 2
  4. Can anybody help me figure out how to run this .net code in LabVIEW

    bool networkUp = System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable();

    I always seem to fall at the first hurdle with .net, I usually cannot figure out what constructor to use (if any) or in this case even find the method in the GAC or by browsing. As as I understand this method is "global" and does not need any kind of constructor?

    Any ideas?

    Capture.PNG

  5. On 3/7/2018 at 8:07 PM, ShaunR said:

    Define "using" :D I develop in 2009 and recompile in later versions :P (see MDI toolkit above ;) ). This is mainly because of TPLAT not supporting <2012? without putting special VIs in the code. Forgetting about 2009; 2013 is my next best/favourite choice (for stability and performance) but I have 2012 Linux and Mac versions for testing ECL so that is the minimum for that one. All the toolkits are tested in all versions on all platforms (except the MDI toolkit). From the minimum version to the latest, in both 32 and 64 bit.

    It has been so long since I used 2009 (actually I may even have skipped that and gone 8.6 --> 2010), out of curiosity, in your opinion have there been any "must have" features that were introduced after this?

    When were DVRs introduced, I seem to recall using them in LV2010? Off the top of my head the only thing I can think of is the reworked Web Services.

  6. I am troubled by the size on disk of some of my .lvclass files. I have done the usual things like pruning up the mutation history, however there are still some things bugging me.

    1. What is NI.LVClass.FlattenedPrivateDataCTL and why is it so big? I have a class which just consists of a bunch of clusters (sure it gets a bit nested but nothing crazy) and this field is nearly 60k characters long
    2. What is NI.ClassItem.ConnectorPane" Type="Bin"> This field seems much bigger than I would expect, the data does not seem to match the name...There is one of these for each method VI and some of these can be 2k characters long.

    Any ideas?

     

  7. After making the switch to all "modules" launched dynamically about five years ago I really cannot imagine now not using my home grown "actor framework" for all projects, regardless of their size. There is just so much good stuff I would have to recode.

    I cannot speak for the actual Actor Framework though; I never really liked the architecture enough to invest the time in. However watching it from the wings for the last seven or eight year has not really made me think I made the wrong decision.

  8. I have a customer logo, a PNG with a transparent background and I wish to programatically display it on a FP which also happens to have a picture (static) pasted into the background. I have tried to use a native 2D picture control and also a .net Picturebox but cannot get the logo displaying nicely with proper transparency.

    This is all a bit deja-vu for me as I struggled with a similar issue some years ago however none of those techniques seemed to do the trick now. All the forum posts seem to indicate this is quite a tricky thing to get right.

    Any ideas?

  9. Hi James,

    Thanks for your fantastic work here.

    Do you have any idea how (if) I can create an enum like this? The bit I am struggling with is upside down triangle decal on the right-hand side. I cannot seem to get it in the right layer that will allow the user to click there.

    I tried customising one of your flatline controls, and I can replace your small triangle with my desired one, but then as soon as I change the fill colour to anything other than transparent it covers the decal.

    Any tips?

    Coloured Enum.png

  10. Hi all,

    I would like to make a Bar Plot in LabVIEW with the slight difference in that I would like my columns to have a colour gradient to them. All my odd columns will have a certain colour + gradient,and all my even columns will have a different colour + gradient.Ideally also it would be nice to be able to animate the changing heights of these columns.

    I can probably do this by using the Graph just for the "frame" and axes etc and then manually drawing in the columns into the FG picture, but seems like a lot of work.

    In the attached picture the Graph is generated in LabVIEW (except the middle column I have pasted over from a different application). Ideally I would like to to this all natively in LabVIEW. The previous app was actually LabVIEW but I do not wish to use the old technique as it is very fiddly and totally bloats the application (hint, the column is actually a picture control),

    Does anybody have any suggestions?

    Graph.png

  11. I have given up on 2017 and moving development back to 2015 SP1. I don't need channels, wouldn't mind VIMs but it is not worth the tradeoff.

    Part of me suspects this is a push to annoy old-timers enough to try out NXG (which I suspect will be ready for prime time no earlier than 2019).

×
×
  • Create New...

Important Information

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