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

X series routing counter output to PFI8 (ctr0A)

$
0
0

Hi,

I am using x series 6368 board, and would like to use the PFI8/P2.0 pin for counter output. To test this, I output a 500kHz square wave using the counter1. I then connect the counter1 InternalOutput to PFI8. After running the code, the output on PFI8/P2.0 pin is a square wave with levels +/-0.5V. The normal waveform is supposed to be between 0V and 5V. What can I be doing wrong? Here is my code used for this task:

    DAQmxCreateCOPulseChanFreq(taskHandle, "Dev1/ctr1", "", DAQmx_Val_Hz, DAQmx_Val_Low, 0.0, 500000, 0.50)
    DAQmxSetCOPulseTerm( taskHandle, "Dev1/ctr1", "/Dev1/PFI8");
    DAQmxConnectTerms("/Dev1/Ctr1InternalOutput", "/Dev1/PFI8", DAQmx_Val_DoNotInvertPolarity)
    DAQmxCfgImplicitTiming(taskHandle, DAQmx_Val_ContSamps, 100000)

    # DAQmx Start Code
    DAQmxStartTask(taskHandle)

Thanks.


Prototyping Board Power on the NI Elvis II won't turn on only USB active led light is on when i switch on the elvis II

$
0
0

After connecting a different prototyping board to the Elvis, the power for the prototyping board has stopped working on the Elvis. Even when I reconnect the NI Elvis Series Prototyping Board to the Elvis it will not work. The LED in the upper right corner of the board won't even light up indicating that it's sending power to the board. Although the USB Active LED will light up still when the board is turned on.

I have checked and replaced the fuse for the Elvis and it still does not work. I hvae also tried different prototyping boards, but the problem seems to lie within the Elvis itself.

 

Any ideas as to what could be causing this problem and how I might go about fixing it?

Helpp Me PLEASEE!!!!

NI- USB 6351 DAQ Measuring between two single ended channels

$
0
0

Hello i have no differential Analog Inputs left.

 

Is it possible to measure differential between two single ended points?

 

Thank you in advance

 

Br Christian from Austria

image grabbing event is call off while running time ?

$
0
0

i am using basler acA4600-10uc  camera device. when i set camera full resolutions 4608*3288 in my applications camera  image grabbing event are  not work  Fps, but  4304* 3288 resolutions half  of the  fps image are save.  image its mean ongrabbbedimage  event is call off , why to happens like this and how to solve it. Also how to increase the frame grabbing , some times images are not save in my destinations folder.
can anyone help me to solve this problem.
thanks in advance.

Piezoelectric force Sensor DAQ assist setup in Labview

$
0
0

Hello, I am new to LabVIEW and I need help with a design. I have a PCB piezoelectric sensor connected to a PCB 4-channel signal conditioner. This signal conditioner is then connected to the NI USB 6216 DAQ Driver and then connected to the PC. We are going to have surgeons use a hammer with this piezosensor on the end to collect data on the force of the impact during a procedure in orthopedic surgery. We want to do a continuous data collection and when we stop the data we want it to be collected into a text file. If I could get any help to clean this up and figure out what is wrong with it that would be great. Thank you.Labview Setup.PNG

 

NI cDAQ-9189 stops responding to Labview code at random intervals

$
0
0

Hello all,

 

I am currently running into a problem where the digital outputs of my cDAQ-9189 stop changing state. 

 

Purpose of system: A test fixture designed to run pumps for a reliability test. This also controls several heaters, level sensors, and auxilary pumps to control the flow/temperature of water and cleaning solution being used to test the pump's long term reliability. The general state diagram is attached. 

 

System overview: 

cDAQ-9189 with 2x 9214 Tc modules (Only one used for this project), NI 9205 AI module, NI 9203 AI module, and NI 9375 DI/O module used as the output.

LabVIEW version 17.0 (64-bit) with 72640K memory allocated. 

Code: See Attached

