10-29-2024 11:02 AM
I have a PXI-6793 DAC in a PXI chassis with a PXIe-8821 chassis. I'd like to develop a C++ application to set output voltages on the DAC from a remote computer, what are my options? Perfect timing is not important for this application, so I'm looking for the simplest possible option. Is it possible to open the device for VISA communication and send string commands like "A0:VOLTAGE 0.5 V" directly to the DAC to accomplish this? Or does everything needed to be routed through the controller (with real-time PHAR OS)? If it is possible, are there references anywhere that provide a list of these commands? We have LabView installed on the controller and we can currently update voltages by sending serial commands, but we have to have LabView running on the remote machine as well to run the code on the controller. Ideally, we would like this to run for different laptops which may or may not have LabView installed.
10-29-2024 11:07 AM
NI PXI hardware use proprietary dlls and drivers to control the hardware unlike the SCPI like command.
You must use DAQmx driver C-dll to control 6793 in your C++ code.
If you wish to control the hardware over the network, you can leverage gRPC device server
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000oxQGCAY&l=en-US
10-29-2024 11:38 AM
Thanks, this information is helpful. I see that NI Linux RT is supported, but no mention of the older Phar lap OS. Would I need to migrate my machine to the Linux RT before using gRPC?