Jump to content

Antoine Chalons

Members
  • Posts

    955
  • Joined

  • Last visited

  • Days Won

    34

Posts posted by Antoine Chalons

  1. (message first posted on jki forum, but traffic there seems very low...)

    I get this error when building my package with VIPM, previously the package was building fine.

    It always took a long time (~15 to 20 minutes) to build this package because it's quite large (~78 classes, 1200+ VIs).
    Since the last successful build I've only added some methods in the classes.

    Mass compiling the folder containing the source code doesn't report any issue.

    553679461_Capturedcran2022-11-10183001.png.b8c108f933e5e522038a84f595b122b5.png

    Error 66 is descibed in LabVIEW as 'The network connection was closed by the peer. If you are using the Open VI Reference function on a remote VI Server connection, verify that the machine is allowed access by selecting Tools>>Options>>VI Server on the server side.'

    I've check this and other (smaller) package still build fine.


    Sources are in LV 2019 32 bit

    I'm using the latest version of VIPM 2021.1 b2754

    Any suggestions?

  2. I have a class hierarchy that has 9 levels of inheritance, 78 classes in total and I probably will reach 100 classes at some point.

    I have not really noticed any specific issue with this, project load time is similar to other project of similar size but with tiny inheritance trees.

    The only issue I ran into is that if I mass compile from the project, it will take days but if I mass compile from the tools menu, just a few minutes. (see discussion on NI forums about this)

  3. I've seen this, I can't open your code because I'm in LV 2020.

    I'm guessing when the power cut happened, the file ref had been opened and not closed yet.

    I don't know which VIs you use for to read/write your INI, but my I suggest to make sure that any time you access the files, you do use open file, read or write and close file as soon as you're done.

  4. Lots of questions here, I will simply point you to vipm.io from when you'll be able to get VIPM related info.

    There are 4 'levels' of VIPM, free, community, pro and entreprise, see differences here https://www.vipm.io/download/

    As far as I know VIPM is not a tool that will let you manage license subscription in your product, for this I think the best starting point is on NI forums : https://forums.ni.com/t5/Developer-Center-Resources/tkb-p/7307

     

    As a side note, I think handling different types of licenses of your product is not an easy task, good luck with that!

    • Like 2
  5. Just now, Rolf Kalbermatter said:

    That's most likely because of this in the OpenSSL headers:

    # if OPENSSL_API_COMPAT < 0x10100000L

    These functions were required to be called in OpenSSL before 1.1.1 but since 1.1.1 OpenSSL automatically initializes its engines on the first call of any function that creates a context of similar session.

    And since 1.1.0 is already EOL too and you should either use 1.1.1 or even better 3.0.x, it would be indeed strange if your OpenSSL library still included those APIs. I think the old libssleay.so still contained it in 1.0.1 but it was unnecessary to call that, but when changing the shared library names they also axed many of those compatibility hacks too.

    You should probably call

    OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS | OPENSSL_INIT_ADD_ALL_DIGESTS | OPENSSL_INIT_LOAD_CONFIG, NULL);

     

    and yes this means reading the headers to see what numeric values those constant defines have.

     

    Your reply came as I was typing my edit... Thanks

  6. Has anyone been able to make this work on Linux desktop?
    I use LV 2020 SP1 (therefore 64 bit) on Ubuntu 20

    I ran

    Quote

    apt-get update
    apt-get install libssl-dev

    to install libcrypto.so but at the first call of the so "OpenSSL_add_all_digests" I get error 15 "resource not found" and indeed if in the CLFN I put the full libcrypto.so path, the "OpenSSL_add_all_digests" is not in the "function" list

    edit : I guess the answer is RTFM

    With help from a co-worker we could make it work on Linux, multiple functions have different names, will post the VI soon.

     

  7. I don't have Vision Dev module anymore so I can't send you code, sorry.

    There are a few things to consider, here, what is your camera (brand, model)? And do you have a fast drive to save on (SSD)?

    I'm asking this because most probably, the code you wrote is limited by the fact acquisition and saving are done in the same loop.

    And I doubt that - even with an SSD - your computer would be able to acq+save 100k images per second, even if those images are small in resolution.

    Also note that saving to TIFF might not be the fastest option.

    I think you have to go for a slightly more elaborated architecture and use 2 loops, one for acquisition and another one for saving.

    About 10 years ago I made a system that was acquiring 4k images per second (tiny images, 128*1000 8bit monochrome), it had to work without an SSD not we were limited in the duration of acquisition depending on the RAM, the concept was to fill the RAM for as long as we could, stop the acquisition and save to disk.

    But the first step for you I guess is to calculate the throughput in Mbytes /s that you'd like to achieve, I'd say 200 Mbytes or lower you culd probably stream to disk untill it's full.

  8. VIs from DSC / user management let you check the user/group of currently connected user and based on that you can decide to do anything you wish, refuse keyboard entry, value change on controls, etc...

    To be clear, I'm not saying you should use the DSC module, I'm simply saying it could be used also to do that.

    Now... do you already have a licence for it? If not, just implement your own user management.

    If yes, not too fast, using it requires to understand how it stores the information about the domain (groups/users) etc.

  9. In the past I used the DSC module from NI, it lets you create groups and users in those groups, then in any VI of your project you can hide front panel elements based on groups.

    There is a palette with a few VIs to list / change users.

    Pretty handy, and if you change user during execution, automagically LabVIEW handles the rules that you defined.

    You can't change changes "rules" during execution.

     

    DSC module is Windows only.

    edit : a runtime is needed for deployed EXEs, I'm pretty sure the runtime is free, at least it was in the past.

  10. 52 minutes ago, Reds said:

     I would be real curious to know what percentage of active participants on this site only found out about it via the the old info-LabVIEW listserv.

    I'm one of those.

    Quote

    How would a brand new LabVIEW developer find or know about this site? Google? What are the odds that this site ranks better than ni.com in Google? Pretty much zero I would think.

    I'm not sure how young lads do their internet search but if you look-up "labview forum" LAVA is in the top 3

×
×
  • Create New...

Important Information

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