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

Virtual Instrumentation using NI USB 6009

$
0
0

Hello,

I am working on creating GUI for virtual Instrumentation of electrical systems using Qt for my final year project. For this purpose I am using NI USB 6009 DAQ. Can anyone help me regarding how I can access the signals obtained from DAQ in Qt. I am using NI DAQmxBase API for creating task and I also included NIDAQmxBase library in Qt. This point is very much required for my project.

Thank you.


how to draw a DAQmx diagram to generate pulse to rotate a stepper motor with USB-6001 in Labview

$
0
0

I have lack of understanding of DAQmx, so I have hard time to make VI to rotate a stepper motor with USB-6001. I think I make base VI but I don't know how to set the DAQmx in my diagram. how many DAQ create should be in the diagram. Could somebody help me?

Measurement and Automation Explorer Error

$
0
0

Untitled.pngHello. 

Greetings everyone.

I encountered this problem while using MAX.

How do I resolve it?

I am using LabVIEW 2011 and MAX version 5.0.

Thanks.

Triggering and data streaming for two different PXI devices

$
0
0

Hello,

Here are the details of the system I use:

Chassis: NI PXIe - 1071

Controller: NI PXIe-8820 Embedded controller

First Device: NI PXI  - 5922 Oscilloscope ===>Dev1/ai0:1

Second Device: NI PXI  - 4462 ====>Dev2/ai0:3

I also have the SMB 110 cable with me.

For data acquisition, I use Python 'nidaqmx' package.

My aim is to read the data from these two devices at the same time.

 

I have two questions:

1. Is it possible to use SMB cable for the above mentioned two devices for external triggering. If not, are there any other alternatives I am left with?

2. Is data streaming possible for this devices for the system specifications I mentioned above..?

The code is as follows:

with nidaqmx.Task() as task:

        task.ai_channels.add_ai_voltage_chan('Dev1/ai0') 
        task.timing.cfg_samp_clk_timing(Samples_Per_Sec=10000, source="",                                             active_edge=Edge.RISING,sample_mode=AcquisitionType.FINITE,              

                samps_per_chan=10000)
        data=task.read(samps_per_chan=10000)

 

 

Typically, I do know that the two devices of the same type triggered automatically. But I suppose its not true for two devices of different type. 

For ex: If I try to change my above code using both devices

