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

Counter being reset to zero before every read

$
0
0

I am using a USB-6009 multifunction DAQ with Windows 10, nidaqmx-python 0.5.5 and Python 3.6 as a digital counter on the PFI0 port. The counter tests good in NI MAX 17. Also, if I read multiple samples, the counter does increment as expected when presented with a 1 kHz square wave.

 

However, I find that the counter state is reset before every read operation. In other words, if I read 1 sample at a time, I will get the value "0" or "1" as an output. If I read, for example, 1000 samples at once, each sample (more or less, depending on sampling rate) is incrementing as expected.

 

I am using the example code in ci_count_edges.py, which uses i_channels.add_ci_count_edges_chan().

 

The underlying NI DAQ MX function is DAQmxReadCounterU32Ex(), which isn't supposed to do this. Therefore, the cause is a bit of a mystery to me.

 

Any ideas on why the counter is not maintaining state between calls to DAQmxReadCounterU32Ex()?


6 Channel differential input multifunctional USB DAQ

Cannot StartTask, Error -88701 when using DAQmxRegisterEveryNSamplesEvent for NI PXIe-430x in Simulation mode

$
0
0

Error -88701 when using DAQmxRegisterEveryNSamplesEvent for NI PXIe-430x in Simulation mode on StartTask.

      "DAQmx Error: An internal error occurred.
       Status Code: -88701"

 

Works if using DAQmxReadAnalogF64

 

To replicate, add a PXIe-4304 in MAX as a simulated device.

 

Run example program, Acq-IntClk.c works, ContAcq-IntClk.c does not.

 

Using DAQmx 16.0.0.f0

 

Any ideas or is this a bug in simulation?

 

Temperature Measurement with SCXI 1000 Chasis + NI1102 Module

$
0
0

Problem Description: 

 

1. I have successfully acquired temperature data with K-type thermocouples using NI SCXI 1000 Chassis device + NI 1102 Module on LabVIEW. I have no problem with data acquisition system.

 

2. I have to acquire temperature data with a temperature range from -200 degree Celsius to 3000 degree Celsius and I am looking for some temperature sensor that could be used with aforementioned data acquisition system and in which way since labVIEW has builtin functions for only those  sensors which have range from -200 degree Celsius to 2300 degree Celsius approximately.

 

Requirement:

 

1. Could anyone suggest some suitable solution to aforementioned problems?

 

Thanks and Regards.

NI 9244 and NI 227

$
0
0

i am using NI 9244 and NI 9227 for acquiring AC voltages and currents from the power network. they are working great. i want to know whether can i use the same modules for acquiring the dc voltages and currents. when i acquire dc voltages i see that they appear lie ac voltages. Anyone please help me!

DAQ Assistant Issue with NI-DAQmx 17 Driver

$
0
0

I am experiencing an issue with the DAQ Assistant function after installing the NI-DAQmx 17.0.0 driver from NI's website. I also selected "Search for important messages and updates on NI products being installed". There were no notifications that were alerted.

 

I am using LabVIEW 2017 64-bit  (Student and Home edition) on Windows 7.

 

I have restarted the PC after completing the installation. 

 

When selecting the DAQ Assistant function, the DAQ Assistant wizard is initialized, I then proceed to select the measurement type (Analogue In/Analogue Output, for voltage respectively). The NI modules being used are NI-9264 (AO) and NI-9201 (AI).  I proceed through the wizard ensuring that all parameters were selected within the correct range. Upon completion of the DAQ Assistant Wizard there is a long delay (1 minute) and the DAQ Assistant remains un-configurable as shown below.

DAQAssistantProblem.PNG

How can I synchronize analog output and counter output in PCI 6711?

$
0
0

DAQmxCreateTask("", &taskHandleParam.AO_0);
DAQmxCreateTask("", &taskHandleParam.CO_0);

int AOCount = 2763;
double AORate = 2763*2;
double COFrequency = 1, CODutyCycle = 0.5;

DAQmxCfgSampClkTiming(taskHandleParam.AO_0,"", AORate, DAQmx_Val_Rising, DAQmx_Val_ContSamps, AOCount);
DAQmxWriteAnalogF64(taskHandleParam.AO_0, AOCount, 0, 10.0, DAQmx_Val_GroupByChannel, setCamParam.AOBuffer, NULL, NULL);

DAQmxCreateCOPulseChanFreq(taskHandleParam.CO_0, CO0_Ch, "", DAQmx_Val_Hz, DAQmx_Val_Low, 0.0, COFrequency, CODutyCycle);
DAQmxCfgImplicitTiming(taskHandleParam.CO_0, DAQmx_Val_ContSamps, 1);
DAQmxCfgDigEdgeStartTrig(taskHandleParam.CO_0,"ao/StartTrigger", DAQmx_Val_RisingSlope);

