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

USB 6501 Event Trigger and Buffering

$
0
0

Hi, 

 

How to use NI USB 6501 to capture a event based trigger (from external source) ? The trigger is based on a random event. Is it possible to buffer some trigger, if the event trigger rate is very high ? Which Function should be used together with DAQ Assistant ?  

 

Best regards, 

Bilal

 


Buffering with USB 6501

$
0
0

Hi, 

 

I have an event based trigger of 250 n sec. The event is random and can be occured anytime. But the duration of pulse if very short i.e. 250 n sec. 

 

I am using NI USB 6501 to capture this trigger. Can NI USB 6501 provide buffer to capture such triggers ? 

 

Best regards,

Bilal 

Setting up virtual SCXI 1600

$
0
0

Currently using a SCXI 1001 with SCX 1600 communication to PC.  I am trying to develop a labview application at my desk that I can bring to the existing system but I cannot get the virtual instrument to work correctly in MAX.  Using MAX 4.7, Labview v. 8.2.1.  The SCXI does not show up as an option to create a vitrual device.  The SCXI 1001 does show up but only gives me the option to connect to other virtuals devices I have on my PC .

AC voltage measurement - RMS conversion - Signal Express

$
0
0

Hi all,

 

What I am trying to do is record 20 different AC voltage channels ranging from 0 to 7Vac RMS @ 3000 Hz each (sine waves).  The recording software I want to use is NI SignalExpress. The voltage range should not be an issue due to the max voltage being right below 10V.

 

I need to record for several hours at a time so I want to avoid just using a very high sample rate due to the size of the data.  Normally I would just convert from AC to DC with external circuitry before running this signal into my DAQ card, but would also like to avoid that method due to having 20 different channels I would need to do it to.

 

Is there a way with any of the NI DAQ cards to convert this input signal to an RMS value (DC voltage) so that I can record at a slow sample rate (200 Hz or less)?  I checked out all the voltage DAQ cards but I could not find an answer.  I have used many different cards for DC voltage measurements but needing to record AC signals is new to me.

 

Thanks,

 

Alex

Triggering and synchronization

$
0
0

Hi everyone

 

I'm in the process of wiring my data acquisition system.  I'm using Cdaq 9178 with NI:9203 and Ni :9472. 

 

  the dig. output from Ni9472 will be used  to energies Solenoid valves  through Solid state relay( vi was written to open them sequentially). Ni9203 willbeusedtoacquireanalogcurrent4to20mAfrom7devices.

 

I used daqmax for the valve vi( digital out put) and daq assistance for acquiring the analog current. I know it shouldn't be a problem to trigger the device measurements (through daq assistance)  but how to get the valve control Vi synchronized (which uses daq max)??

 

My question is 

How to use external signal(through PIF0 port) for triggering (both) the device measurement and the valve control vi.??

 

Best Regards 

 

 

 

DAQ

$
0
0

Hola a todos, quisiera conectar un adquisitor de datos (que no es de "national instruments") siendo mas especificos es una pequeña empresa conocida como "Pocket Logger". por tanto el momento de adquirir datos con el DAQ assistent, no me reconoce este dispositivo el Labview, ¿Que solucion le puede dar a este problema?,

Saludos

 

Hi, I would like to connect a adquisitor data (which is not of "national instruments"), being more specific is a small company known as "Pocket Logger ". Therefore when purchasing data with the DAQ assistent, this device is not recognized by Labview, what can i do to solve this problem?,
regards

Can DAQ module input be read by two or more LabVIEW vi at same time%3F

$
0
0

I am using the DAQ palette in LabVIEW to read  virtual channels from DAQ input module. I have made many VI that read many inputs of three simulated modules. The problem appears when i run two or more VI´s that read inputs from the same virtual module (e.g.. first.VI reads module 1 input ai0 and second.VI reads module 1 input ai0), when this happen the next errors are showed:

 

Error -50103

 

NI Platform Services:  The specified resource is reserved. The operation could not be completed as specified.

 

and

 

Error -200022

 

Resource requested by this task has already been reserved by a different task.

 

This is worrying because i want to get DAQ chassis and some modules, however if this problem is present with physical equipment my application could be useless. It means that module input only can be read once at time?

 

Error -200088 with USB 6009

$
0
0

Hi all,

