Quantcast
Channel: Multifunction DAQ topics
Viewing all 6883 articles
Browse latest View live

seek clarification on a specification of NI9213 associated to common mode rejection

$
0
0

Hi

I am not sure how to understand the following quoted from the NI9213 specification sheet:

""

Common-mode voltage range
Channel-to-COM.............................±1.2 V min

""

my question is about the min value.

Does that means the voltage difference between any channel and com must be at least 1.2V ??

If yes How does people enforce it?

 

Context:

We have a bunch of thermocouples in an electrical (DC-60Vmax)  furnace where the thermal insulation become slightly electrically conductive with temperature and the common mode of the TC rises accordingly.

our TC are floating ( ungrounded and unshielded). They are all connected to a Ni 9213.

When the com port is left unconnected, we have noise that appears on the measurement at high temperature while we measure an increase of the common mode voltage ( with respect to ground) on the scope .

 

we tried One fix that work APPARENTLY ( caps intended):

connects all Tc+ wire together and then to the com port and then connect the com port to ground through a resistor to maintain leakage current to an acceptable level while keeping absolute potential low enough compared to ground.

It seems it works.. BUT:

To the best of our knowledge it is non standard and possibly bad practice.

While reviewing this fix to understand all that, we stumbled on our difficulty to understand the specification above. 

 

Any comment will be welcome

Thanks 

JF


Error -223788 in MIO Software

$
0
0

Using a simulated version of the PCIe-6346 device, trying to acquire a > 100.000.000 samples generates error -223788.

What does that mean ?

 

What is the largest number of finite samples to set in the DAQmxCfgSampClkTiming method ?

 

Does the /LARGEADDRESSAWARE flag for 32-bit applications on Windows 10 x64 conflict with DAQmx ?

 

-cpede

Help with signal of RTD

$
0
0

Hi everyone

 

I am new to this community and I would like to ask for help. 

 

I have a RTD Type Ptk. 3750 (PT 1000) which I have connected to the modul NI-9226.

The RTD has originally a two wire configuration which I tailored to a four wire configuration for the NI-9226 modul. The four wires are connected to the modul. Nevertheless I do only capture the signal of two wires.

 

The connection plan is sketched in the attached image. I capture a signal of EX0+ and RTD0+. 

The signals of RTD0- and COM appear as N.A..

 

Is there a mistake at the connection to the NI-9226 or what could be the reason for not detecting all signals?

 

I thank you for your help.

 

 

Poweron state of USB-6341 analog outputs

$
0
0

How to interpret the datasheets information about poweron state ( +/- 20 mV) and poweron/off glitch ( 1.5 V 

for 1.2 s) ?

Does that mean  the state is undefined ( up to 1.5 V) up to 1.2 seconds after the USB powersupply from PC has stabilized to 5 V ? And after that  it is zero ( +/- 20 mV). 

 

WriteSingleSampleSingleLine respond time

$
0
0

Hello,

 

I have a question.

I have a NI DAQ USB X 6343.

