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

NI USB - 6218 and Load Cell

$
0
0

Hello Everyone,

I have the NI USB-6218 Multifunction I/O and I am trying to connect it and test 2 load cells. After connected, I am using the NIDAQ Express but I cant select the Force (Bridge) Input  but just voltage.

While I am applying load, I can see only a small difference in the voltage. I have tried changing the scale of the axis but still the same..

What would you suggest? I am connecting the Load Cell with a DC power supply and then the white and yellow cable to the DAQ and the DAQ via USB to the computer. Do I need to do something? Do I need to connect also the DAQ with a power supply?

Regards,
Alexis


Semi period and state measurement

$
0
0

Hello,

 

Is there a reliable method to measure semi-period (time) of digital signal and its state (0 or 1)? 

I am using Counter CI-SEMI-PERIOD but this gives me only a time. I am "controling" the state knowing only starting edge, but I am not confident my program will not desynchronize at some point. I would like to have information about state directly from mDAQ together with time.. 

 

Thanks in advance. 

NI 9402/cDAQ9185 How to dynamic change a dutycycle of a fixed frequency output

$
0
0

Hi.

I have a NI 9402 were I need to dynamically change the dutycycle "on the fly" on a predefined digital output frequency (up to 2kHz).

 

Is this possible with a cDAQ or will this require a cRIO solution?

Synchronize 2 DAQ 6353 USB

$
0
0

In the past I used 2 NI DAQ 6353 PCIe boards synchronized by a RTSI cable and the setup I used to configure the RTSI in MAX. I used to control AI and AO from both cards.

I replaced the PCI boards with 2 USB 6353 boxes.

How can I ensure the synchronization in case of these 6353 USB boards? Can I use the same code of AO and AI channels for current USB 6353 boards as I used for my application when I had 6259 PCI cards?

Please provide me with schematics of physical connection for making sure the synchronization is ensured for the USB boards.

 

Thank you,

Virginia Solomon

PCI 6259 数字输出与模拟输入同步

$
0
0

我现在需要利用采集卡的port0 输出数字信号,然后我会收集ai0的模拟输入信号。在这个过程中,我希望数字输出与模拟输入同步,保持1M/s的频率。是不是应该单独设置计数器ctr0作为触发信号,请问这个过程应该怎么实现?

Set up a basic NI system for Data acquisition for measurement and analysis

$
0
0
Hello Guys,
We have an embedded system comprising of an array of TI C200 MCU processors controlling BLDC motors, which(TI C200 MCU processors) in turn receives command from a Microchip processor on CAN Bus.
 We have
   - The processors running on ~4.6 V, +20 mA
   - The motor actually operates on ~500V, +5A which interfaces with the Microcontroller using a Power Module.
   - Hall sensor, Heat sensor and Phase Direction Sensor and drive current sensor input to the TI C200 MC
What we are looking for is to set up a basic NI system for Data acquisition for measurement and analysis purposes for which, this is what I came up with:
   - Part#785040-01: NI 9207 Spring, 16-Ch voltage/current, 24-bit, 500 S/s AI module
   - Part#783338-01: NI CDAQ-9132 NI CompactDAQ, Atom 1.33 GHz ,16 GB, 4-Slot, Windows
   - Part#960680-100: NI Standard Service Program for Hardware (Duration of 3 year(s) for PN 783338-01)
   - Part#781093-01: NI PS-15 Power Supply, 24 VDC, 5 A, 100-120/200-240 VAC Input
   - Part#157253-01: Panel Mounting Kit for 4-Slot cRIO-903x/904x/905x and cDAQ-9132/9134
   - Part#778806-35: DIAdem Base, Perpetual License, Download
Now, the help I need from you guys is to confirm
Hardware:
   - If CompactDAQ is the right choice compared with CompactRIO considering we are not having any intention of controlling the devices but to collect data and perform analysis
   - If the selected configuration is good w.r.t. installation category
   - Do we need additional signal conditioning
   - Do we need any other accessories for the setup
Software:
   - I already have LabVIEW Professional Development System Software License, do I need anything additional to be able to set up the NI Data Acquisition System.

Plug in cDAQ moduloes not located with Measurement & Automation Explorer

$
0
0

I am running a Labview project with a cDAQ chassis for data acquisition connected through ethernet on a local network.  When I used Measurement and Automation Explorer to see my devices, the chassis shows up under network devices, but the two modules plugged into the chassis do not (NI 9201 and NI 9862).  These devices have shown up in the past, but even though the status of the chassis is listed as running, I cannot take any data.  I have run this program in the past and this problem has never occurred before.  The modules showed up in their slot numbers and I could run a self test and all was well.  Now even when I start a blank VI and try to configure data acquisition via the DAQ Assistant, I can click on acquire signals/analog input/voltage but then it says it is reading system configuration so a physical channel can be assigned and to please wait, but it never does come back.  When I look at the DAQ assistant input from my existing program the physical device to read the data from is cDAQ9188-19xxxxx Mod1/a1 which is where the connection to the NI 9201 module is located for my transducer.  It now says the device is not present.  I reset the cDAQ chassis but it did nothing to remidy the situation.  Any ideas?????