I'm a new user to Labview and trying my first steps. (currently the Demo Version 2013)

I want to read analog values via a USB6009 device. All drivers installed via the supplied DVD

 

When I try to run my circuit, I'm getting a error -200088. 

 

Can anybody help me with this?

 

http://monosnap.com/image/El3PZN681rmktFreefMQ2XU14dMuQ6

 

 

Thanks 

John


How to simultaneously Read scope 0 and scope 1 of elvis ii?

$
0
0

Dear all:

  I am a user of LabVIEW 2010. Recently, I have downloaded the lockin start up kit. I want to use ELVIS for the signal input. I want to input the data signal and reference signal using scope 0 and 1. But in the front panel of the demo lockin program, I only can assign 1 scope for input. I have see the back panel of the program, the signal from the DAQmx is 2d array. Therefore, all scope should be assigned. How I can assign both scopesHo in front panel?

buffer size or sampling frequency?

$
0
0

Hello, dear fellas! Im having a huge misunderstanding with labview on sampling, tried to figure it out different ways but it wouldnt work, and it starting to feel like it works with specified parameters only once a week - on tuesdays.

So here is the the background: im a aquiring analog voltage from three sensors with my NI9205 and generating sine wave for a servovalve with a NI9269, the signals i am aquiring are being filtered, you can have a look at the .vi i've attached. so the aim is to pump water to a test rig, constantly change voltage in the servovalve with AO with a sine wave and collect pressure data, and since the opening/closure of a servovalve is related to a sine with obvious parameters, i need to collect the same parameters for the pressure data, the pressure changes as a sine also, so its amplitude mainly, so there it is, as you can see, the peak-to-peak amplitude measurement. 

 

Now here is a problem: i cant test the amplitude measurement for i constantly get the 200279 error, which says i should either increase the buffer size (which i have done by the front panel control) or read data more frequently (which i have also done by changing the sample rate to a higher value). if you see something im doing wrong, or something that could be done and ive missed it, do please give me a tip. 

I would also appreciate any help with amplitude measurement, for i have explored all the examples there were, such as amplitude spectrum, all the vis for measuring single tone amplitude and so on and so forth :) but the amplitude measurement vi in attached code is the one im probably using as final, tho i only managed to test it with the AO signal, which is not a test at all,  as you all know haha :)

Thank you all in advance ;)

Noise on AI channels linked to DAQmx timing source

$
0
0

I have a data acquisition system which consists of a PCIe-6321 X series card and a 9636 sbRIO. I mostly use the sbRIO for high accuracy counter tasks, but I also use it to produce a 50% duty cycle timing clock for a set of sample and hold amplifiers, measuring three differential pairs. The outputs of these amplifiers are measured differentially on the 6321. I’m trying to correct my analogue input measurements for the output bias of the S&H amplifiers. With a reference voltage source connected to each leg, the differentially received voltage should be equal to 0 V.

 

I wrote a little test VI to record 20 s of data on the three differential channels and dump it into a TDMS file. Leaving the timing source as the default sample clock (see simple block diagram for one diff pair) I saw my expected noise of the order of the LSB with a low frequency component superimposed. The frequency of the low frequency steps is approximately 0.4 Hz. As I’m receiving differentially, it’s not common mode noise that causes that step. Furthermore, I’d expect it to be broadly in phase – yes, I know it’s not a simultaneous acquisition device, hence the S&H buffers and the external clock, but I wouldn’t expect a delay of 0.25 s or so between three channels at 50 kHz.

 

 

int-sc.png

 

int-sc-plot.png

 

Fortunately, for sync purposes I usually time the PCIe DAQ via the same external clock signal produced by the sbRIO and wired to a PFI line on the PCIe card. Changing the timing source of the VI to the rising edge of this PFI line, the low frequency step disappears.

 

 

ext-sc.png

 

ext-sc-plot.png

 

Other than the DAQ timing source, there is no difference between the two tests.

 

Any idea what could cause that low frequency superimposed signal in the first plot?

USB 6009 analog input - DIO Issue

$
0
0

I recently laid out a printed circuit board to connect to the USB 6009.  There is a single ground plane layered in the board for both the digital and analog circuits on the board.  The digital IO is activating a relay (via port 1) while port 0 is broken down to three digital outputs(P0.0-P0.2) and one digital line (P0.3)  Furthermore, there is a 1-5 volt signal that I'm monitoring (I've tried RSE & Differential) on AI0.

 

