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

Synchronize Analog input task on an S-Series Board with output on an X-series

$
0
0

I am trying to synchronize two PCIe boards, which are connected by a RTSI cable, an S-Series (PCI-6115) and an X-Series (PCIe-6363). I would like to run an AI task on the S-Series (10MHz acquisition) and a synchronous AO task on the X-Series. Among other things, I tried routing the 20 MHz timebase on the S-Series to RTSI7 and then into the refclk.src of the X-Series, but I got an error that the PLL could not lock to the source. It is not obvious to me what timing signal I can route between the two (it seems the S-Series can only export or input a 20MHz signal, and the X-Series a 10MHz). Am I missing something? Thanks in advance for any help!


Using actual clock rate results in "The specified resource is reserved" error.

$
0
0

Hello!

 

I am using DAQmx 9.8, win10 x64, NI 6221 emulated board, labview 2012 32bit.

I need to set AO sample clock rate, check actual clock rate, calculate pulse based on new rate value and write it to the board for output. The sample code is attached.

Everything is ok when I use only one timing command (as usually people do) during task setup, but when I am trying to set clock rate and then number of samples I receive "Error -50103 The specified resource is reserved. The operation could not be completed as specified". The error occurs after DAQmx Write.vi. I have tried use two timing commands or a combination of timing property node and timing command with the same result.

Is there are any ideas how to solve this? Probably, there is some more convenient way how to obtain actual rate which I dont know.

I have not tested it yet on real hardware, only on emulated board.

USB6363 - Cannot connect terminals?

$
0
0

So I have a VI that uses a master pulse generator and I am using the USB6363 as an AO.  I have set up so that the pulse generator triggers to APF1 and mirrors it to ao/StartTrigger, but I get the following error

 

DAQmx Connect Terminals.vi:4600001<append>
<B>Source Device: </B>Dev4
<B>Source Terminal: </B>APFI1
<B>Destination Device: </B>Dev4
<B>Destination Terminal: </B>ao/StartTrigger

 

Not sure what that means or why this is happening.

Re: DIGITAL LOW OUTPUT FROM DAQ 6009

$
0
0

Hi

Sorry to ask but I find it hard to ask a question in here, as i cant really see where i should post it. That is, there is no post menu;only the search menu. How did you post yours? Anyone can help. Thanx

 

Regards

ksm

AC motor run and control

$
0
0

Hi Everyone.

 

I am new in using a Labview and DAQ devices. Doing a project in college this year.

My question would be: what hardware required to run AC blower motor and get readings from sensors. (Proximity sensor which sensing motor spinning and optical speed sensor to measure RPM)

Any help would be appreciate .

 

Cheers

SC-2345 and AI SENSE

$
0
0

When taking measurements from an SC-2345 with LP04 modules, what should AI SENSE be connected to?  DAQmx forces NRSE mode for any SCC module inputs so I would think AI SENSE at the terminal block should be connected to something.  The SC-2345 manual doesn't talk about this and the M series manual doesn't seem to mention what AI SENSE is connected to internally when in NRSE mode (it seems to stay pretty close to AIGND when not connected).

 

Thanks,

 

XL600

Sampling Rates using USB-600x with Raspberry Pi

$
0
0

Hello,

 

My apologies if this has been posted in the wrong section. I'm interested in connecting a Raspberry Pi to what will probably be a USB-6002. The max sampling rate on the 6002 is 50 kS/s, but I have heard of issues when trying to achieve sampling rates this high with a Raspberry Pi. Any insight into achieving the maximum sampling rate possible, and what that sampling rate is, would be greatly appreciated. I will likely be using a Raspberry Pi 3 Model B. Any recommendations for similarly priced hardware is also appreciated. This will be used to take vibration measurements from ICP acceleromters (purchasing other hardware for signal conditioning), and I'm interseted in ~ 10 kHz bandwidth.

 

Thanks,

Mico

AI with cDAQ-9181 on linux

$
0
0

I need to read continiously analog input from an AI module in cDAQ-9181 Ethernet chassis under linux. cDaq devices are not listed among those supported by Daqmx Base 15.0 for Linux.

 

I could configure the device and create task under NI MAX for windows, but really need at least to be able to start and read data stream on Linux. Short of setting up a virtual machine with a version of MS operating system for that sole purpose, are there any options? Could NI disclose at least a part of their API so that I could implement a driver myself?

 

Thanks,

Mikhail

 


NI 9242 and 3 phase no netural measurements

$
0
0

Hi,

     I'm very new to labview and I'm trying to measure the PMG of a generator. The output is a 3 phase wye with no netural. I am trying to measure the line-to-line voltage with a NI 9242 card but the card can only measure in NRSE mode when configured in both NI MAX and Daq assistant. The card does show it can be connected in a 3 phase no netural setup in the getting started guide. Should i take measurments in NRSE mode with the netural disconnected and get the line-to-line voltages mathematically or is there a beter way?

