From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-29-2024 11:29 PM
Hey, I need suggestions on how to automate the download and install of NI-DAQmx 2024 Q2 package manager. The url I got is "
Solved! Go to Solution.
05-30-2024 09:56 AM
Try the offline version,
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGjPCAW&l=en-US
05-31-2024 01:34 AM
I meant how to get the nipkg.exe in the first place via batch scripts?
for this command to work, nipkg.exe needs to be present there. Even that guide says to install the package manager in an online machine via web
how to automate the whole process so user only clicks the batch file and it installs the ni-daqmx software.
nipkg.exe install ni-daqmx
05-31-2024 12:35 PM
Try something like (I believe I got the link from the offline installer already mentioned, but it's maybe fiddly, I don't completely recall)
ARG NIPM_Url="https://download.ni.com/support/nipkg/products/ni-package-manager/installers/NIPackageManager21.0.0...."
RUN powershell.exe -Command `
$ErrorActionPreference = 'Stop'; `
Invoke-WebRequest -Uri $env:NIPM_Url -OutFile nipm_installer.exe ; `
# Install NIPM
Start-Process -wait .\nipm_installer.exe `
-ArgumentList '--passive','--accept-eulas','--prevent-reboot' ; `
# Remove the installer
Remove-Item nipm_installer.exe;
These are taken from a Dockerfile, but should give clues for normal command line usage.
For context, see https://github.com/oist/LabVIEW_Dockerfiles/blob/main/Dockerfile.BaseNIPM#L7-L14
06-02-2024 11:47 PM
Hey,
Thanks for the reply. That link works and it installs the ni package manager.
Now I am encountering issue while installing ni-daqmx saying
Unable to locate package with a compatible version and architecture.
Do you know any work around this problem?
06-03-2024 12:20 AM
Glad it helped.
For DAQmx, sure - basically the problem (I'm guessing, since I haven't seen what you've done exactly) is that there are no appropriate feeds registered containing the package you need.
This will be true for quite a lot of packages - and the solution is to add them using the feed-add command for nipkg.exe.
I'm not sure which (if any) feeds are automatically included with NIPM, but since you're asking about DAQmx (and not immediately LabVIEW) I guess LabVIEW's source feed is included.
To find the arguments needed for the nipkg feed-add commands, the most common approach (that I know of) is to install the thing you want manually on another PC (or if you already have it installed, great), and then run a (set of, if required) command(s) like
nipkg list-installed ni*daqmx* // This command accepts glob patterns (*)
nipkg list-source-feeds ni-daqmx // This command requires exact names, taken from the previous results
returning results like (depending on your registered feeds, i.e. whatever you manually installed):
nipkg list-source-feeds ni-daqmx
ni-daqmx-20-0-released https://download.ni.com/support/nipkg/products/ni-d/ni-daqmx/20.0/released
ni-daqmx-17-5-0-beta2-released http://download.ni.com/support/nipkg/products/may2017beta2/ni-daqmx/17.5.0/released/
You can then run something like
nipkg feed-add --name="ni-daqmx-20-0-released" --system https://download.ni.com/support/nipkg/products/ni-d/ni-daqmx/20.0/released
using the two values provided by the list-source-feeds command (--system adds it as a system-wide feed).
If you'd like a list of potential feeds, or a script that adds them, you can also look at the AddFeeds.ps1 script in the repository I linked before.
06-03-2024 01:21 AM
Hey,
Thanks for the reply again.
I tried to run the command in cmd before automating it. It gives the following errors:
Error -125104: Unable to locate one or more packages with a compatible version and architecture in the registered feeds.
Additional error information:
Error -125103: Unable to locate package 'ni-daqmx' with a compatible version and architecture in the registered feeds.
06-03-2024 11:53 AM
After you do the nipkg.exe feed-add, you then need to call nipkg.exe update so-as to update the local cache. These options are separate commands as you might want to add a number of feeds, then do the more expensive update operation only once.
06-03-2024 09:48 PM
Brother,
when I run
nipkg list-source-feeds ni-daqmx
it is giving error as follows:
Error -125104: Unable to locate one or more packages with a compatible version and architecture in the registered feeds.
Additional error information:
Error -125103: Unable to locate package 'ni-daqmx' with a compatible version and architecture in the registered feeds.
So, it seems there are no feeds to add or update.
06-03-2024 10:37 PM
Hey,
Thank you for the all the help provided to me.
I have managed to figure it out and created a gist to help others as well. Below is the link for the gist.
It also has instructions to figure out feed url for any product of ni.
https://gist.github.com/Sbasu2512/3e81c271573567fd3ecd46838d79664c
Thanks and regards to this awesome community.