How can I use two Analog Input channels to do synchronous sampling with PCI-6154?

$
0
0

I need sampling two channels of analog signal using the ADC on the PCI-6154. As we know, PCI-6154 has four channels analog input. However, I can't sample through the ai0/ai1 port  in the mean time. 

 

The time sample data from ai0/ai1 is different and the wavform separate in the time axis. 

 

Can the PCI-6154 do synchronous sampling from two analog input channel? How can I do that? Please give me some tips.

 

 


cDAQ DAQmx Analog Output Waveform change of data is very slow

$
0
0

Hello there,

I am using a cDAQ 9189 with a NI 9263 outputting analog voltage waveforms (sine waves). The software we are using is self-written in C++ using the DAQmx C library.

 

The user of the software is supposed to change some parameters of the sine wave. The update of that should be as fast as possible. But with the way, I implemented it needs several seconds to take the new values over. I am using the following code to initialize and write to the AO port:

//Init
DAQmxCreateTask("OscillationTask",&oscillationTask);
DAQmxCreateAOVoltageChan(oscillationTask,NIDaqAdress[0].toLocal8Bit().constData(),"",-10.0,10.0,DAQmx_Val_Volts,NULL);
DAQmxCfgSampClkTiming(oscillationTask,"",numSamples*f,DAQmx_Val_Rising,DAQmx_Val_ContSamps, numSamples);
DAQmxRegisterDoneEvent(oscillationTask,0,DoneCallback,NULL);
//Create data
int numSamples = 1000;
int phaseN = 0;
int i = phaseN;
QVector<float64> dataRef = QVector<float64> (numSamples);
int PI =3.1415926535;
double offset = 0.;
            for(;i<(numSamples+phaseN);i++){
                dataRef[i-phaseN] = amp*sin((double)i*2.*PI/numSamples)+offset;
            }
//Write data
    float64     data[100000];
    memcpy(data, dataRef.constData(), numSamples*sizeof(float64));
DAQmxWriteAnalogF64(oscillationTask,numSamples,0,10.0,DAQmx_Val_GroupByChannel,data,NULL,NULL);

//When I want to change something I use again:
DAQmxWriteAnalogF64(oscillationTask,numSamples,0,10.0,DAQmx_Val_GroupByChannel,data,NULL,NULL)
//It is executed super fast but takes several seconds to see a change at the output

The last function is used for changing the waveform during runtime. It is working fine but needs several seconds to see a change at the analog output. Do somebody maybe have an idea how to optimize this?

 

Best 

Florian

 

Program to replace SignalExpress 2015

$
0
0

Looking for suggestions regarding the best program to replace Signal Express. We currently use Signal Express 2015 for data acquisition using mass termination device USB-6212. We are collecting voltage measurements for basic physics experiments.

controlling 10k ohm digi pot ic using usb 6001.

$
0
0

Hi all,i am totally new to the daq system; used to work on arduino.For the requirement of a project i have to control a digital potentiometer of 10k ohm(AD5245) using USB 6001.I have no idea how do i proceed using labview. Is there any library that i can use to communicate and control the digi pot using 6001?

Thank you all in advance

NI 9264 - What is the use of NC port?

$
0
0

HI,

 

What is the use of the 4 NC ports available in the D-SUB model of the NI 9264 module?

Is it used to isolate sections of the output ports? Kindly explain what its intended function is and If a need to connect it to anything if I am to connect a valve or an MFC to the module.

 

I'm new to the NI world and not that familiar with NI modules and Labview yet. (neither am I an Electrical/ELectronics Engineer) So pardon if its a trivial question.

HW suggestion for 48 analog inputs (SE) at 32KS/s per channel

$
0
0

As far as I can tell there isn't a single board that does this. Is there a way to use two boards perhaps and how can I make sure they stay in sync with one another?  

NI 6321 card- Input signal to modulate Output signal

$
0
0

Hello All,

 

I am new to this Labview, but I see quite a lot of help and experts available on this forum. 

 

I have a 6321 PCIe card, to take an input voltage signal TTL (5 Volt fixed) or a triangular wave function (shown top figure as Input timing for the output signal), I would like to use this TTL timing to modulate my Analog output signal (ranges from 0-2 V). 

1-  I would like to keep my output signal delay from input signal both ends of the Input signal (indicated by dotted vertical lines).

2- Delay something I can change.

3- Output voltage amplitude levels can be changed (indicated by bottom gray blocks).

4- I can't use NIDAQ MAX driver since its been used by other control software.

 

Please advice, and let me know if the questions are not clear or need further details!

 

Thanks,

Anand Singh

 

 

 

 

 

Support of CDAQ-9181 in Linux?


Single Sample N-channel AO Write from Buffer when Triggered

$
0
0

Hi everyone.

 

In brief: How can I synchronously iterate through an N-channel AO write buffer, one sample per channel at a time?

 

