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

DAQ program

$
0
0

I'm trying to write a program that runs in a loop and samples 11 different channels on a NI USB DAQ 6343 device continuously. The first 10 channels are simple DC measurements, the remaining channel is an AC voltage signal, whose frequency I want to record. All of this data I will be writing to a .csv file at the end. I have attached my code and I'm working with the DAQ.mx drivers. 

 

The question I have is, how do I measure and AC signal with the USB DAQ? I tried to configure analog input channel # 19 for "frequency, voltage" and then do a "read", howeever, it is telling me that the channel does not support that type of measurement. This AC signal is going through a BNC cable, and then to two banana adapters.

 

Attached is my code, written in LabVIEW 2013.   Here is a screen shot .

 

vxcvxcv.gif

 


Need a new USB Multifunction DAQ device

$
0
0

Hello,

 

Currently I use a PCIe - 6321 Multifunction DAQ device for controlling my stepper motor. I need to change the PCIe - 6321 and use the stepper motor with a USB Multifunction DAQ device similar to PCIe - 6321. I am not sure about which USB model to select. Can I please get some help regarding the selection of proper USB MIO DAQ device which works similar to the PCIe - 6321. 

 

Thanks,

Bharath J S

 

What does hysteresis actually do in the "Voltage - Continuous Input.vi" example?

$
0
0

I've been working with DAQmx long enough that I feel silly I don't understand "hysteresis" in relation to analog triggering as well as I should.

 

For example, looking at the very basic "Voltage - Continuous Input.vi" example that ships with LabVIEW 2013 and newer:

 

When the Trigger Type is "Analog Start" what does the Start >> Analog Edge >> Hysteresis property actually do?  The Help for the property states "If Start.AnlgEdge.Slope is Rising, the trigger does not deassert until the source signal passes below Start.AnlgEdge.Lvl minus the hysteresis. If Start.AnlgEdge.Slope is Falling, the trigger does not deassert until the source signal passes above Start.AnlgEdge.Lvl plus the hysteresis."

 

Very simply put what does "deassert" mean for a Start Trigger? I mean once sampling has started what do I care if a deassertion happens or not? What am I missing?

 

I've attached the very example that ships with LabVIEW for ease of access. Look at the "Analog Start" case to the left of DAQmx Start Task.vi.

 

Thanks!

 

Akash

Which DAQ for my project? USB or PCIe ?

$
0
0

Hi,

 

We would like to do measurements with >200 kS/s for around 5seconds at max. samplerate.

We are operating a DMD which sends at the beginning of the measurements a trigger signal to the DAQ.

Everything is done in C++, Windows7 64bit.

 

Therefore my questions:

Which DAQ should we buy:

  • NI-USB-6211
  • NI-USB-6281
  • NI-PCIe-6321

 

And if the FiFo memory of the DAQ is 4096samples what does that mean? What happens if the memory is full? Are all data transferred to the PC? Is there any lack in the measurements? Are we out of sync then?

USB-6003 support for LV2009?

$
0
0

Does not seem to exist.  DAQmx versions that support the USB-6003 exclude LV2009.  Unless I have missed something.  Any suggestions?

 

Thanks

 

Ed K

 

Question about DAQ sampling

$
0
0

I am wondering, if I set the DAQ for continuous sampling and set the rate to say, 1 khz, then I read a single sample DBL value within a loop, what am I reading at that sample? Is it an average of the sampling that the DAQ carried out at the set rate? I am simply trying to monitor analog voltages on 9 channels. What is the point of setting a sampling rate on the DAQ if I'm just reading a single sample?

 

Should I set it to "N channel N samples" to take advatage of this setting that was done on the DAQ hardware? See below screen shot of code. Thanks.

bbbbbbbbbb.gif

impulse on periodic signal from DAQ

$
0
0

I'm using a myDAQ to measure a perioidic voltage signal, and I want to find the maximum and minimum of this signal. When acquiring the signal though, there seems to be a large impulse in the start of the acquisition data shown in one of the attachements. The capture is from a probe from before any filtering is applied to the signal. I'm not sure if this is an effect of the signal acquisition or something I am doing with the signal filtering, and I am new to signal processing in Labview in general.

 