Hardware: All outputs to the test fixture are controlled through 12V relays with their coils controlled by the NI 9375 output card. The system is a mix of 24V and 240V power output through those relays to control 12 UUT pumps, two different heaters, and auxiliary pumps to move fluid between three tanks. The inputs to the system are level sensors and K-type TCs. 

 

Problem: 

Once in a while the output from the NI 9375 will stop changing state. This seems to happen when the software changes from one state to another, with the software continuing on to the next state while the hardware never stop executing the previous state. I.E: the hardware continues trying to drain an already empty tank after the software has commanded the tank be re-filled with the next fluid. The software is not frozen, and can continue to be interacted with but the hardware does not respond in any way. No error code occurs. The problem occurs at seemingly random intervals. Sometimes it runs for 2 days without issue, other times only a few hours. 

Note: Resetting the cDAQ-9189 from NI MAX resolves the freeze, but requires the software to be restarted and we would like this test fixture to run continuously without direct monitoring. 

 

I don't think this is a software issue as the code continues to function after the I/O freeze. No LabVIEW error code is recieved. I am currently monitoring the software's memory usage to determine if there is a problem with a memory leak or similar issue. So far no problems. 

 

Any advice on resolving the issue or further troubleshooting steps to take?

 

Thanks,

Dylan

 

Parallel Continuous Acquisition and Generation with NI cDAQ-9174, NI 9239, NI 9263

$
0
0

Hello all,

I would like to know if it is possible to have the NI 9263 module in the cDAQ-9174 continuously generate an analog voltage signal while simultaneously continuously measuring the generated signal with the NI 9239 module in parallel. I have naively attempted it with the DAQ assistant but have been unsuccessful thus far.

PXIe 6363 signals not working in MAX test panel

$
0
0

I am not able to see analog input or digital output signals of my PXIe 6363 in MAX.  The card is recognized by MAX, passes self-test, and is re-settable through MAX and the test panel runs but I get no response from analog inputs or digital outputs.  I get no errors and no broken devices on the Devices tree in MAX. I am using a scb68 terminal block and it shows up in the configuration tab.  I have 7 other PXIE 6363/scb68 combos in the same rack that work perfectly.  This is a system that has been running for a few years although this may be the first time this 6363 has been accessed.

Any ideas?

PXIe 1075 rack

PXIe 8133 controller

PXIe 6363 daq

SCB68 terminal block

Windows7

LV2012

MAX 9.5.5


NI-6351 Synchonize AO and AI with oversampling

$
0
0

Hello

 

I have NI 6351  and trying to make the following application:

 

An AO channel ouputs a ramp, from 2.2V down to 0  with variable rise time and sample rate. For example it can go from max to min voltage value in 10 ms  using 1000 samples, which results a sample rate of 100kS/s.

Simultaniously I want to sample two analog Input channels with a higher sample rate. The sampling must be synchronized with AO, so that for each AO value I can get 2-4 AI values. The timing should be as follows:

 

AO outputs a value=>AIs wait a few µs for the voltage to set and read 2-4 (depending on oversampling settings) samples, AO outputs a new value and so on...

 

The whole process is triggered by an analog trigger Input (APFIO).

So far so good. My design works only if the AI sampling rate and the AO samling rate are equal. If they are different, I get glitches and overall very strange results.

 

My idea was to use one clock source (for example 20MHz Time base)  and derive different sample clocks from it by using a TimebaseDivider property node. But somehow it didnt work. 


Can someone please help me. tahnk you.

Weird cost difference NI 6323 vs NI 6229

$
0
0

Hello,

I am comparing the two boards NI 6323 and NI 6229 and trying to find any reason to justify the difference of price between them: even though NI 6229 is not a PCIe DAQ and has lower performance (PCI instead of PCIe, 92 dB of CMRR instead of 100dB, timing resolution of 50ns instead of 10ns, and more...), it costs more than NI 6323. Am I missing any special feature of the NI 6229 ?

