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

PCI-6025E error Diagnostic Utility hangs.

$
0
0

Hi,

I'm a forum newbie but have been using the 6025e's for nearly 20 years.  

I'm having the same problem as-   https://forums.ni.com/t5/Multifunction-DAQ/PCI-6052E-error-200329-Diagnostic-Utility-hangs/m-p/1608138#M64678    

 -but with the 6025e

Where is the "the clock trace leading to the ADC"?

Is there a version of the diagnostics that allows separate testing of the individual modules on these cards?  (I have 2.1.0)

Any help gratefully received as i have 5 of these that are faulty.  (And about 50 in the field.)  They all read analogue voltages correctly but are not triggering on measured events.

Cheers.


DAQmx - counter input and output at the same time?

$
0
0

Hi! 

 

So I just got my first national instrument - a daq chassis with 2x NI-9401 moduels. 

 

Im using the DAQmx driver with C++ (without measurement studio), and currently trying to setup some counters - 

 

The main goal is to create 1 counter input and 2 counter output on 1 module - But I cant figure out how to configure the channels. 

 

The current relevant code is:

 

		DAQmxErrChk(DAQmxCreateTask("", &CItaskHandle));
		DAQmxErrChk(DAQmxCreateTask("", &COtaskHandle));

	DAQmxErrChk(DAQmxCreateCICountEdgesChan(CItaskHandle, "cDAQ2Mod1/ctr0", "", DAQmx_Val_Rising, 0, DAQmx_Val_CountUp));
	DAQmxErrChk(DAQmxCreateCOPulseChanFreq(COtaskHandle, "cDAQ2Mod1/ctr1", "", DAQmx_Val_Hz, DAQmx_Val_Low, 0.0, 10000.00, 0.50));
	DAQmxErrChk(DAQmxCreateCOPulseChanFreq(COtaskHandle, "cDAQ2Mod1/ctr2", "", DAQmx_Val_Hz, DAQmx_Val_Low, 0.0, 60.00, 0.50));

	
	DAQmxErrChk(DAQmxStartTask(CItaskHandle));
	DAQmxErrChk(DAQmxStartTask(COtaskHandle));

the program only makes it too the line:

DAQmxErrChk(DAQmxCreateCOPulseChanFreq(COtaskHandle, "cDAQ2Mod1/ctr1", "", DAQmx_Val_Hz, DAQmx_Val_Low, 0.0, 10000.00, 0.50));

 

When i try to run the program, I just get:

"DAQmx Error: Lines 0 through 3 of this port are configured for input. Cannot configure these lines for output at this time.
Device: cDAQ2Mod1
Digital Port: 0

Task Name: _unnamedTask<1>

Status Code: -200122
End of program, press Enter key to quit " 

 

So my guess is that the first task/line configures all 4 counters to input - But i only need one counter to be input, and 2 output - how do i configure this?

 

Best regards Martin. - Thanks for reading

Module Model Numbers

$
0
0

Hello Everybody,

I am trying to control and monitor

1. temperature (25C to 1400C),

2. measure vacuum pressure,

3. measure and control DC voltage (300V max),

4. DC current (11 amps max) 

5. thermal and optical camera to capture pictures.

So I need to know the individual models for these modules that will be compatible for these purposes and with the NI 9172 DAQ.

Ni-6221 triggering

$
0
0

Hello,

I'm confused about setting up a trigger on the NI-6221.  I have a very simple application.  I want to capture digital waveforms on the receipt of a trigger.

 

I'm getting an error when trying to configure the trigger...

Specified property is not supported by the device or is not applicable to the task
Property: DAQmx_StartTrig_Type
Status Code: -200452

 

The manual clearly says that I should be able to set up and perform digital acquisition from a digital trigger, so I'm not sure why I'm getting that error.

 

Thanks for the help!

 

C++ Code is below:

if ((status = DAQmxCreateTask("", &rdTaskHandle)) != 0)