with nidaqmx.Task() as task:

        task.ai_channels.add_ai_voltage_chan('Dev1/ai0,Dev2/ai0)
        task.timing.cfg_samp_clk_timing(Samples_Per_Sec=10000, source="",                                             active_edge=Edge.RISING,sample_mode=AcquisitionType.FINITE,              

                samps_per_chan=10000)
        data=task.read(samps_per_chan=10000)

 

I get an error saying "One or more devices do not support multidevice tasks".

 

Thanks,

Swapnil

 

 

 

Why does DAQmxGetDevAOVoltageRngs return 4 values ?

$
0
0

Hello, hello,

when I query the range of an analog output card, I always get 4 values in return:

DAQmxGetDevAOVoltageRngs(Device, data, Nb)

data[0]=-10, data[1]=10 as it should be, but why is Nb=4 ?

And for years I had data[2]=data[3]=0, but now they are both garbage, data[2]=1e195, data[3]=6e-304

Is there a reason for that ?

 

And the same thing happens on an analog input card. For ref, the cards are NI 9215 and NI 9263

Thanks

DIGITAL CHANNEL EXPANSION

$
0
0

I am using multiple pxie-6368 cards and would like to either read or write data with a common task. I'm getting error that device doesn't support a common task. 

I can read AI across multiple cards with common task. Is this ability limited to AI only ?

Is there a method I can use to read or write digital data across multiple cards ?

 

Thanks

VB-8012 niVB_Dig_Initialize function usage

$
0
0

Does using the below function configure digital line 6 as output or input ?

niVB_Dig_Initialize(niVB_LibraryHandle libraryHandle, "VB8012-3104586/dig/6", true, instrumentHandle);

 

Is my understanding correct that, the channel becomes available as input by default?

And if niVB_Dig_Write(..) is used to drive it, it gets configured as output?

 

 

Measuring Noise of 24 volt power supply

$
0
0

I am trying to use a NI USB-6002 DAQ to measure the noise produced by a number of different 24 volt power supplies. The NI USB-6002 DAQ is only able to measure about +10 to -10 volts so I am thinking I need to use a voltage divider. I setup a voltage divider using four 5.1 MΩ resistors but I was getting a LOT of noise.

 

I simplified the circuit to use a 9 volt battery and only one resistor (as shown in the image below) and I was still getting about 550 mv difference between the maximum and minimum voltages over a 1 second period (i.e. noise). I am sampling 1000 times per second and have tried using RSE (single ended) and Differential modes.

 

 

image.png

 

If the resistor is removed, there is only 1 or 2 mv of noise.

 

We noted from the DAQ's datasheet that the Input impedance is >1 GΩ but I don't really know what that means.

 

Can you please let me know what I am missing? I don't think I should be getting practically any noise from a battery and a resistor. My end goal is to measure the noise of a number of 24 volt power supplies.

 


VB-8012 niVB_Dig_Initialize function usage

Accessing clocks across cDaq modules

$
0
0

I am trying to synchronize tasks across different cDaq modules.  When I have done this on previous daqs (with a USB-6343) I have done this by choosing a master task and setting the other tasks' sample clock to be equal to that tasks' sample clock.  However currently I am trying to synchronize an analog output task (on a ni-9264) and analog input task (on a ni-9220) and this method is not working.

I am trying to set the analog input sample clock to the analog output sample clock but I get the error:

<Message: Source terminal to be routed could not be found on the device.

 
Make sure the terminal name is valid for the specified device. Refer to Measurement & Automation Explorer for valid
terminal names.
 
Property: NationalInstruments.DAQmx.Timing.SampleClockSource
Property: NationalInstruments.DAQmx.Timing.SampleClockActiveEdge
Source Device: cDAQ1Mod1
Source Terminal: ao/SampleClock/>
 
Is it not possible to link across devices like this?  If not is there an accepted way of synchronizing tasks across different modules of a cdaq?
I'd really appreciate any advice anyone can provide
Adam

DAQ Polynomial Scales - forward vs reverse coefficients

$
0
0

Does N.I. define forward coefficients only for analog inputs and reverse for analog outputs? According to the documentation, FORWARD coefficients are used to transfer pre-scaled values to scaled values and REVERSE is the opposite, scaled values to pre-scaled. However, I'm not sure how N.I. defines "pre-scaled" and "scaled". I was trying to scale an analog output but it wasn't working until I copied the forward coefficients to the reverse (the reverse had been initially set to unity gain and zero offset). From my point of view, the digital value prior to the D/A is a "pre-scaled" value. Apparently "forward" is only for AI and reverse for AO, which would explain why there is no method to choose which coefficients to use on a particular I/O transfer. 

how to bumplessly switch between two control signals?

$
0
0

This may not be very closely related to labview or ni but I just wish I could get some insights here. I have a labview program which sends current signal through a ni usb device to control the speed of a motor. Originally, this motor is controlled by manually pushing some physical buttons. So how can I switch between the two control signals (1.from labview, 2. from buttons) so that there won't be any gap between the switch? I want to accomplish this because if the control signal drops to 0 at some point, the driver may get damaged. Any advice is much appreciated!

How to comunicate a Differencial Transmissor and a DAQ?

$
0
0

Hey guys, i have a transmissor PX5200-040WUDI (transmissor of differential pressure) and three DAQs, but, i don't know integrate/comunicate the both (DAQ and transmissor), the DAQs which i have here is NI 9208, NI 9403 and NI9213.

How to comunicate a Differencial Transmissor and a DAQ?

Different voltage measurements from various NI devices, why?

$
0
0

I'm getting stable, noise free, voltage readings from an NI-9219 but noisy readings of the same signal using PCI-6251 and USB-6221. Been fighting this problem for days. I'm about out of ideas. Please help.

 

The noise is not small. The measured signal has a normal range of +/- 10 volts. The noise level is several volts for both the 6251 and 6221. Noise is virtually non-existent with the 9210. The measured signal is coming from a BNC output on a material testing machine. (The signal represents force.) 

 

I have attached a tee connector to the BNC output of the machine. The tee divides the signal so I can attach two NI devices at once. The 9219 readings are rock steady but the other two devices are all over the place while measuring the same signal at the same time.

 

One difference in the NI devices is the multiplexer. The 9219 has no multiplexer. The 6221 has a multiplexer. Not sure about the 6251 but I feel sure it does.

 

I need to get stable readings from the 6251 because it's part of a third party system. I can't use the 9219 instead.

 

Any ideas?


Lead-Free Control Plan

$
0
0

Does NI have a Lead-Free Control Plan created to GEIA-STD-0005?  Searching manuals for lead-free returns multiple mentions in manuals that when replacing relay use SAC solder because it's a lead-free board.  Lead-free solder is used but is there a Lead-Free Control Plan?

LVDT measurment with NI 9237, No supported devices

$
0
0

Hello everybody,

 

My task is to measure the displacement using NI 9237 module and the 

cDAQ9184.

After cabling the LVDT sensor to the NI 9237 Module, I ve created a task using 

NI Max. 

My problem is that when trying to set the input Physical Channel it is always empty (No supported devices found), and I didn't understand the main cause of this.

 

If somebody have an idea about this, I'll be very grateful if you share it with me Smiley Happy

I have attached a capture for this. 

THank you in advance, 

 

Tania,

How to control SSRs using NI9264?

$
0
0

Hi, all
I want to control 18 SSRs (CSW-2410) using 2 units of NI-9264.

But, I could not output voltage correctly. For example, measured voltage is about 2.8V even though I connect NI-9264 to SSR and set 10V. 

This is final problem I have. Does anyone have a good idea?

Thanks

PCB Mountable Connector (NI-9202)

TDMS file play on analog channel DAQ 6353

$
0
0

Hi!

 

I need to play an TDSM file on an aanalog channel on DAQExpress software.

Does anyone know, where I can get started?

Viewing all 6889 articles
Browse latest View live


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