06-10-2016 05:02 PM
Hi all,
Is it possible to change pragmatically the DAQ device name?
I would like having at the beginning when I start the DAQ control a name that my .net program assigns it to the DAQ board. Is this possible?
Thank you,
Virginia
Solved! Go to Solution.
06-13-2016 07:08 PM
Hi Virginia_Solomon
Here is an example program that allows you to change the alias of DAQ devices programmatically. It uses the System Configuration API in LabVIEW. https://decibel.ni.com/content/docs/DOC-15998. This API exists in .net as well, so long as your version of NI System Configuration supports the .NET framework version you are using. You can check NI MAX for the version of NI System Configuration you have, and then check the readme for that version for supported .NET versions.
06-14-2016 10:31 AM
Hi Ashly,
Thank you for the Labview example but as I mentioned I am interested in .net example. You said something about Readme file. Can you be more specific where this file exists? Is this the MAX readme or is NI System Configuration readme file. actually I opened the MAX, I marked NI System Configuration and I noticed the nisyscfg.dll but it I was not able to reference these dll in my Visual Studio project maybe because is not .net. Are there other dlls?
Thank you,
Virginia
06-15-2016 04:50 PM
Hi Virginia,
You will need to check the NI System Configuration readme file for the version that you have. You can just google "NI System Configuration XX.X" where the X's are your version number. Here is the link to the version 15.0 readme: http://download.ni.com/support/softlib//system_configuration/15.0/readme.html
In the file you will see a chart that lists versions of Visual Studio that are supported. For each, it also lists the file path the examples are located at. Follow this path on your system, navigating to SystemConfiguration > RenameAliases, which holds the example files in visual studio that do exactly what the LabVIEW code I posted before does.
If you do not see a SystemConfiguration folder at the file path that the readme gives, you may not have selected to install .NET support. To fix this, modify your installation of NI System Configuration and make sure to choose to install .NET (4.0, 4.5, or whatever version you are using) support.
06-20-2016 09:45 AM
Thank you Ashly!
Virginia
07-29-2016 10:42 AM
Hi Ashly !!
It seems like the following are the only examples available in the folder:
1. Synchronization
2. Digital
3. Counter
4. Control
5. Analog Out
6. Analog In
None of these examples point me to change the configuration at the higher level.
Also, the manual you provided asks us to see in the location of the above examples but is not helping at all with respect to the original question. As I said before, we really need a way to change the configuration settings using .Net (C# to be precise) like Name of the DAQ, etc. eg. "Dev1" to something else.
Again, if you can point me to a specific examples, it would be awesome.
Regards,
Virginia