In Visual Studio (C#) I create a Digital outputchannel on 1 line (PO.28).

This line is used as a trigger, I send a 0 or a 1 to it.

Works all fine.

But....

The software call "WriteSingleSampleSingleLine(true,0/1)" in C# takes about 7 mSec. So the call returns after 7 mSec.

My question is: how quick responds the physical output (P0.28).

Is it immediately after calling "WriteSingleSampleSingleLine" or at the end when the call returns so after 7 mSec.

On a scope i can see that it works fine but not how quick the output responds.

 

Thanks

 

 

acquired temperatures with the 9219

$
0
0

Hi,

I use a 9219 to read 4(one per channel) PT100 4 wire.

 

During acquisition, with labview 2019, suddenly all the temperatures goes down to 0, in less than 1 sec and immediately come back to the rigth temperature.

The generation of these "Spike" seem to be random.

 

Someone have an idea ?

 

regards

David

 

 

 

Acquire data using usb6008 in matlab simulink

$
0
0

How to acquire continuous signal in matlab using ni daq usb 6008? Is that aqcuired data from analog input block digital or analog?

I mean the output from analog input block  looks like staircase. Up down up down I want it smooth, what should I do?

Calibrating K-type thermocouples

$
0
0

Hello, 

 

I've been trying to use k-type thermocouples to measure thermal cycles in welds, but it seems that the temperature readings are significantly lower than the actual temperature (30-50 degrees C). I'm using an NI 9213 module with the DAQmx block. Is there a way to calibrate the thermocouples, and if so, how? I've attached screen shots of the block diagram. 


USB-6001 Analog Input Differential or RSE on Laptop

$
0
0

Hello,

 

I have a USB-6001 DAQ connected to a laptop which I'm using for analog input voltage reading. The source of the signal is grounded, so following the manual I've been configuring the DAQ to measure in differential mode. However, is the fact that the DAQ is grounding to a floating laptop going to cause issues? I've seen some degree of noise in my readings which I'm hoping to minimize.

 

Thank you.

Interference with K-type thermocouples and NI-9214 Sensitivity

$
0
0

We’re working on calibrations for a couple of your NI-9214 modules, running through a cDAQ-9185 chassis , and I have a few technical questions. We have everything wired to the unit, using:

 

Omega Type PLTC TCHCPL 20AWG wire

Omega K Type Thermocouples (similar gage)

 

I have tried various thermocouples (still k type, but different sizes) on the same line, and are seeing similar results across the board. The issue that we’re running into is that we’re seeing fantastic response at temperatures near 100°C, but extreme deviations increasing as we approach 0°C.

 

At 105° the reference probe is 104.98°C, and the thermocouple is reading 103.13°C.

At 0°C, the reference probe is -0.16°C, and the thermocouple is reading 31.13°C.

 

So my questions are:

 

  1. As the temperature decreases, the mV charge from the K type thermocouple also approaches 0, is this module sensitive enough to make sense of that voltage and provide  accurate (±0.1 - 0.5°C) temperature readings near or below 0°C?

 

  1. The voltage/temperature reading from the probe seems to take an ridiculously long time to stabilize at lower temperatures, ~30min, is this possible interference at these temperatures? Given the simplicity of the K-type, the reading should be almost instant, just long enough for the temperature of the wire to reach equilibrium with the surrounding environment.

 

  1. When the thermocouple is placed into the ice bath the readings usually jump down/up and then slowly but steadily rise until they settle out after a while. Is this an expected behavior? (maybe related to the above question).

 

  1. Is there a maximum wire run length for the configuration we’re using?

 

Thank you for your time and assistance in this matter.

How to measure analog input in an array at regular intervals in DAQExpress or Labview

$
0
0

Hello everyone,

 

I wish to take an analog input and turn it into an array, however I wish to take these measurements in a regular interval and not continuous. Currently I am taking thermocouple temperature input in DAQExpress using the temperature modules and I am using Floating Point Data format instead of Waveform to create an array of my measurements. An example picture of my setup is shown below.

 

These measurements are in a while loop and when I attach a Wait function to this while loop as seen in the image, the output stops giving me current values. For example if I have a 1 second Wait, then if starting temp is 24 and it increases to 34, it will still give 24 which very slowly increases to 34 after 100s of readings, while if there is no Wait time, then the output is accurate and reflects current temperature. 

 

Can anyone help on how I can measure temperatures at regular intervals instead of continuous in DAQExpress and still get them in an array. Any help would be appreciated, thank you! 

 

Linux driver for USB-6356 and NI-DAQmx C

cDAQ-9189 with NI 9411 counter throws internal error while registering DAQmxRegisterEveryNSamplesEvent

$
0
0

Steps to Reproduce:

1. Connect NI 9411 to cDAQ-9189.

2. Create counter channel with DAQmxCreateCILinEncoderChan

3. Configure sample clock

4. Register N Sample callback with DAQmxRegisterEveryNSamplesEvent

5. Start Task

The following error is observed.

Error: -88701: An internal error occurred.

Attached code and traces in repo.zip

 

NOTE:

On performing the same steps with NI 9411 connected to cDAQ-9178, no issue is observed.

NI cDAQ-9133 to cloud computing

$
0
0

Hi,

 

I am using NI cDAQ-9133 to gather acceleration data.

 

We would like to process this using AWS and access the data via a network connected to the DAQ (without having to connect it to a computer running LabView and send that way).

 

Is this possible? Is it possible with TCPIP or similar? Can the data be sent to cloud computing with this method?

 

Thanks

cDAQ-9171 power supply

$
0
0

Hi all,

 

I have recently ordered the cDAQ-9171 and NI 9232 BNC. I was wondering whether the cDAQ-9171 needs an external power source. As I understand it, the cDAQ-9171 is powered by the USB connection. Is this so?
If I indeed do not need an external power source, could you explain to me how the NI 9232 BNC can detect voltages up to 30V, while the supply voltage of the USB is only 5V.

 

Thank you for your time!

Marc


NI 9219

$
0
0

Greetings

I'm wondering about conaction method of load cell with NI 9219 

Especially this type CAS  LS-30t load cell

ExcitationVoltage

-Minimum 6V

-Recommended 9V

-Maximum 12V

Or if you have another models compatible with load cell

 

PCI 6132 strange buffering behavior ?

$
0
0

Hi,

 

I'm seeing a strange "buffering" behavior from a PCI-6132. It is strange since the 6132 is not pipelined.

 

The scenario is as follows: an TTL signal is used to to trigger an ADC measurement; this signal is used as the sampling clock; the signal is not periodic but random.

 

The strange behavior is the following: when reading the ADC samples, I only get them in multiples of 8 (0,8,16,24, ...). In comparison, if I use a counter on the TTL signal, I get the correct number of edges and not multiples of 8.

 

I include two sets of code below: the first is the one using a counter and the second is using the ADC. In both cases, I am also using an internal hardware timer.

 

Additional info:

I've tried changing the ADC acquisition from continuous to finite but got the same strange behavior. Also, changing the DataXferMech from DMA to interrupt did not make a difference. I also confirmed that the DataXferReqCond is set to transfer whenever there is data on the board.

 

Code: (Counter)

/* CO: set to use 100kHz clock */
DAQmxErrChk(DAQmxCreateTask("Counter timer", &pciDAQ[CO]));
DAQmxErrChk(DAQmxCreateCOPulseChanTime
(pciDAQ[CO], "/Dev1/ctr1", "ctr1", DAQmx_Val_Seconds, DAQmx_Val_Low,
0.0,
COUNTER1_MIN_PULSE_WIDTH /* pulse OFF duration (s) */,
COUNTER1_MIN_PULSE_WIDTH /* pulse ON duration (s) */));
DAQmxErrChk(DAQmxCfgImplicitTiming(pciDAQ[CO], DAQmx_Val_FiniteSamps, 1));
DAQmxErrChk(DAQmxSetCOCtrTimebaseMasterTimebaseDiv
(pciDAQ[CO], "ctr1", COUNTER1_TIME_BASE_DIV));

/* CI */
DAQmxErrChk(DAQmxCreateTask("Counter input", &pciDAQ[CI]));
DAQmxErrChk(DAQmxCreateCICountEdgesChan
(pciDAQ[CI], "/Dev1/ctr0", "ctr0", DAQmx_Val_Rising, 0,
DAQmx_Val_CountUp));
DAQmxErrChk(DAQmxSetCICountEdgesTerm(pciDAQ[CI], "ctr0", "/Dev1/PFI0"));
DAQmxErrChk(DAQmxSetPauseTrigType(pciDAQ[CI], DAQmx_Val_DigLvl));
DAQmxErrChk(DAQmxSetDigLvlPauseTrigSrc(pciDAQ[CI], "/Dev1/Ctr1InternalOutput"));
DAQmxErrChk(DAQmxSetDigLvlPauseTrigWhen(pciDAQ[CI], DAQmx_Val_Low));

/* set time duration */
DAQmxErrChk(DAQmxSetCOPulseHighTime
(pciDAQ[CO], "ctr1", time /* pulse ON duration (s) */));

DAQmxErrChk(DAQmxStartTask(pciDAQ[CI]));

/* acquire count */
DAQmxErrChk(DAQmxStartTask(pciDAQ[CO]));
DAQmxErrChk(DAQmxWaitUntilTaskDone(pciDAQ[CO], DAQmx_Val_WaitInfinitely));
DAQmxErrChk(DAQmxStopTask(pciDAQ[CO]));

DAQmxErrChk(DAQmxReadCounterScalarU32
(pciDAQ[CI], 1.0 /* timeout (s) */, count, NULL));

DAQmxErrChk(DAQmxStopTask(pciDAQ[CI]));

 

Code: (ADC)

/* CO: set to use 100kHz clock */
DAQmxErrChk(DAQmxCreateTask("ADC timer", &pciDAQ[CO]));
DAQmxErrChk(DAQmxCreateCOPulseChanTime
(pciDAQ[CO], "/Dev1/ctr1", "ctr1",
DAQmx_Val_Seconds, DAQmx_Val_Low, 0.0,
COUNTER1_MIN_PULSE_WIDTH /* pulse OFF duration (s) */,
COUNTER1_MIN_PULSE_WIDTH /* pulse ON duration (s) */));
DAQmxErrChk(DAQmxCfgImplicitTiming(pciDAQ[CO], DAQmx_Val_FiniteSamps, 1));
DAQmxErrChk(DAQmxSetCOCtrTimebaseMasterTimebaseDiv
(pciDAQ[CO], "ctr1", COUNTER1_TIME_BASE_DIV));

/* ADC (x and y) */
DAQmxErrChk(DAQmxCreateTask("ADC input", &pciDAQ[ADC]));
DAQmxErrChk(DAQmxCreateAIVoltageChan
(pciDAQ[ADC], "/Dev1/ai1", "adc_x",
DAQmx_Val_Cfg_Default,0.0,5.0,DAQmx_Val_Volts,NULL));
DAQmxErrChk(DAQmxCreateAIVoltageChan
(pciDAQ[ADC], "/Dev1/ai2", "adc_y",
DAQmx_Val_Cfg_Default,0.0,5.0,DAQmx_Val_Volts,NULL));
DAQmxErrChk(DAQmxCfgSampClkTiming
(pciDAQ[ADC],"/Dev1/PFI0",500000.0,
DAQmx_Val_Rising,DAQmx_Val_ContSamps,0));
DAQmxErrChk(DAQmxSetPauseTrigType(pciDAQ[ADC], DAQmx_Val_DigLvl));
DAQmxErrChk(DAQmxSetDigLvlPauseTrigSrc(pciDAQ[ADC],
"/Dev1/Ctr1InternalOutput"));
DAQmxErrChk(DAQmxSetDigLvlPauseTrigWhen(pciDAQ[ADC], DAQmx_Val_Low));

/* set time duration */
DAQmxErrChk(DAQmxSetCOPulseHighTime
(pciDAQ[CO], "ctr1", time /* pulse ON duration (s) */));

/* acquire samples */
DAQmxErrChk(DAQmxStartTask(pciDAQ[ADC]));

DAQmxErrChk(DAQmxStartTask(pciDAQ[CO]));
DAQmxErrChk(DAQmxWaitUntilTaskDone(pciDAQ[CO], DAQmx_Val_WaitInfinitely));
DAQmxErrChk(DAQmxStopTask(pciDAQ[CO]));

DAQmxErrChk(DAQmxReadAnalogF64
(pciDAQ[ADC],-1,0,
DAQmx_Val_GroupByScanNumber,
valueBuffer,numValues*2,numReturned,NULL));

DAQmxErrChk(DAQmxStopTask(pciDAQ[ADC]));

SCB-68A prototyping area & AI SENSE

$
0
0

Hi, 

   I want to use a PXIe-6341 and SCB-68A connector block to take NRSE readings of several analog signals with a shared ground (which I don't want to connect directly to AI GND).  I need to make two connections to AI SENSE: my test item's ground, and a bias resistor to AI GND.  My question is, are there any pads inside the SCB-68A that connect to AI SENSE, or do I have to make both of these connections in the AI SENSE screw terminal?  I feel like combining a solid resistor lead and a stranded wire in the terminal block would be bad practice.  The SCB-68A manual alludes to connecting circuits in the "custom breadboard area" to AI SENSE, but (unlike the well-documented AI n+ and AI n- biasing/conditioning areas) it doesn't give any indication of what pads, if any, you could use to do this.  Thanks.

NI-9862 and CANopen

$
0
0

Hello community,

 

is it basically possible to address CANopen devices with the CAN module (9862) and cDAQ? NI-9862 does not support the NI CANopen library, would it still be possible?
In my concrete case it is about two pressure sensors from the company Wika which have a CANopen configuration, the pressure values are to be read out and graphically displayed via Labview. I am a relative beginner in CAN-Bus, but I am just learning the ropes. Thanks already for all your tips and inputs that could help me further.

 

Fabian

Reading Pressure Transducers and Controlling Solenoid Valves

$
0
0

Hello NI Community,

 

I'm new to the group and fairly novice. I have called the NI support line several times and get different answers every time from sales people who don't give me a high level of confidence in their advice, so I've come here to get confirmation.

 

I am building a test bench that has a pressure transducer and a couple of solenoid valves. Early on, while I was purchasing components, I picked up a NI USB-6000 DAQ thinking it would be a low-cost entry point that would serve my purpose. I have a Omega transducer that outputs 0-5V with loose wire connections. I have an adjustable power supply to provide the excitation voltage. From the research I've done, and according to the NI sales person, I may need a C Series Strain/Bridge Input Module like the NI 9236 to process the signal from the transducer. This module would require a 9162 chassis to output the signal to USB.

 

I believe I could get the excitation from this module so I wouldn't need an external power supply, which would be great.

 

I will also need to be able to control my solenoid valves which require 24V. I bought some relays which require a 5V input signal to power the solenoids. My DAQ should be able to output this signal as well as handle the tranducer measurements. 

 

Is it not possible to do this with the USB-6000 or some other DAQ that is at a lower price point than the 9236? The 9236 and the 9162 together are more than what I was hoping to spend this early on in the project. Could the 9236 read the 0-5V signal from the transducer? The 9236 doesn't have any outputs from what I can tell so I'd be stuck with multiple modules, which doesn't seem efficient. 

 

Fairly lost here, so I'm hoping somebody can lend a hand!

Viewing all 6883 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>