DAQmxStartTask(taskHandleParam.CO_0);
DAQmxStartTask(taskHandleParam.AO_0);

DAQmxStopTask(taskHandleParam.AO_0);
DAQmxStopTask(taskHandleParam.CO_0);

DAQmxClearTask(taskHandleParam.AO_0);
DAQmxClearTask(taskHandleParam.CO_0);

----------------------
- NI PCI 6711
- Analog output : 1Hz sawtooth wave
- Counter : 1Hz pulse train
- Analog output and counter start at the same time using "ao/StartTrigger".


Question: Two continuous signals start at the same time. As time goes on, two signals have lag. Analog output goes faster than counter even though two signals have the same frequency of 1Hz. Please let me know how to sync two signals.

Temperature Sensor (PT100 RTD) and NI USB-8451

$
0
0

Hi,

 

Can the NI USB 8451 take in analog data from a temperature sensor (PT100 RTD) ? I was given a NI USB 8451 and unsure on its capabilities. Please can someone advise 


Behaviour of P0 lines on connector0 and connector1 is different

$
0
0

I am trying test my scan chain using PCIE6323. I am able to do that if I use P0<0:7> (P0 lines on connector0) but not if I use P0<8:31> (P0 lines on connector1). The Labview code runs without errors in both the cases, but the output waveform is not observed on the oscilloscope when P0<8:31> are used.

The behaviour of P0 lines on connector0 and connector1 is not identical. I believe the portion of the code that made use of the DAQmx Timing VI did not work for some reason for P0 lines on connector1.

The cable is not faulty as when the same cable is used with connector0 it works well. Rebooting the computer did not make any difference. I don’t think 6323 is faulty, as the same behaviour was observed with another 6323.

I observed the same kind of behaviour when I run the VI for continuous DO generation (largely same as the example VI except for the use of regeneration from on-board memory). The code runs without errors. But waveform is observed is case of P0<0:7> but not in case of P0<8:31>.

I have attached the VIs I have used for the scan chain test and continuous DO generation.

For scan chain test scan_test.vi is the main vi which calls scan_in.vi and scan_out.vi. The portion of the scan_in.vi which makes of synchronous_do.vi seems to be causing the issue. const_do.vi works fine for both the connectors.

For continuous DO generation, I used Digital - Continuous Output.vi

Please tell me why P0 lines on connector0 and connector1 behave differently. I am using LabView professional development System (2012 SP1, 12.0.1, 32bit) on a 64 bit Windows 7 computer.

Is it possible to Meet an Increment Condition and then Decrement within the same While Loop?

$
0
0

Hello,

 

I noticed that the "Equal?" function requires a boolean as an output but say you want to continue by decrementing 10 down to -10 V. 

 

Is there a way to achieve decrementing after incrementing within the same while loop?

 

Decrement after Increment.PNG

 

Many Thanks

Logging Data across sites from NI-PXI 6363 card, in TSM Test sequence

$
0
0

Hello all,

 

Can anyone give me an gist of how to Log data that's been recorded or executed, across sites running in parallel to be logged within same file.

The method that am thinking is to put a file global under, file properties - same global variable for each and every sites and logging my Data inside one global. Is there any other procedure of handling the same.

 

 We can't help everyone, but everyone can help someone.. Smiley Happy

NI 6002 Data Acquisition with two channels at the same time

$
0
0

Hello Everyone,

I have a question is it possible to read analog and counter channel at the same time with two different time loops in NI USB 6002. I am having problem that when analog signal is reading I am not able to read the counter values and when reading of analog channel is finished it starts reading counter values but then i loose some counter values.

Please help me in this

 

Thanks

Simultaneous non-regen analog out + analog in (one loop)

$
0
0

Is it possible to do 2-channel non-regenerative analog output and a 2-channel analog input task in the same while loop?  Also using the same clock.  I have a rather large project and I was hoping to get away with a single Event Handling Loop that handles everything the DAQ is doing (it will also be doing digital output later).

 

Is there no way to avoid separate loops per task?  I keep getting read buffer overflow or write buffer underflow errors, and a few others, depending on how I set it up.  

 

*edit* This is using DAQmx by the way (PXIe-6356).  And I will attach a screenshot of just the "Generate" part that is happening inside the loop.

6008 not recognized by Device Manager, listed as Unknown USB device.

$
0
0

I am left with the Device manager not recognizing my 6008's.  This is all on Runtime.   14.0.1 SP 1F

 

Hoping someone has run across this issue.

 

Using the same installer on multiple computers (20 plus), no problems.

 

Here are some things I have tried.

  1. Uninstalled and re-installed.  Uninstalled and reinstalled from a separate download of the installer.  Reboots all over.
  2. Tried to directly add driver, but target computer doesn't have "C:\Windows\System32\drivers\nixfmrrkw.sys"   Not sure if this would work anyhow.  I'm guessing if this did not install, there must be a larger underlying issue.

 