In the picture, I acquire 2 signals at 1, split the signal at 2 (top signal is of interest), filter at 3, scale at 4, and display at 5.

 

Can anyone point me in the right direction of what could be going on in my code?

Low Frequency

$
0
0

Hai guyz,

 

I have developed a code to save data while the cDAQ is taking reading. Its fine when I set it to 1Hz with the save data showing data taken at every 1 sec interva. But when I tried to make it to 0.017 Hz the codes shows error. The reason I did this was I thought it would make the program read data every 1 minute and save it. Perhaps this is the wrong approach. If so would you show me how to do it the right way? I've attach a code capture and the example of data saved.

 

Regards,
Newbie92 


External Trigger PCI 4472 and create a timed loop using this trigger

$
0
0

Dear all,

 

I have PCI 4472 card. I want to trigger this card using analog voltage from external source. I have referred to the example " ...Acquire voltage..Int clk_Start analog edge" ... I have been able to self trigger the signal. When I connect another physical channel, I could see both the signal together. But, I have following problems:-

i) I want to see signal of one voltage channel ( sinusoidal one) and not  the trigger voltage channel (pulse one). How should I achieve it? Actually, when I use the Vi Analog 1D Wfm N channel N sample, it show the waveform of both the trigger voltage channel and the other one. I need to see the FFT of sinusoidal one without the FFT of pulse one.....

ii) I want to use this trigger to run a timed loop. Is it possible to achieve this with this card? Moreover, I want to acquire data after some delay time from the zero crossing of trigger. Is it possible to achieve it?

 

Thanks in advance for the reply.....

 

NI6008

$
0
0

Bonjour,

je souhaiterais communiquer avec un module esclave en SPI. j'ai à ma disposition le NI USB 6008. J'aimerais savoir si je peux utiliser les 12 E/S numeriques de NI USB 6008 en tant que broches pour le SPI ( MOSI , MISO, CS, CLK).   merci de votre aide.

Managing Tasks on Ethernet cDAQ - Best Practice

$
0
0

Hi all,

 

I'm currently working on a multi-station machine to perform functional product tests using an NI cDAQ 9188. Each station in the machine performs the same function but is intended to run independently. Basically a given station is loaded with a part, tested, sorted, a new part is installed and repeats. During this process other stations are undergoing the same procedure and sharing the same cDAQ. 

 

During this testing digital signals (48) are turned on/off and analog signals (24) are being read between all stations. I've found that in contrary to a PCI task, the ethernet cDAQ tasks have quite a delay (~750 ms) when starting / stopping. Prior to this project I've only had experience using PCI tasks where I could read N Samples when needed without much start-up delay. Same goes for writing digital samples.

 

The solution I've implemented for this is to create a continuous analog read VI that reads all analog signals and loops in the background continuously writing to a global variable. When a given station gets to a point where it needs to read signals, it pulls the desired index from the global array at that point in time. I also have a similar solution set up for the digital task, except it is reading a global variable for digital states and applies that to the task on each loop iteration. Normally I try to avoid continous loop senarios but the PC I'm using lets me get away with it. 

 

Basically what I really need is subVI that starts the analog or digital task, but is idle until called by any module and returns N samples. This VI needs to act as a gate for analog read requests to avoid any reserved resource issue. I can't really think of how to accomplish this. 

 

Any ideas?

Amplitude difference in P0.0 pulse on PXIe-6124

$
0
0

Hi,

 

I've been examining the digital output pulse from P0.0 on the PXIe-6124 and noticed a difference in amplitude when measured on an Oscope vs on the PXIe-6124's Analog Input. The pulse measured on the Oscope has a 5vdc amplitude referenced to ground. That same pulse measured on the PXIe-6124's Analog Input is about 2.7vdc in amplitude with the low side at around -10.2vdc and the high side around -7.5vdc.

 

After that said, my concern is I'm using this P0.0 pulse to drive a solid state relay with a minimum turn-on level of 3.5vdc. I trust the output level of the external scope, but a little doubt is in my mind do to the difference in the amplitude levels measured. I'm just curious about the difference.

 