cDAQ-9189 Ethernet to NI-9213

$
0
0

Is there an additional module we need to connect the NI9213 to cDAQ-9189 or does ethernet connect the two directly?

 

Is an additional power source needed for the NI9213's if connect via ethernet?

 

Does cDAQ9189 allow 8x modules to be connected via ethernet?

 

Thanks

USB-6251 BNC Wiring Problem with Analog Input / Drifting Voltage

$
0
0

Hi everyone,

im trying to measure an analog voltage from a sensor with a USB-6251 BNC DAQ Board.

When measuring the signal in LabVIEW Signal Express the voltage is slowly increasing over time (=voltage drift?), so I think my wiring is probably wrong.

I attached the current wiring. The 5V Sensor is connected to a coupler which is then connected to a 24V power supply. The sensors ground is connected to the ground of the power supply (according to the data sheet), so I chose "Ground Ref. Signal" on the USB-6251 and used "Differential" Measurement.

Is there anything wrong with the wiring? Do I need to connect the grounds of the Power Supply and the DAQ? Both are connected to the same socket.

Bad driver? How to update? USB-6009 / old software

$
0
0

Windows 7 32 bit

Tried latest software install - doesn't support Win7-32

Installed from original disk - NI-DAQmx - MAX version 3.1.1

USB-6009 shows up under Devices and Interfaces - with an X

Device Manager shows:

   "USB-6xxx Firmware Loader"

   "The device property code is invalid"

 

I am trying to collect battery charge data - voltage and current once every couple minutes - nothing fancy.  This install includes VI Logger, which I believe does what I need.  To be more specific, I don't want to buy anything else.

 

Is it possible to JUST update the driver and fix this install?

 

