National Instruments DAQmx Generic: Difference between revisions

From RadiWiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{DeviceDriverInfo
|DLLFile=RADNIDAQ.DLL
|DeviceBrand=National Instruments
|DeviceDriverName=NIDAQmxGenericAD
|DeviceType=DAQmx Generic
|SupportedDeviceTypes=64
|HideAutoData=1
}}
== Configuring the device ==
== Configuring the device ==
The values configured in the advanced settings for the National Instruments cDAQ driver, as seen below, stand for an estimate of the expected measurement values on each channel.
The controlled device uses these values to determine the best internal scaling and gain configurations in the hardware for the selected input channels.


The values configured in the advanced settings for the Ni cDAQ driver, seen below, stand for an estimate of the expected measurement values on each channel.<br/>
{{Note|This means that the actual measured values returned from the device do not necessarily have to be within this specified range. The actual measured values will eventually be determined by the internal hardware of the controlled device. This can be different for each device depending on the installed module.}}
The controlled device uses these values to determine the best scaling and gain configurations internally in the hardware for the selected input channels.<br/>
 
'''Note.''' This means that the actual measured values returned from the device do not necessarily have to be within this specified range.<br/>
The actual measured values will eventually be determined by the internal hardware of the controlled device. <br/>
This can be different for each device depending on the installed module.<br/>


[[File:Daqmx_advanced.png]]
[[File:Daqmx_advanced.png]]
Line 13: Line 19:
It is possible to test the NI-DAQmx software in simulated mode
It is possible to test the NI-DAQmx software in simulated mode


NI has documentation on how to install and configure a simulated device.<br />
NI has documentation on how to install and configure a simulated device: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0PxCAI&l=nl-NL
- https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0PxCAI&l=nl-NL


First download and install the NI-DAQmx setup which can be found here.<br />
First download and install the NI-DAQmx setup which can be found here: https://www.ni.com/nl-nl/support/downloads/drivers/download.ni-daqmx.html#348669
- https://www.ni.com/nl-nl/support/downloads/drivers/download.ni-daqmx.html#348669


# Start NI MAX
# Start NI MAX
Line 25: Line 29:
# Choose "Simulated NI-DAQmx Device or Modular Instrument".
# Choose "Simulated NI-DAQmx Device or Modular Instrument".
# Click "Finish"
# Click "Finish"
# Now search for the device to test, in this case "USB-6212"
# Now search for the device to test, for example the "USB-6212"
# And click "Ok"
# And click "Ok"


Line 40: Line 44:
# Make sure that under "Communication" the "Device Name" matches with the name created in NI-MAX.
# Make sure that under "Communication" the "Device Name" matches with the name created in NI-MAX.
# Open the tab "Settings" make sure that the "Signal Input Min" and "Signal Input Max" are -10 and 10. for all channels (both tabs).
# Open the tab "Settings" make sure that the "Signal Input Min" and "Signal Input Max" are -10 and 10. for all channels (both tabs).
# Now it should be possible to use the AD converter in a test-site and get simulated values in a test.


{{DeviceDriverInfo
Now it should be possible to use the AD converter in a test-site in a {{RadiMation}} test, and measurement values that are shown in the test are generated by the simulated device from the NI-DAQmx software.
|DLLFile=RADNIDAQ.DLL
|DeviceBrand=National Instruments
|DeviceDriverName=NIDAQmxGenericAD
|DeviceType=DAQmx Generic
|SupportedDeviceTypes=64
}}

Revision as of 21:06, 1 December 2020

The National Instruments DAQmx Generic device driver is a AD Converter which is supported by RadiMation®.  

Configuring the device[edit]

The values configured in the advanced settings for the National Instruments cDAQ driver, as seen below, stand for an estimate of the expected measurement values on each channel. The controlled device uses these values to determine the best internal scaling and gain configurations in the hardware for the selected input channels.

Information.png
Note: This means that the actual measured values returned from the device do not necessarily have to be within this specified range. The actual measured values will eventually be determined by the internal hardware of the controlled device. This can be different for each device depending on the installed module.

Daqmx advanced.png

Setting up DAQmx simulator[edit]

It is possible to test the NI-DAQmx software in simulated mode

NI has documentation on how to install and configure a simulated device: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0PxCAI&l=nl-NL

First download and install the NI-DAQmx setup which can be found here: https://www.ni.com/nl-nl/support/downloads/drivers/download.ni-daqmx.html#348669

  1. Start NI MAX
  2. Locate "My System" > "Devices and interfaces".
  3. Right click on "Devices and Interfaces"
  4. Choose "Create new..."
  5. Choose "Simulated NI-DAQmx Device or Modular Instrument".
  6. Click "Finish"
  7. Now search for the device to test, for example the "USB-6212"
  8. And click "Ok"

Now the simulated device is added, if it's the first device, it most probably is called: USB NI-6212 "Dev1".

The next steps are done within RadiMation:

  1. Open RadiMation
  2. Open the menu "Devices" > "Configure".
  3. At "Device Driver Type" choose "AD Converters"
  4. Click "Add"
  5. Search for: National Instruments DAQmx Generic
  6. Select the type from the list and click "New"
  7. In the "Device Driver Settings" screen click "Advanced"
  8. Make sure that under "Communication" the "Device Name" matches with the name created in NI-MAX.
  9. Open the tab "Settings" make sure that the "Signal Input Min" and "Signal Input Max" are -10 and 10. for all channels (both tabs).

Now it should be possible to use the AD converter in a test-site in a RadiMation® test, and measurement values that are shown in the test are generated by the simulated device from the NI-DAQmx software.