Jump to content

JKSH

Members
  • Posts

    494
  • Joined

  • Last visited

  • Days Won

    36

Posts posted by JKSH

  1. 2 hours ago, Bruniii said:

    You are correct, the chassis in this PC is the NI-9162, while on the others PC the 9171 is used. I totally forgot about it...still, it worked for months without problems. May I ask you how did you found out? I cannot see any clue from the screenshot that I shared in this topic!

    Your screenshot showed that it's a "USB-9215A" which, according to https://download.ni.com/support/manuals/371568e.pdf, is a USB-9162 + NI-9215 😀

     

    2 hours ago, Bruniii said:

    Is the reset on MAX the only "reset" available? Should I remove something after uninstall LabVIEW and before a new installation to clen everything and start fresh, hopefully without this error?

    There is the "Reset NI MAX database"... https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8awSAC Beware, this completely wipes your hardware configuration (e.g. any custom Scales, or custom Channels under "Data Neighborhood") so you'll need to reconfigure them afterwards.

    I'm running out of ideas, I'm afraid. The only other things I can think of trying are: Try an older version of DAQmx (only possible if you're not using LabVIEW 2020), or contact NI tech support.

  2. 16 hours ago, ShaunR said:

    Well.

    I got a rudimentary CoAP API working (over DTLS). It's a much better protocol than MQTT, IMHO.

    I'm beginning to run out of protocols to implement. :P

    Congrats!

    Fancy giving CBOR a go, if you're looking for something to do? It's designed to work well with CoAP. I'd imagine that the API can be modelled closely after Dr Powell's JSONtext.

  3. On 6/28/2023 at 5:26 PM, Bruniii said:

    I have updated the DAQmx divers to the same version installed in the working PCs but nothing has changed and I have the same error even after multiple restart of the PC

    • What happens when you click "Self-Test" instead of "Test Panels..."?
    • Have a look at Windows Device Manager. Any error messages related to your chassis?
    • If you still can't find any clues, contact NI tech support

    Anyway, I just realized that your 2 machines actually have different hardware. The one that's not working has a USB-9162, not a cDAQ-9171: https://download.ni.com/support/manuals/371568e.pdf

  4. 3 hours ago, Mads said:

    I assumed you could add a ldirectory of ipk files as a local feed, and that that would allow you to see it as an option in the software install menu of the RT image....

    I tried adding a local folder as a feed...but the package did not show up in the list of available software.

    The feed needs to contain a Packages.gz file (which is a gzip'ed copy of a Packages file) that describes the available packages.

    • You can see a sample at http://download.ni.com/#ni-linux-rt/feeds/2022Q4/x64/main/x64/
    • You can use NI Package Manager to generate this for you! Put all your *.ipk files in a folder on Windows, then use Command Prompt/PowerShell to cd into that folder and call:
      "C:\Program Files\National Instruments\NI Package Manager\nipkg.exe" feed-create .

     

    I don't think you can just use a local folder as a feed -- AFAIK, opkg can only retrieve feeds from a web server: https://readthedocs.web.cern.ch/display/MTA/[NILRT]+How+to+create+a+local+feed+for+Linux+RT

     

    Here are my brief notes on how to install an *.ipk on a Linux RT system: https://jksh.github.io/LQ-Bindings/setup-nilrt.html (this page shows 3 ways: Adding a feed using NI MAX, adding a feed via an SSH console, or installing the *.ipk directly without a feed)

     

    3 hours ago, Mads said:

    is there a way to make one package with support for both arm and x64 e.g., or would you always need separate ipk files?

    Not if your package contains compiled code. Each package's control file (and their corresponding entry in the Packages file) must specify the supported Architecture (e.g. "x64"). opkg/NI MAX/SystemLink will only show the packages that are compatible with your device architecture.

    If the package is architecture-independent (e.g. if it installs TLS certificates or documentation), then you can specify "any" as the Architecture.

     

    • Like 1
  5. This looks kind of similar to the bug that @Darren talks about in the video below (at 30:44). Try this: Disconnect your "CONSIGNES" terminal from the type def, delete the property node, re-connect the terminal to the type def, and then re-create the property node... does that help?

     

    • Thanks 1
  6. 4 hours ago, Dan Bookwalter N8DCJ said:

    we bought a perpetual FPGA license , my assumtion , is that means the license will work on all future versions of FPGA

    No, each license is for a particular version of the LabVIEW FPGA module. So if you bought LabVIEW FPGA Module 2015, then you can't use it with LabVIEW 2016 or newer. "Perpetual" just means you can keep using that version forever.

     

    4 hours ago, Dan Bookwalter N8DCJ said:

    we need (or highly advised) to get an RT perpetual license if such a thing exists.

    NI no longer officially sells perpetual licenses. They are now using the subscription model from this year onward:

     

    See also https://forums.ni.com/t5/LabVIEW/LabVIEW-subscription-model-for-2022/td-p/4204448 (some people said how they still managed to get a copy of a perpetual license, but it took some arm-twisting)

  7. 4 hours ago, Dan Bookwalter N8DCJ said:

    I only have the FPGA Module license , they didnt buy a RT Module.

    ...then you won't be able to develop software for the cRIO 9035 😞

     

    4 hours ago, Dan Bookwalter N8DCJ said:

    I need to start hitting this hard so , any advise is appreciated.

    Start talking to your supervisor and checking your LabVIEW modules. You can't do your project without the Real-Time Module.

    You did say before they had "an NI Developer suite license"? The Real-Time module should be part of the Developer Suite.

     

    4 hours ago, Dan Bookwalter N8DCJ said:

    the Current Value Table looked like it might be somethign I could use , i downloaded everything vi JKI PM , everythign installed fine. But it doesnt show up anywhere. is this a RT only componenet ?

    No, it's not RT-only. In your Block Diagram pallette, look for Data Communication > Current Value Table.

    You should also find the files in C:\Program Files (x86)\National Instruments\LabVIEW 20xx\vi.lib\NI\Current Value Table<vi.lib\NI\Current Value Table

  8. 3 hours ago, Dan Bookwalter N8DCJ said:

    my guess (and is purely a guess) anything under the FPGA/RT sections of the LabVIEW project get compiled and loaded on the cRIO ? 

    Yes. The RT code gets compiled into an .rtexe file which is loaded by the LabVIEW runtime engine, while the FPGA code gets compiled into a bitfile which is loaded into the FPGA.
     

    3 hours ago, Dan Bookwalter N8DCJ said:

    Most of what I have seen is using User-Defined Variables , is that the standard/accepted approach ? 

    You can use User-Defined Variables, or you can use Controls/Indicators on your top-level FPGA VI: https://www.ni.com/docs/en-US/bundle/labview-fpga-module/page/lvfpgaconcepts/pfi_data_transfer.html

    For your slow use-case, it probably doesn't matter which one you pick.

     

    3 hours ago, Dan Bookwalter N8DCJ said:

    In the long run , I will be dealing with 7 modules in the chassis , 5 various AI modules (Voltage , mA, TC) and two output modules (SSR and AO). Nothing is highspeed , I just need to start working on this more than I have been able to , and to try and get up to speed a little ...

    I suggest you get something going for the Scan Engine first. Add your FPGA after.

     

    3 hours ago, Dan Bookwalter N8DCJ said:

    And , when I see examples , mainly just images on the internet for now , I see an Open FPGA VI Reference , once again my assumption is that is a reference to the VI that is on the cRIO , I also assume , since I can rationalize both scenarios , that the vi's referred o as "Main" are loaded to the cRIO , and the "Host" ones run on the PC , I am going from memory so , that will be a bit fuzzy...

    Not sure what your question is here, sorry. Just search for "9202" in the NI Example Finder and run an example on your cRIO.

  9. 3 hours ago, Dan Bookwalter N8DCJ said:

    can a chassis mix RT and FPGA ?

    Yes, it's called Hybrid Mode: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YIDfCAO&l=en-US

     

    3 hours ago, Dan Bookwalter N8DCJ said:

    I was told the plan was to run this in scan mode , but , the one module is an NI 9202 filtered AI module , LV says it is FPGA only ...

    That's a shame. 100Hz is definitely possible with the Scan Engine (on supported hardware).

  10. 3 hours ago, Dan Bookwalter N8DCJ said:

    does bitness between LV and the cRIO have to match

    No, it doesn't. You can use 32-bit LabVIEW to develop software for your 64-bit cRIO.

    In fact, 32-bit LabVIEW supports more drivers/toolkits for cRIO than 64-bit LabVIEW.

     

    3 hours ago, Dan Bookwalter N8DCJ said:

    I also see i need to download the XiLinx drivers

    Only if you want to write FPGA code.

    Do you strictly need to write custom code for the FPGA? If not, then I suggest you skip this. FPGA programming is subtly different and more complex than regular RT programming. If you're new to cRIOs and you only have 1.5 months, then you could end up taking a huge percentage of that time trying to figure out how to use the FPGA.

    So my question is: What is the maximum sample rate that your AI, AO, and DO need?

  11. 2 hours ago, Dan Bookwalter N8DCJ said:

    I cant find how to do a test in Ni-Max like the examples I see on NI.com

    NI MAX is for testing DAQmx hardware (like CompactDAQ, for example). DAQmx support was added to CompactRIO-904x and 905x, but cRIO-903x is not supported.

    You only have Scan Engine and FPGA, so you cannot test your hardware with NI MAX.

     

    2 hours ago, Dan Bookwalter N8DCJ said:

    any examples would be greatly appreciated

    Use the NI Example Finder: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YIKbCAO&l=en-US

    Good luck!

  12. On 8/19/2022 at 6:22 PM, Łukasz said:
    zmq_labview.c:868:8: warning: implicit declaration of function ‘zmq_leave’; did you mean ‘lvzmq_leave’? [-Wimplicit-function-declaration]
      868 |  ret = zmq_leave( s->sock, group );

    These warnings look weird to me. The problematic functions are all declared in zmq.h which is included by zmq_labview.c, so you should have no "implicit declarations". I haven't used this library before, but I suspect something went wrong during compilation of lvzmq64.so.

     

    3 hours ago, Łukasz said:

    RPATH and RUNPATH are set on compilation porcess, so I cannot change them easly. 

    You can check it with chrpath --list. If it exists, you can change it with chrpath --replace.

    • Thanks 1
  13. 18 hours ago, X___ said:

    I am feeling owned for not being able to open LabVIEW 2021 SP1 after having installed it in December 2021 under a "permanent" Academic License (idem for the Vision Development Module).

    In the beginning, "permanent"/"perpetual" activations were exactly that: You activate it once, and then it would stay activated forever (unless you deliberately deactivate/uninstall it, or your machine dies).

    A few years ago, NI's activation server changed its behaviour: After you activate something, it would stay activated until early August. Even if you have a perpetual commercial (non-subscription, non-academic) license, you have to re-activate every August. It's a weird system: If I activated at the end of July, I would need to re-activate again within 2 weeks.

    I don't know if Academic licenses were treated any differently or not (my company had a Developer Suite), but your descriptions sounded like what we had to go through.

  14. 1 minute ago, martin_g said:

    I meant the WebVI's bit that has survived.

    As someone who used this for a large-ish project -- after 9 years as a full-time LabVIEW programmer at a Silver Alliance Partner -- I cannot recommend this route. Neither can others who replied to my post.

     

    7 minutes ago, martin_g said:

    But tbh will probably skip that and just do the html/js.

    Your future self will thank you.

  15. 14 hours ago, martin_g said:

    we're still getting requests for a decent image editor within the app.

    What is the value of these requests? (are they from major customers?)

    What would happen if you removed the feature completely?

     

    14 hours ago, martin_g said:

    has anyone any recommendations of a paid for image editing toolkit within their LV project?

    I have no experience with something like this, but @Neil Pate's JS suggestion sounds workable.

×
×
  • Create New...

Important Information

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