I have been working on this design for a month or two now and have run into an issue I cannot find a solution to.  I think it is time to ask the community for some help.  I have listed some system specifications at the bottom of this post, in addition to attaching the relevant block diagrams for the photodetector input VI (thorlabs_pd_readd.png) and galvo output VI (galvo-write_hwd.png).  Also, this is more of a conceptual LabView question, but since the goal is HW oriented I posted this in the Multifunction DAQ forum (moderators, feel free to move it if there is a better location).

 

This system will control a multi-modal microscopy setup for looking at biological samples.  It consists of different imaging modes, one of which being a laser raster scanner with a 2-axis galvo (AO x2) and photodetector (AI x1).  The goal of this design is to have the scan time not be limited by the software.

 

The ideal process is as follows:

  1. LV generates the raster scan pattern, in the form of two arrays, based on user inputs (not shown in diagrams)
  2. Entire pattern is written to DAQ buffer and waits for trigger
  3. Photodetector triggers galvo to move to first position, using counter pulse output PFI2 (ctr1 out), and waits to sample
  4. Galvo moves and triggers PD to sample using PFI7 (ctr0 out)
  5. PD samples and triggers galvo to move
  6. Repeat 4 and 5 until all samples acquired/written

This is the desired process, which has not been realized yet.

 

My attempts so far (highlights of the many iterations I have gone through):

  • Initially I experimented with configuring the galvo_write task sample clock source to be the PD trigger (PFI2).  The arrays were buffered to the DAQ but the system would hang after only a few samples because (I assume) triggers were being missed.  I also believe that this configuration makes the galvo asynchronous, which is not ideal.
  • In order to get the system up and running, I created the attached VIs, which use a SW controlled loop to write one sample at a time.
    • Configuring the galvo_write sample clock for hardware timed single point works for the first few dozen writes, but errors out as the SW cannot keep up (error -209801).
    • Configuring the galvo_write sample clock for finite samples results in error -201025, non-buffered HW timed operations not supported.  I don't understand this error, why does it think this is HW timed?  (re-configuring the task as a buffered write, yields another error I can reproduce if requested)


I have spent a decent amount of time looking for help online, including the NI community and various NI courses (LabView Core 1-3 and Data Acquisition Using NI-DAQmx and LabVIEW), but have yet to find a solution.  At this point I am out of ideas and would appreciate any guidance or comments from those more skilled than I.  Thank you all in advance.

 

Specifications:

PCIe-6353 - DAQ

PCIe-6738 - AO VC

GVS012 - 2-axis galvo

LabView 19.0f2

DAQmx 19.0.0f0

Windows 7 Pro SP1

 

VIs:galvo-write__hwd.pnggalvo-write_hwd

 

thorlabs__pd__readd.pngthorlabs_pd_readd

 

pinout of the usb6001 card

$
0
0

HI, 

I am trying to find the pinout of the usb6001 card. Not the pinout of the terminal with the screws but the pinout of the 34 pin flat ribbon connector on the card.

Thanks

USB-6211 problem with AI and AO synchronization

$
0
0

Hi all,

 

I'm working on raster scanner project using NI USB 6211. 6211's AO controls galvo XY scanner and AI reads voltage from detector. I would like to synchronize my 6211's AI and AO (2 channels) clocks, which works fine. AI doesn't retrieve any data until AO starts and once it starts, I think they are sync'ed in sample rate. The problem is, when AO starts, AI read starts late about 1/3 of cycle. Is there any way to add delay to AI task (I can throw away the first cycle and get sync'ed from the next cycle)?

Or is there better way to implement this? I get feedback position from galvo scanner, which is very low and very noise analog signal. I'm not sure if I can use this as AI's trigger signal. 

 

Thank you in advance.

Synchronizing multiple 7851/52R's

$
0
0

Hi,

What is the simplest way to synchronize multiple 7851/52R FPGAs on a 1062Q chassis? I see CLK10 and several trigger lines TRIG0-7. My application is pretty simple, I would like data acquisition to start simultaneously on analog input AI0 on each card. It would suffice for synchronization skew to  < 200 ns.

 

Is it just a matter of setting TRG0 high with FPGA#1 and reading it on FPGA#2? I presume that there is no buffering of the trigger in an 8 slot chassis. What is the difference between using CLK10 and the trigger lines for synchronization? Which is preferred?

 

Any advice would be appreciated.

synchronize PCI 6221 to a 10 MHz exeternal clock

$
0
0

Hello,
I am looking to synchronize a signal generator and a PCI 6221 DAQ card. The signal generator can generate a 10 MHz clock or accept an external reference Unfortunately the lock-in range of the PLL on my signal generator is too shallow and cannot synchronise with the 10 MHz clock generated from the DAQ card. So, I want to try the opposite (use the signal generator clock as a master to sync the DAQ card).
Is it possible to use a 10 MHz signal to synchronize a DAQ card? I am thinking to use the RefClk.Src node property to sync the two device and send the clock from my signal generator to one of the PFI input but I don’t find information on the shape of the signal I should set to the PFI input (the signal generator output a 10 MHz square wave between +/- 0.5 V).
Is there a proper solution to synchronize the two devices?

 

Thanks,

Viewing all 6882 articles
Browse latest View live


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