{

DAQmxGetExtendedErrorInfo(errBuff, 2048);

MessageBoxA(HVQCK::HVQCK_hDlg, errBuff, "DAQmx Error, Create Task",0);

return status;

}

sprintf_s(lines, "%s/port0/line1", HVQCK_DEV);

if ((status = DAQmxCreateDIChan(rdTaskHandle, lines, "", DAQmx_Val_ChanForAllLines)) != 0)

{

DAQmxGetExtendedErrorInfo(errBuff, 2048);

MessageBoxA(HVQCK::HVQCK_hDlg, errBuff, "DAQmx Error, Create DI Channel",0);

return status;

}

sprintf_s(clkTerminal, "%s/di/SampleClock", HVQCK_DEV);

if ((status = DAQmxCfgSampClkTiming(rdTaskHandle, clkTerminal, sampFreq, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, pts)) != 0)

{

DAQmxGetExtendedErrorInfo(errBuff, 2048);

MessageBoxA(HVQCK::HVQCK_hDlg, errBuff, "DAQmx Error, Burst HandShake", 0);

return status;

}

sprintf_s(trigTerminal, "%s/PFI1", HVQCK_DEV);

if ((status = DAQmxCfgDigEdgeStartTrig(rdTaskHandle, trigTerminal, DAQmx_Val_Falling)) != 0)

{

DAQmxGetExtendedErrorInfo(errBuff, 2048);

MessageBoxA(HVQCK::HVQCK_hDlg, errBuff, "DAQmx Error, Config Trigger", 0);

return status;

}

 

Error -200019 occurred at Voltage_new.vi:Instance:1:490001

$
0
0

While measuring voltage using NI-9219, this error came up and stopped VI.

After that, VI did not run at all with this error showing up.

It was fine with the same setup, so I think it is not the setup problem.

Is it hardware problem?

 

Possible reason(s):

ADC conversion attempted before the prior conversion was complete.

Increase the period between ADC conversions. If you are using an external clock, check your signal for the presence of noise or glitches.

"Error-88708 ocurred at DQX.DRIVER.VI

$
0
0

I am finding this problem since last one day. the software was running fine but suddenly the error came and software stopped."Error-88708 ocurred at DQX.DRIVER.VI

 

can somebody help me out with possible solutions.

Getting Started with cDAQ-9181

$
0
0

I've got my cDAQ9181 plugged in to computer via ethernet.

Also a 9213TC module in the 9181.

MAX/windows is unable to detect either one.

Should I be using MAX or something else?

What drivers do I need?

 

Thanks

Simultaneously Reading and Writing problem NIDAQmx.h

$
0
0
 

 Hello, I am using the NIDAQmx.h library to make measurements of a pressure sensor to determine the level of a tank(with DAQmxReadAnalogF64()) and write to a pump(with DAQmxWriteAnalogF64()), which gives water to this tank. For this, I have two methods called WritteVoltageLevel() and ReadVoltageLevel (), which work well. My problem is that when the WritteVoltageLevel () method writes a value of 0 (pump off) the reading of the pressure sensor is 1V, and when it changes to 5 (pump on) the reading is approximately 0V (even if the valves are closed, therefore it is not due to water). And the pressure sensors are independent of the pumps, therefore I do not know what this change in the readings is due to. Next I present my code:

 

 

 

#include <stdio.h>
#include "NIDAQmx.h"
#include <stdlib.h>
#include <time.h>

void ReadVoltageLevel()
{
TaskHandle taskHandle = 0;
int32 read;
float64 data[100]; 

DAQmxCreateTask("", &taskHandle);
DAQmxCreateAIVoltageChan(taskHandle, "Dev1/ai4", "", DAQmx_Val_NRSE, 0, 5, DAQmx_Val_Volts, NULL);
DAQmxCfgSampClkTiming(taskHandle, "", 1000, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, 25);
DAQmxStartTask(taskHandle);
DAQmxReadAnalogF64(taskHandle, 100, 10.0, DAQmx_Val_GroupByChannel, data, 100, &read, NULL);
DAQmxStopTask(taskHandle);
DAQmxClearTask(taskHandle);
printf("Tank 1 Level is: %f \n ", data[0]);
}