Verfied the following.

  • No other USB devices
  • Admin log in
  • Application runs, but no DAQ. So Runtime works.

 

Has anyone used the registry to verify a DAQmx Runtime install?

  • My working computer only shows one registry entry for DAQmx, the path.   There doesn't seem to be a DAQmx runtime registry entry on my working PC.

Any hints or experiences welcome.

 

cDAQ-9132 and NI MAX (2)

$
0
0

Hello,
 
My installed version of NI Max is not recognizing my cDAQ-9132 controller. When I connect the cDAQ to my PC via USB, the cDAQ appears as a USB device under "Devices and Interfaces" but it is not recognized as a DAQ. Furthering the mystery, when I connect a cDAQ-9171 via USB, it is immediately recognized and configured. See screenshot below. Is there a special driver fro cDAQ 9132 that I'm missing? Any other explanation for why recognize one but not the other?  

 

Configuration:cDAQ-9132 (4 slots )

Modules: One NI-9234 modules

Computers running windows 10

Labview Version 2014 (Ni MAX 16.0.1)

 

Thanks for your help,

vjc777


 1.jpg


Connecting a 4-20mA loop powered sensor to USB-6255

$
0
0

Hello all,

 

I have a USB-6255 DAQ box.  I also have some sensors that are loop-powered and have a 4-20mA output (and at least one sensor that has an NPN/PNP output).  My question is, how would I wire the sensors so I can read the output?  Some of the sensors run off of 24V (2 wire sensors).

 

Thanks!

Syncing up measurements on a PXI-6071E, keep getting error -200019

$
0
0

I have two signals I need to sync up, measuring with a PXI-6071E (yes, it's old).  One is a motion controller with an irregular movement speed, the other is an optical sensor.  The motion controller has an output that stays at 5V, then drops very quickly (<1 µs) to 0V for 10 µs, then climbs back up to 5V again (much slower, on the order of 100 µs).  It produces this output at around 100Hz for now, though I can change the speed (it's just signalling each time it moves 10 microns).  If you download the "Sample waveforms" VI you can see the output for yourself (I wired it up temporarily to an Analog In input to capture it).

 

 

I need to measure the optical sensor (AI16 in the code) each time the motion controller output drops, starting approximately the first time it happens (it could skip the first few if needed).  I've wired its output signal into PFI3 on the 6071E via a SCB-100 box.  I then attempted to set up measurements as you can see in the "Sample reader" VI.  Each time I run the sample reader VI, I get between 0 and 15 points and then it ends with an error of -200019.  I saved one such final readout as default so you can see it.

 

My best guess is that the clock is too irregular and it gets confused?

 

I do see that PFI0 and PFI1 are labeled as start and reference triggers for AI, but I need to hook up 3 different axes of motion controllers at once and I was under the impression they were interchangeable.

 

This is under LabVIEW 7.1 on Windows XP (for reasons beyond my control, we use 2015 almost everywhere else), but you should still be able to load the VIs to look at them.

Power Supply for USB-6363

$
0
0

Apologies for bringing this up again -- there are multiple posts on this topic already, but all of them seem to be out of date.

 

I need a replacement power supply for a USB-6363 with screw terminals.  The product page no longer specifies the power supply to use with this device, and the product previously linked to in other forum posts, 781513-01, doesn't seem to be available.

 

Does NI have a replacement offering?  The closest I could find is the auxiliary supply linked to here: http://sine.ni.com/nips/cds/view/p/lang/en/nid/202611

 

However, I can't confirm the connector type from the information listed there.  (And who is NI trying to kid with that $224 list price?) Smiley Wink

 

Thanks.

Is a voltage output on SCXI 1531 possible

$
0
0

Hi there. Is it possible to use an accelerometer which needs a 5 V DC input on a SCXI-1531? It´s an ADXL05EM-3 accelerometer from analog devices. In the official manuals there are just outputs mentioned but my tasker said the setup should work somehow. But I´m not convinced.

My other setup is a SCXI-1000, SCXI-1520, SCXI-1540 and a SCXI-1600.

I´m new to all of this and I´m not very into it.

Thanks for your help.

USB-6002 pressure gauge readings give strange step function

$
0
0

Hi all,

 

I have the current set-up below:

- OMEGA pressure gauge connected to signal amp connected to USB-6002, finally connected to laptop (powered by AC adaptor) via USB

- Differential mode

- I am using a MatLab program to capture the data

 

I am seeing this step-wise function in the Volts (V) vs Time plot (s). Any idea why this is happening? The set-up is well grounded. I have attached a sample 10 sec data at 100 Hz.

 

Thank you in advance for your help!

 

Victor

test.JPG

 

 

 

 

Viewing all 6898 articles
Browse latest View live


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