Tks, Terry

cDAQ-9134 Not Recognized Over USB

$
0
0

I've tried 2 separate computers, and neither recognizes the cDAQ device at all. I've tried multiple USB cables, and a bunch of other things. Just looking for some other options at this point, I need to get it running ASAP.

While loops

$
0
0
Hi guys,
I have a code that includes several loops:
A flat sequence inside a case structure which is inside a while loop.
At the very end of the flat sequence i have a display message VI, when i press the ok button on the popup message it is supposed to stop the program, what i did is i wired the OK of the display message vi from inside the flat sequence to the stop condition of the while loop however i see that some the program runs back again before it fully stops.
Can someone please suggest a way to fix this or is there some other more efficient way to do it?
Thanks in advance

Humidity measurement

$
0
0

Hai guyz,

I'm new at using NI harware so I hope my ignorance will be forgiven. I've just been given a task to measure humidity, %RH, using NI cDAQ-9184. I've been given NI 9205, NI 9211 and NI 9203 I/O modules. The sensor that I have to use is the HIH 6130 sensor. I've bought the a breakout sensor similar that of Sparkfun. My question are:
1. Do I need another external circuit?
2. Can any of my module be of use?

 

sensor breakout- https://www.sparkfun.com/products/11295 

 

Regards,

Newbie92 


PCIe-6341 card not detected by Device Manager or MAX

$
0
0

Hi,

 

New PC with Windows 7 WES, I have two PCIe-6341 DAQ Cards installed to Slot1 & Slot2.

 

Both cards inserted to Slot1&Slot2, Card1 (serial 01A32C71) appears in MAX as Dev1.  Card2 does not appear in MAX or Device Manager.

 

Card2 only inserted in Slot2, Card2 does not appear in MAX or Device Manager.

 

Card2 inserted in Slot1, appears in MAX as Dev1 (serial 01A32C77).

 

Card1 inserted in Slot2, does not appear in MAX or Device Manager.

 

It appears both cards are functioning okay but is there some trick to installing two of the same DAQ card ?

How come I can only import cDaq devices into NI MAX (that I have saved in a config file) as simulated device and not actual devices?

$
0
0

How come I can only import cDaq devices into NI MAX (that I have saved in a config file) as simulated device and not actual devices? Is there a way to make them not simulated?

SCB-68 Pin#8 (+5V) not working

$
0
0

Hello,

 

I am using PCIe-6321 DAQ and SCB-68 connector block to connect two stepper motor drivers and drive the stepper motors. I need to provide +5 volts to my driver in order to power the emitter diode in the opto-isolators in the drivers. I am able to get +5 volts from pin 14 of the SCB-68 but I am unable to get the +5 volts from the SCB-68. The Quick Reference Lable states the pin 8 as +5V, Fused. Can anyone suggest me what I am supposed to do in order to obtain the +5 volts from pin 8 of the SCB-68.

 

Thanks,

Bharath J S

 

C series module will not pop up in configuration tree cDAQ-9171

$
0
0

On the NI-Max program i can not get the C series module to pop up on the configuration tree under "devices and interfaces". It says its supose to do it automatically but it wont popup. I have a cDAQ-9171 chassis and a NI 9215 module. Im trying to get a reading on its inputs so I then can set it up on the xy plotter program. I have a amber light on the ready led and active is off but will flash green for a split second when you self test it under the chassis on the configuration tree.

start data read on positive trigger and stop on negative trigger on DAQ-6343

$
0
0

Hello everyone,

 

I am using USB DAQ-6343.I have assign task to read data on positive edge of Digital signal and its Negative Egde I ahve to stop reading data.I am giving clock from external hardware.Now my query is i am giving particular No of data to read. Now if i change this number it is reading samples of that number.Now my problem is I am giving external clock So it should not read more data than clock frequency,

So help me out here, Whta other properties i have to set and tips of it.

 

Sorry that I could not attach Vi today,  wil attatch it later.

I am using DAQ-mx 9.1.Following basic Daq mx example.

 

with best Regards, 

Viewing all 6883 articles
Browse latest View live


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