The problem is that when I have my digital lines & ground hooked up to the board, I get a 0.8 volt reading on my analog input.  To further clarify, I have no power running to the circuit board when I get this reading but I get the same reading regardless.  If I disconnect the digital lines, the analog input reads 0 volts as it should.  I should also point out that the voltage that I'm trying to read from my circuit board is from the output of an op amp/buffer.

 

I've used the USB 6009 (or similar NI products) for many years now but this has me stumped.

SignalExpress: System logs for 5 minutes, then terminates with "Sample period too short"

$
0
0

Hi all,

 

I'm puzzled by this issue. My customer has a very simple SignalExpress acquisition task (20 channels, acquired once every second) for a networked cDAQ chassis. The Acquisition Mode is "1 Sample (On Demand)", and  Sample Period (s) is "1".

 

The system will happily log away for about 5 minutes, and then stop with an error. Screenshot below (see http://forums.ni.com/t5/image/serverpage/image-id/137424i1AC14B4DDC907A91/image-size/original?v=mpbl-1&px=-1 for the full version)

 

When I click "Details", I basically see this error message: http://digital.ni.com/public.nsf/allkb/9430D7F074BE8577862577300063CE97 -- it says there was a bug in DAQmx 9.0, but should be fixed in later versions.

 

However, we're seeing this issue on 2 different PCs, (using same cDAQ chassis)

 

Original PC:

  • Windows XP
  • SignalExpress 2011
  • DAQmx 9.4

 

New PC:

  • Windows 7
  • SignalExpress 2013
  • DAQmx 9.7.5

 

Any ideas?

 

 

SignalExpress Error.jpg

Traditional NI-DAQ to NI-DAQmx

$
0
0

I am a LabVIEW Neophyte.  I have inherited a LabVIEW project from a previous employee long gone from the company I work for.  The project was written using Traditional NI-DAQ and I need to update it to NI-DAQmx so that it will be 64-Bit compatible.  I of course ran into trouble with the very first VI that I am trying to upgrade.

 

This VI was built with LabVIEW 2011 SP1 and I need to replace the AI Config, AI Start, AI Read, Channel to Index, AI Control, and AI Clear VIs with their NI-DAQmx equivalents.  Upgrading it to LabVIEW 2013 SP1 is possible if that makes things easier.

 

Now here is the tricky part.  I want to keep the terminals on this VI the same if possible.  This VI is used in several places and in a few different programs and I want to make the change as minimally invasive as possible.  If possible I want the changes to be made only inside this VI.

 

I have attached the VI to this post.  I am looking for any help and or advice. Thank you.

How can I create phase shift between two arbitrary waveforms?

$
0
0

Hi All,

 

I need your professional suggestion. I am trying to use USB-6218 to output two analog voltage signals of arbitrary waveforms. I use the "Simulate Arbitrary Signal" to define the signal. The attached vi is the one I wrote. In this vi, you'll see one Sample Clock connected to two "Simulate Arbitrary Signal" modules, each has a specific waveform.

 

Now my question is, how can I change the timing of each signal so that I can create a specific phase shift, say, 30 degree, between the two signals? Should I use two Sample Clocks or not? Thank you very much.


NI cdaq 9174 not recognized DAQmx 9.8

$
0
0

I am trying to install and use NI cDAQ 9174 with NI 9862 CAN modules. But for some reason cDAQ 9174 is not recognized in MAX or signal express and am unable to configure it. It shows up in Windows device manager as "cDaq-9174" under the heading "National Instruments Device".  

I uninstalled and installed DAQmx (Version 9.7.5 and 9.8) and XNET 1.8 drivers multiple times but its the same deal. I am using Windows 7, Labview 2010 and TEststand. I checked some other realated posts and tried the solutions, but no luck in getting it working. The chasis works fine on another PC, so the hardware should be working fine.  

I have attached my technical report from MAX for more info. I have also tried resetting my configuration data through MAX as well. I cannot afford to reinstall WINDOWS in this PC. Any suggestion would be helpful. Thanks.

DAQmxReadCounterF64() timeouts blocking program runtime

$
0
0

Hi,

 


I have a PCI-7342 board connected to a MID-7652 box that is being used to control a servo motor on a rotary axis with an encoder. I also have a PCIe-6323 board that is used to read a quadrature linear encoder on the counter using DAQmx and I am programming in C. As the axis rotates, it passes breakpoints and sends a trigger signal in order for the counter to latch a reading from the quadrature encoder. I have also posted this in the Counter/Timer message boards.

 

 

The DAQmx is set up using the following functions:
     DAQmxCreateTask(, &thHandle);
     DAQmxCreateCILinEncoderChan(thHandle, "Dev1/ctr0", , , , , , , , , );
     DAQmxCfgSampClkTiming(thHandle, "/Dev1/PFI0", , , , );
     DAQmxStartTask(thHandle);

 

This sets up the counter to be latched every time a signal arrives at the PFI0 terminal. I have connected the breakpoint output from the MID-7652 box to PFI0.

 


The rotary axis is configured with modulo breakpoints using the following functions:
     flex_configure_breakpoint(, , NIMC_MODULO_BREAKPOINT, NIMC_RESET_BREAKPOINT, );
     flex_load_bp_modulus(, , 250, );
     flex_load_pos_bp(, , 0, );
     flex_enable_breakpoint(, , NIMC_TRUE);

 

Due to modulo breakpoints, I have to call flex_enable_breakpoint(, , NIMC_TRUE); every time a breakpoint occurs in order for the next breakpoint to be able to trigger.

 


The problem I have lies in the next stage. I want to call the read function which will wait for incoming trigger on PFI0. So I call the function:
     DAQmxReadCounterF64(thHandle, -1, dTimeOut, , , , );

 

Next in my code I start the motion of the rotary axis
     flex_start(, , );
     do
     {
          flex_read_axis_status_rtn(, , &usAxisStatus);
          usBPStatus = !((usAxisStatus & NIMC_POS_BREAKPOINT_BIT)==0);
          if (usBPStatus)
          {
               flex_enable_breakpoint(, , NIMC_TRUE);
          }
} while ( !(usAxisStatus & (NIMC_MOVE_COMPLETE_BIT | NIMC_AXIS_OFF_BIT )));

 

But this line is never reached because the DAQmxReadCounterF64() function keeps waiting for an input at the PFI0 terminal and blocks the program from running and times out, returning an error.

I have tried rearranging the order of the functions by calling flex_start(); first and then DAQmxReadCounterF64() before the do-while loop.
The problem with this method is that the DAQmxReadCounterF64() function blocks the runtime and so the second breakpoint is never enabled. The function again times out and returns an error.


I don't want to set it to indefinite or my program will wait forever and not do anything. Is there a way around the DAQmxReadCounterF64() timeout? Or a way to re-enable the breakpoints?

pxi 6713

$
0
0

Hi everyone,

 

I have a DAQ called NI PXI 6713. Can anyone tell me if it is possible to use this card to acquire some voltage signal? Can this card support analog input? Or shall i buy some new cards to measure the signals and do some FFT calculation on these signals on Frequency range(0-30MHz)? Which cards do you advice?

 

Thank you in advance!

Yami.

Using basic DAQmx drivers for a HS-DIO Card?

$
0
0

Hi,

 

I have ready-made programs for Non-HS-DIO cards which uses DAQmx drivers for example basic configuring, reading and writing.

 

Now I need to use HS-DIO card (NI PXIe-6535). Do I need to regenerate my code and use NI HS-DIO drivers or does it work with old ones? What do I miss if I use old drivers (if they can be used)? Other issues?

BR,
Jick

VB6からDAQmxAPIを使っての計測

$
0
0

OS:Windows7、言語:VB6を使って、PCIe-6321からAD変換を行い計測をしています。

特に問題なく動作しているのですが、過電圧(入力レンジオーバー)がかかると、PCIe-6321がフリーズしてような

状態になり、パソコンを再起動しないと次へ進めない状況になります。VB6のプログラムは動作継続しています。

そのようなことってありますか?また、PCIe-6321がフリーズするような状況はどんな場合にありえますか?

 

仮に、上記のような状態になった場合、VB6上からリセットするようなAPIはありますか?ご教示をお願いします。

Viewing all 6881 articles
Browse latest View live


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