12-14-2021 08:38 AM
Hi guys,
Please provide the best solution making the task with IEPE enabling for acceleration sensor, now I am using below code and it doesn't enabling the power.
add_ai_accel_chan
(accel, terminal_config=<TerminalConfiguration.DEFAULT: -1>, min_val=-5.0, max_val=5.0, units=<AccelUnits.G: 10186>, sensitivity=100.0, sensitivity_units=<AccelSensitivityUnits.M_VOLTS_PER_G: 12509>, current_excit_source=<ExcitationSource.INTERNAL: 10200>, current_excit_val=0.002)
Do you have idea why the ICP or IEPE is not enabling?
Thank you so much.
Solved! Go to Solution.
12-14-2021 09:25 AM
Please share the entire code. you're creating the channel correctly.
Is the sensor TEDS compatible? if so it makes your life easier in terms of configuring the sensitivity.
12-14-2021 11:15 AM
Sensor manual itself is TEDS capable, but I tried to register this sensor to DAQ, it doesn't recognized. Please kindly see the task program to read accel as below.
task1 = nidaqmx.Task("VIB")
task1.ai_channels.add_ai_accel_chan(
accel,
sensitivity=100,
current_excit_source=ExcitationSource.INTERNAL,
current_excit_val=0.002,
units=units_g)
task1.timing.cfg_samp_clk_timing(pm.vib_Srate,
samps_per_chan=pm.vib_spc)
vib_arr = np.ndarray((pm.vib_num_ch, pm.vib_spc))
vib_arr.fill(0)
reader1 = AnalogMultiChannelReader(task1.in_stream)
reader1.read_many_sample(vib_arr)
Please let me know is there any attaching helps to enable the IEPE.
Thank you so much.
12-15-2021 05:54 PM
I am not familiar with Python code but trying to relate it with LabVIEW to understand it.
As a quick check to see if the problem is in your code, please try using the DSA soft front panel to quickly start capturing the signal.
https://www.ni.com/en-us/support/downloads/drivers/download.dsa-soft-front-panels.html#376770
You can use the help button in the software to learn how to use this soft panel
12-15-2021 06:36 PM
Hi, here is the captured the screens of the option and measuring panel, and please kindly review the recording file attached in this message.
Thank you.
12-15-2021 06:37 PM
Here is the recording file.
Thank you.
12-15-2021 09:16 PM
I could not infer anything from the recording.
Question - since these are acceleration sensors if you pick them up and shake, do you see those variations show up on the DSA soft panel - if yes, then the sensor is working
12-22-2021 11:57 AM
The library doesn't explain the IEPE function enables automatically when you put the internal excitation current with add_accel. I figured out with DSA panel thank you so much. DSA soft panel is really great to trouble shoot for comparing signals with my software, good tip!