void WritteVoltageLevel()
{
TaskHandle taskHandle = 0;
float64 dataW[1000];
for(int i=0;i<1000;i++)
{
dataW[i]=0; //pump capacity
}

DAQmxCreateTask("", &taskHandle);
DAQmxCreateAOVoltageChan(taskHandle, "Dev1/ao0", "", -10, 10, DAQmx_Val_Volts , NULL);
DAQmxCfgSampClkTiming(taskHandle, "", 1000, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, 250);
DAQmxStartTask(taskHandle);
DAQmxWriteAnalogF64(taskHandle, 1000, 0, 10.0, DAQmx_Val_GroupByChannel, dataW, NULL, NULL);
DAQmxStopTask(taskHandle);
DAQmxClearTask(taskHandle);
}


int main()
{
int i=0;

while(i==0){
ReadVoltageLevel();
WritteVoltageLevel();
}
return 0;
}

 

Thank you very much.


OMRON E5CC,error S.ERR after adjust

$
0
0

Hello everyone,my problem is related to Digital Temperature Control OMRON E5CC,at my workplace I had some problems with one of the furnaces I wanted to fix,I wanted to correct against another device that we check the temperatures and too much zeal in the protected area, but I did not give up, I passed passwords (cmoV with password 1201) I reached adj 30, where I followed the steps and I managed to decalibrate it.Now I'd be glad if I could get to the factory settings.use a temperature sensor type J (-200 to 1300),today I will try with a PT100 sensor.I would like to get some advice or opinion about on how to recover the Omron device. Thank you in advance.

Issue with DAQmx PCIe6363

$
0
0

Hi all, 

I have built a .VI to control the DAQmx PCIe6363. But when I am running it, getting an error with the code "Error- 200077 occurred at property node". The snap shoot of the same is attached files.

Can any one suggest to possible troubleshot to rectify the issue.

Thanks,

modules and chassis

$
0
0

Hello Forum! 

I am just getting into NI equipment and need some advice. I am looking to measure pressure, temp, flow rate and vibration. I need 4-20 ma signals, analog, and C series equipment. I know I will be using the 4 and 8 slot chassis and like the screw terminal modules the best. would also like to go as wireless as possible. I need some expert advice on modules. Any help would be greatly appreciated. thank you ! 

Analog sample collection in Python does not exceed 1000 samples

$
0
0

Hello all,

 

I'm using an NI USB-6210 DAQ to collect analog samples for an FFT and would like to increase the number of samples I can collect per channel so I can increase the speed at which I can update the FFT.  I'm not sure if this is a hardware limitation that I'm misunderstanding, a limitation in the software, or if it is an issue with my code.

 

I cannot get the data collected with the `nidaqmx` module in Python to exceed a read of 1000 samples per channel, however the manual for the USB-6120 states it can handle 4095 samples in the FIFO.  Is this 4095 bytes, so it can only hold ~1000 32-bit floats?

 

Below is my simplified code and it's output.

import numpy as np
import nidaqmx

task = nidaqmx.Task()

task.ai_channels.add_ai_voltage_chan("Dev1/ai0")
task.timing.cfg_samp_clk_timing(10000)

data = task.read(number_of_samples_per_channel=-1)
print("len -1: " + str(len(data)))

data = task.read(number_of_samples_per_channel=4000)
print("len 4000: " + str(len(data)))

data = task.read(number_of_samples_per_channel=250)
print("len 250: " + str(len(data)))

task.close()

Output:

len -1: 1000
len 4000: 1000
len 250: 250

Any assistance or thoughts would be greatly appreciated!

USB X series (6361) won't switch on

$
0
0