OR - is there an easier way to do what I want to do?  (my  programming skills are rusty and outdated, and I don't have time to spend getting up to speed)

 

Thanks,

SK

 

 

NI USB 6351A Analog Input 20V

$
0
0

Hello,

 

I have one question if the voltage of 20V is danger for a Analog Input when i am not measuring?

 

BR Christian

Using USB-6501 with Virtual PC

$
0
0

I have a Windows 7 PC with DAQmx v17.0 installed and also with a Virtual PC running Windows XP with DAQmx v9.7.5 installed.  I am trying to connect to a USB-6501 Digital I/O module.  NI MAX on the Windows 7 detects the I/O module and the status is 'Present', but when I try to attach the module in the Virtual PC, it detects the module but the status is 'Not Present'.  I have applied the Windows XP Hot fix but that still doesn't help.

 

Any idea on how to make the Virtual PC use this device?  I'm assuming because the Windows 7 side has taken the resource.

 

Thank you!


Experiencing issues when wiring an analog output directly to an analog input

$
0
0

Hello friends,

 

I am working with an NI USB-6229 BNC device.

 

I am attempting to connect the Ao0 bnc terminal directly to the Ai0 bnc terminal so that I can read whatever samples are delivered out the Ao0 pin and log them to a TDMS file after being read back in via the analog input. But, with Ao0 hooked up directly to Ai0, all the samples that get logged to the TDMS file have values that are 0 or very close to it.

 

If I hook Ao0 to an oscilloscope and provide a continuous sine wave using a function generator on the Ai0 terminal...the output shows on the oscilloscope as expected and the TDMS file contains the sample values that resemble the provided sine wave.

 

What might be causing this behavior? If I need to provide more information about my setup and the problem at hand lmk!

 

Edit: Changed title

Programmatically determining the module to which a cDAQ task belongs

$
0
0

I have some code that does some work organizing analog inputs on M and X series devices. Basically, I want to take in a list of physical channels on one or more devices, and automatically sort them into tasks. The code iterates through each physical channel and identifies the device to which it belongs, then iterates through the already-created tasks to look for a task that uses that device (via the DAQmx Task -> Devices property node). If it finds a task with that device in it, it adds the physical channel to that task. If it doesn't find it, it creates a new task.

 

This works fine on the M and X series devices I tried it on. Unfortunately, it doesn't work on cDAQ tasks due to the way the chassis and modules are named. My original code takes a channel name and looks for the / character, and uses the preceeding text to determine a device name (e.g., "Dev1/ai1" returns "Dev1"). This can be matched to the values returned by the DAQmx Task property node.

 

This unfortunately does NOT work with cDAQ devices. With cDAQ, the channel name is "cDAQModule/ai1", but the DAQmx Task -> Devices property node returns chassis names, not module names (e.g., "cDAQChassis").

 

I would like to either:

1- Determine the cDAQ chassis to which a physical channel belongs (so I can detect if there's already a task created for that chassis, as I only want to create one task), or

2- Determine the module to which a task belongs (this would create one task per module; not ideal, but workable)

 

Any thoughts on this? I can take a device reference and see ALL of the modules it has, but I can't see a way to find which specific module(s) is being used by said task. I'd like to be able to run this code multiple times to generate multiple tasks for a given chassis, so I need to know if one task is "using up" a module.

Connecting open collector pulse output of flow meter to NI 9361

$
0
0

Hi,
Acquiring the Pulse Signal output from a Flow meter (Flow meter Output: Passive open collector, 30V, 250mA) using NI 9361 and cDAQ 9185.
Initially I connected flow meter output +24 and -25 directly to an oscilloscope, I couldn’t see any pulse. And Just tried connecting to PFI0+- of NI 9361. My program is as attached below. The counter started counting but after few minutes it was displaying 0 forever.
The pulse details are Pulse width: 100ms and Pulse value: 1kg Max Range of flow is 36000kg\h.
Then with the help from forum went through the flowmeter manual found the connections for configuring Passive output as attached below. Applied this and could see the pulses on Oscilloscope (Red one channel A)

And went through the NI9361 Manual and realized the connections for open collector output to be as file attached as NI open collector

But, my flow meter doesn’t have separate pin for Vin and GND. It has only pin no +24 and -25. So connected Vout to +24 and then +24 to DI0+. -25 to DI0- and to ground.
And created a task to test. But the counter output remained always Zero.


Also tried connecting the ends +24 and -25 without Vsup to the NI card. But providing supply externally and the pulses were visible on oscilloscope. But, then the output was zero.

 

I have connected the external power supply of 5V through a load of 7kohms. The pulse output has 2.2V logic high and 0.8V logic low.

 

In short, with no external power supply, I could see some random counts in LabVIEW but nothing on oscilloscope and with external power supply, I could notice pulses on oscilloscope and nothing on LabVIEW Panel

 

Any help would be greatly appreciated


Thanks in advance

 

Triggering NI9263 card (Voltage Output) with NI9239 (Voltage Input) on cDAQ-9174

$
0
0

Hello all,

I am at a bit of a loss using the "DAQmx Triggering.vi" to trigger voltage output with the NI9263 card by detecting a certain level of analog voltage on the NI9239.

So far, I have just used a case structure:example.png

However, I would like to use Analog Hardware Triggering like on this page (example below): http://www.ni.com/tutorial/4329/en/

Analog_Start_Triggering_in_LabVIEWIn the example above, I believe it starts recording data once the threshold is reached, however, I would like to be recording the voltage the entire time and once the threshold is reached, stop the voltage acquisition and then generate voltage output. Thank you!

PCI-6220 Counter problem

$
0
0

Hi

I have a PCI-6220 (M series) with SCC-68 terminal. I wanna connect a quadrature encoder which have 3 channels with 6 wires; A A-, B B-, Z Z-, but in pinout figure there is no place for A-, B-, Z-. for connecting. In DAQmx in virtual channel task, the DAQ can't read negative pulse (In thick unit). What should i do ?? Please help me. Where should i connect A-, B-, Z-??

 

Thank you

Viewing all 6916 articles
Browse latest View live


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