How many NI USB-6218 devices can I connect to PC (Win7 64)?

$
0
0

Hi!

How many NI USB-6218 devices can I connect to PC (Win7 64)?

 

I need 6 devices in the system, but I see 3 devices only in Device Manager, 

read analog inputs - control - write analog output

$
0
0

Hi guys,

 

I want to read two different analog voltages and based on some calculation, i want to give out an anlog voltage.

Attached you can find my project so far. i can read the two voltages but i have currently problems to give out an analog voltage signal.

So far i just use the analog input signal from channel AI1 as signal for the analog output (instead of the calculations).

But i don't get the desired voltage at the analog output. Can someone help me how to fix this problem?

 

I am working with

- Labview 2016

- NI USB-6221

 

 

Regards,

Peter

Fastest way to clear an error and re-start task - Help!

$
0
0

Hi Guys,

 

I've developed a test that has two tasks:

Analog Task - 2 audio input channels

Digital Task - 3 digital input channels

The analog task is triggered off of an Analog Edge start trigger and digital task is triggered off of analog input start trigger with Digital task Starting first, then Analog task starting.

 

I then start a DAQmx read parallel while loop that just spins and reads a finite sample count and takes 1 second worth of data. Timeout is set to 2 seconds for this case. I clear any timeout errors I get -200284, and clear AND log any other DAQ errors. Here, I'm getting random errors and don't want to propogate them, just log them and move on to next acquire cycle. So in order to move on, if any error other than -200284 occurs I am calling Clear Task and then enqueuing to my main loop the configure timing state again which sets up the task from the input controls. I need to run 55,000 iterations, and around 9000 iterations in, I had an error, cleared the task, went to reconfigure and got a "Specified Resource is Reserved" error.. how can this be if I'm clearing the task before restarting it?

 

Is clearing the task the best way to handle a DAQmx error and re-start it, or should I be "uncommitting" and doing other DAQ API methods instead? I am now running with Stopping Task then Clearing to see if that helps. Mind you, I get errors literally every iteration due to me simulating it in MAX and having errors from simulate mode, so I know the clearing task/restarting state works, just had the one occurrence where the resource was reserved.

 

On another note, does anyone know how to set a Stop trigger off of an audio line that is going from On to Off. My analog task is starting on analog edge start trigger, but the audio is pulsed at 500 ms on and 500 ms off, and I'd like to only trigger on the start of it and when it turns off, instead of taking a finite sample size big enough to capture 1 second worth of the whole audio on and audio off..

How to measure temperature of thermocouple without using DAQ assistant

$
0
0

hey bud i need help in using NI9219 module for  measuring thermocouple temperature and ii also have made block diag code in labview  for acquisation   just a basic one to get temperature reading . will you guyz tell me is it correct or should make some changes  in it. 

How to read data from Counter NI9411 using C API?

$
0
0

I'm using the NI-DAQmx C API to read data from a cDAQ-9188

I'm able to read analog voltages and digital inputs fine (NI9201 and NI375).

Having problems with Counters (measuring frequency) (NI9411).

I just get error "Some or all of your samples have not yet been acquired" after timeout.

 

My pseudo-source:

 

 

DAQmxCreateTask("", &taskHandle);
DAQmxCreateCIFreqChan(taskHandle, "cDAQ9188-189E9F4Mod1/ctr0", "", 1, 1000, DAQmx_Val_Hz, DAQmx_Val_Rising, DAQmx_Val_LowFreq1Ctr, 0.1, 1, NULL);
DAQmxCfgSampClkTiming(taskHandle, "pfi0", 5.0, DAQmx_Val_Rising, DAQmx_Val_ContSamps, 5);
DAQmxStartTask(taskHandle);
DAQmxReadCounterU32(taskHandle, 5, 10.0, (uInt32*)data, 5, &read, NULL);

 Are my device names and everything else correct?

 

Thanks.

Writing data to span of file for high sampling rate data acquisition (for hours without memory overflow)

$
0
0

Here are the tasks which I need to do for taking noise measurements:

1) Take data continuously from USB 6281 board at a 500k sampling rate (50k samples at a time).

2) Save the data continuously for 3-6 hours in any file (any format is okay but I need to save in series of files rather than the single file). I want to start writing to new file after every 2 min.

 

I have attached my VI (in image format too as my LabVIEW is 2016 version) and images of my task configuration. I can take the measurement and write data into file continuously for 15 min. After that I am seeing these error:

1) Hardware acquisition cannot keep the pace with the software (something like this, also with a suggestion to increase the buffer size...)

2) Memory is full.

 