My USB X series DAQ won't switch on when plugged into mains power. When I press to power on, the active and ready lights on the front flash blue and then turn off. I have used it in this set-up before so don't know why it won't work.

C series module analogue to digital signal

$
0
0

I am currently sourcing pressure transducers suitable for injection moulding applications and i have an inherited cDAQ-9174 system. I am informed by the pressure transducer supplier that a charge amplifier is not required, therefore the only issue remaining is converting the signal from analogue to digital so it can be processed by labview. Is there a C series module that is suitable for converting from an analogue signal received from the transducers to a digital signal?

cDAQ9181 error code-201388

$
0
0

Where can I find out what these error codes mean?

 

whaterror.PNG


mbar in Volt - Druckmessumformer und NI myDAQ

$
0
0

Guten Abend liebe community,

ich studiere den Boden und möchte dessen Luftleitfähigkeit messen. Um die Methode zu optimieren, möchte ich den Luftdruck, der gerade über eine Wassersäule abgelesen wird, in ein elektrisches Signal umwandeln.

Dazu nutze ich einen Druckmessumformer SL-1 von Wika, der auf niedrige Drücke ausgelgt ist (0 bis 25mbar) und ein NI my DAQ. Die beiden Instrumente habe ich miteinander verbunden und wenn ich mit einem Spannungsmessgerät an den analogen Anschlüssen AGND und AI 0+ die Spannung messe, kommt das auch hin mit dem Druck, den ich zuführe. mbar und volt verhalten sich proportional. 0-25 mbar entsprechen 1-10 Volt. Jetzt habe ich in labview einen DAQ Assistant mit einer Grafikausgabe zusammengesetzt und alles auf Volt "programmiert". Leider unterscheidet sich meine angezeigte Spannung in lab view mit der gemessenen (richtigen) Testspannung an den analogen Anschlüssen.

Meine Frage ist, ob ich noch irgendwas kalibrieren oder skalieren muss, damit die richtige Spannung rauskommt? Ich weiß leider absolut nicht weiter und kenne mich auch nicht so gut aus.

Vielleicht hat jemand eine Idee? Ich beantworte auch gerne noch Faragen dazu!

Herzliche Grüße,

Linuala

DAQmx install fails repeatedly with error code 14098

$
0
0

Hello,

 

I'm trying to install DAQmx 18 on a new Windows 7 64 bit machine. The machine is up to date on all windows updates. Each time the DAQmx installer stops with the message "NI Microsoft Visual Studio C++ Run-Time x86 installation has failed with return code: 14098". I tried installing version 17 and that too fails in the same way. I tried all the obvious things like rebooting. I'm pretty stuck: never had this happen before. 

Recognition problem with NI 9184

$
0
0

Hello,

I am having a recognition problem with my cDAQ directly connected to my PC and my network adapter is set to DHCP. The power led on the cDAQ is green and both leds at the ethernet port being green also. I have my firewall turned off and having just upgraded to NI-DAQx version 18.0. I uses Windows 10 which also updated recently. Below is a screenshot of the NI-Max panel. I tried the reset button on the chassis but it did not help. I am not able to understand the problem. Can someone help me out please ?

Measuring pressure using NI cDaq 9174 and NI 9223 module

$
0
0

 

1. I am using a Kistler make piezoelectric pressure sensor with charged amplifier, using NI module 9223 as the sensor output is in volts. Sensor has three wires  - Output (1 wire) and power (2 wires); and requires 12 volt supply. I do not know how to obtain pressure data from this arrangement.

 

LD Kala

Error 233902 occurred in the self-test with PXI-4072

$
0
0

Greetings ... I commented that a couple of days ago I have the following problem with the PXI-4072 (image attached). Previously this instrument worked very well, but that was almost three months ago. I have mounted the PXI-4072 in the PXI-1042 chassis and I have installed the NI DAQmx 9.2.3 and the NI DMM 3.0.6. Someone who can help me with this problem please. Thanks in advance 

Viewing all 6883 articles
Browse latest View live


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