01-09-2024 10:42 AM
Hello all,
I am currently developping an application on Labwindows CVI 2019 with NI-DAQmx device driver 19 (I see this version in NI-MAX tree) to control NI-9266 current sourcing modules. I see documentation in the web about Power Supply Fault Detection of this module : Power Supply Fault Detection - NI
A priori, it is possible to have some information by reading PowerSupplyFaultChansExist and PowerSupplyFaultChans. But when I browse DAQmxGetReadAttribute function panel, I don't find those attributes (cf attachement)
Is DAQmxGetReadAttribute function allows to know the Power Supply Fault Detection status? Can anyone knows how to get the status of this bit?
Thank you in advance,
Best regards,
James
Solved! Go to Solution.
01-09-2024 03:33 PM
Despite the fact that the documentation speaks about a Read attribute, by searching in nidaqmx.h for "PowerSupply" I have found those attributes listed in the set of write attributes. In effect, if you display the parameters for DAQmxGetWriteAttribute () command you can find those you are looking for:
Having said this, I never used such a module so it's up to you to check whether they are what you are looking for or not.
01-12-2024 10:09 AM
Thank you Roberto for your response.
As I have not yet my NI-9266 modules and cDAQ-9185 châssis, I define them on NI-MAX in simulation mode (cf file attached). But each time I close my application, I need to re-import the NI-MAX configuration, although I had save it in NI-MAX. Is there any possibility to import the NI-MAX configuration once and for all?
Thank you in advance for your reply,
Best regards,
James
01-15-2024 02:15 AM
Now that's strange: simulated devices are treated the same as real devices in MAX and in application software and should be persisted even after machine reboots. What do you mean when you say that you need to import MAX configuration again when reopening the project?
01-15-2024 03:23 AM
Hello Roberto,
Before launching my Labwindows-CVI application, modules are displayed in NI-MAX tree. But when I quit the application, modules disapear (see pictures attached). The only way to re-display them is to import the NI-MAX configuration .nce file. Do you know what could explain this behaviour?
Thanks in advance for your reply,
James
01-15-2024 05:54 AM
I don't know what may be happening. I can see in my MAX a few virtual devices listed that I created years ago while developing some app of mine, which haven't disappeared during program development.
Since it seems that module are present during program life and disappear when it closes, can you tell us what are you doing on such modules at program end? May there be some instructions in your code that destroy them?
01-15-2024 08:28 AM
I analyze my application souce code and I saw that DAQmxAddNetworkDevice function was in comment, but DAQmxDeleteNetworkDevice was not. By putting in command this last function call, NI-MAX problem does not appear anymore.
Thanks for your support,
James