Please help in making my VI efficient and correct. I know you will suggest to remove the "Write in measurement file" from consumer loop because it takes a lot of time to open and close a file in a loop. You may suggest me to open the file outside the loop and write inside the loop. But I want to save my data in new file after every 2 min or after certain samples. If this can be done efficiently without using the Write in measurement file then please let me know.

 

Thank you in advance.

 

 


Writing data to span of file for high sampling rate data acquisition

$
0
0
Here are the tasks which I need to do for taking noise measurements:
1) Take data continuously from USB 6281 board at a 500k sampling rate (50k samples at a time). I need high resolution voltage reading from underwater transducer for noise measurements. 
2) Save the data continuously for 3-6 hours in any file (any format is okay but I need to save in series of files rather than the single file). I want to start writing to new file after every 2 min.
 
I have attached my VI and images of my task configuration. I can take the measurement and write data into file continuously for 15 min. After that I am seeing these error:
1) Hardware acquisition cannot keep the pace with the software (something like this, also with a suggestion to increase the buffer size...)
2) Memory is full.
 
Please help in making my VI efficient and correct. I know you will suggest to remove the "Write in measurement file" from consumer loop because it takes a lot of time to open and close a file in a loop. You may suggest me to open the file outside the loop and write inside the loop. But I want to save my data in new file after every 2 min or after certain samples. If this can be done efficiently without using the Write in measurement file then please let me know.
 
Thank you in advance.

 

Creating a 64kHz current signal with a DAQ?

$
0
0

I am going to do some impedance measurements and need a device to generate a 64kHz low current(0,1mA) signal, and to pick up 2 differential voltages. Is there any multifunction DAQ devices that outputs a constant current or can i use a device with a voltage output and use a voltage to current converter? 

 

Adam

How to shield NI-USB TC01 from EMF/Noise

$
0
0

Hello,

 

I'd like some suggestions on how to properly protect my NI USB TC01 from EM/Noise interference that i'm using for testing purposes with my labview code

 

Environment: Inside a home-made thermal chamber that will go from -40C (via liquid nitrogen pump controlled by my program) and upto 115C (via heat gun controlled by my program). Nearby this chamber will be a motor that is spinning a shaft inside the chamber(with the product i'm testing mounted)

 

Problem: Whenever i start up my large motor(20HP, 1750 RPM 480VAC) with my motor controller, my temperature readings from the  NI TC01 USB module go haywire. I'm assuming the electromagnetic field generated from the motor is the cause of this interference in my TC01 readings..whenever the motor is OFF, temp readings are perfectly stable..

 

Are there any suggestions the community might have on how to shield and protect the NI-TC01 USB from this type of interference?

 

I'm trying to isolate the module as far away as possible from the motor but i'm not having any luck. 

Should I try to enclose the module in some kind of case? is there something i can do to the input terminals of this device to draw away the noise/interfence?

 

I have tried a ferrite choke around the USB cable that is connected to the module but that didn't solve it either so it seems like I got the issue pinpointed to the input terminals of this TC01..

 

I should have read the detailed specs of this module a bit better..there is a disclaimer saying EM interference will affect the measurement accuracy of this device since the input terminals of this device are not protected from such interference/noise..

 

Any thoughts on this matter would be appreciated!

 

 

 

Reading current and voltage simultaneously on USB 6002

$
0
0

I've created VI and have some issues incorporating voltage reading to my amphere measurement. I have both channel 0 and 1 set to measure current while chn 2 & 3 read voltage. The program displays the continuous data for current just fine but there is absurd measurement for voltage. How do I implement both reading successfully with 2 graphs showing both current and voltage true live readings?

 

 

Please see attached VI and screenshot of results. The applied voltage was 3.07V but is showing in the kilovolt range.

 

P.S. Apologies for my disorganized wiring

DAQ from multiple microphones connected to sound card

$
0
0

Hello to all!

 

{I'm rather new to this so please a) forgive me if I misplaced my post (plz, move it to the correct topic!), b) ANY help would be tremendously appreciated!}

 

Say I've got 3 microphones connected to this sound card, which has a USB output port. 

 

If I plug it in in my laptop's USB port, using LabVIEW 2015, will I be able to "see" each microphone seperately?

 

Assuming Windows recognize the USB sound card as an external device, will each seperate microphone be "selectible" as an input ready for processing inside the program? For example:

sound card --> "dev0"

mic #1 -->"a0"

mic #2 -->"a1"

mic #3 -->"a2"

 

- (huge) OR - 

 

do I need to find another way to connect the sound card outputs (not USB, line-out perhaps) as inputs to a NI DAQ device, e.g. NI 9234?

 

I hope this is clear enough so anyone with experience on the matter could shed some light to my case!

Viewing all 6920 articles
Browse latest View live


Latest Images

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