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

Analog signal acquire slowly gets out of sync

$
0
0

Has anyone seen this issue with M-Series DAQs?  I am using a digital edge trigger and the signal skews after running it for hours.  If I close and reopen the DAQ it is fine.  The latest out of sync happened after 4-hours of running continuously.  1K samples and 1K sample rate.

Suggestions?

AnalogSyncIssue.png

 


Laptop shuts down after installing an NI product and rebooting it.

$
0
0

Hey everyone,

 

I just wanted to share a problem I faced this morning. After installing the NIDAQ1700 package and restarting the computer, it decided to turn on the fan to 100% and then completely shutdown itself after 5-10 seconds. That problem kept on coming up with the next several times I started the computer. That was a little scary. After some troubleshotting, I figured out that the problem was caused by the "NI Device Monitor" or the "National Instruments Registration Wizard" program, because after I deactivated it from autostart, everything went normal again. I know this isn't the right forum to share this, but I couldn't find the right one.

Displaying 1000 S/s data without affecting speed of display

$
0
0

I want to collect the data at 1000 samples/sec for at least 6 minutes using DAQ assistant and writing the data to a .lvm file or .txt file which I am able to do correctly. Then later on using another code on LabVIEW I am reading the 6 minutes of data to process it further and play it on front panel while collecting the real-time data. I am storing the 6 minutes read data and the current data to .lvm file or .txt file. When I am trying to do this the display of the data is becoming really slow. But the data is correctly written to the file. How to avoid this problem. I know that if I compromise on sampling rate I can get over this problem. But is there any way to get over the problem without changing the sampling rate. 

 

Thank you in advance.

 

 

Taking out offset between real-time and already recorded data

$
0
0

I want to display two signals on one screen. One would be displayed from left to right and another one from right to left. My question is I want to match both the signals. One is already recorded signal which is fetched from .txt file and another one is collected in real-time. I am able to achieve the problem which I have described. But my problem is, I am not able to take care of the offset between the two signals. Anyone has any idea of how to take care of the offset between the real-time and already collected signal and bring them to an almost same y-axis position.

 

Thank you in advance.

 

 

X series pcie card driver for Simulink Real-Time

$
0
0

hi, good time

 

i try for 3 week to write 6343 pcie ni cart driver, for matlab simulink real time(slrt).

 

i begin very simple function digital out for starting. matlab R2015b slrt not support x series ni cards but there is lot of m and e series driver for use.

 

i use 6229 pci driver for template to write 6343 pcie Because of their similarity 

 

in DO i change this reg (board bar 1 ->0 , Static_Digital_Output 24 ->4 Static_Digital_Input 24->0  DIO_Direction 28->8  in hex)

but function not work

 

matlab slrt diver use s function ( c language) 

 

what wrong ?

 

thanks

ni daqmx python - how to get channel configuration

$
0
0

Hi, I wanted to know what is the channel configuration (diff, RSE, NRSE) of the channel I'm working, 'Dev1/ai0'. I want to do this all in python.

On the documentation under the nidaqmx.task.ai_channel there is something called ai_term_cfg

so I suppose thats how you get it, but I don't understand how you use it. I supose you have to create an instance of: nidaqmx._task_modules.channels.ai_channel.AIChannel(task_handle, virtual_or_physical_name), but I don't know what task_handle is, and I've looked a lot a didn´t find anywhere explaining it.

Thank you

 

Lost trigger in specific conditions

$
0
0

Hi all, 

I lost a trigger in my configuration using Ni 660X cards as a trigger generator and counters

 

I have a trigger pulse generator configured to raise a pulse rain with the follow configuration.

SampPerChan = 7502

HighTime = 0.029990625

LowTime = 2.5E-6

 

The counters (5), have been configured as Buffered Pulse With Measurement and 7502 as a samples per channel.

 

The point is that with the previous configuration the counters takes 7501 counts instead 7502, I have counted the triggers with a oscilloscope and the triggers as expected (7502).

If I change the samples per channel to 10000 for example, the setups works fine.

 

Any Idea?

thanks!

 

cDAQ-9132 Wi-Fi add-on

$
0
0

I am using five cDAQ-9132 to measure and log data. Previously, I have successfully connected to the web on a single cDAQ by using a static IP modem plugged into the ethernet port. Since I have now expanded to five machines, I would like to use a single modem connected to a wifi router to distribute internet capability across multiple cDAQs wirelessly. 

Does this sound possible? I have a feeling cDAQs are not compatible with typical USB-Wifi adapters. But what about a Wifi to Ethernet bridge? Since the cDAQ would just see it as an ethernet connection, this seems like it might work. 


Analog Fast Steering Mirror Controller

$
0
0

Hi 

I have an analog fast steering mirror controller and a NI PCI 6221 card. I am trying to control the x-axis and y-axis, so i can use it to scan anything. The file is my code to generate the signal and introduce to the x+ command on the mirror controller, but it seems like the mirror controller doesn't get the signal. When I use oscilloscope to read the voltage is only like 8 mV. I am not sure is my code wrong or my connection. Below is how i connect the NI PCI 6221 card to my mirror controller. 

(Connect the DAC0 output to X+ command, DAC1 to Y+ command.  Connect X- and Y- command to DAC ground.
Connect X & Y position out to Analog inputs.  Connect Analog ground to FSM ground (any pin))

PCIe-6320 Atuostop a task

$
0
0

Help,

 

I have a PCIe-6320 and I am trying to create a task that will autostop after a specified time in microseconds.  I see the card has a 10 ns resolution, but all the timing functions I see are about finding the time between analog signals.  Can anyone help me? 

 

Claude

How to acquire multiple digital data to LabVIEW in the same time?

$
0
0

Hi everyone!

 

I am now using PCI6221 and Labview 2016 to acquire multiple digital data from outside circuit. I hope to achieve the goal of acquiring data in the same time, but in the examples I find the example of continuous digital input and finite digital input will not support PCI6221.

 

So Does PCI6221 can achieve the job? How to deal with this problem the devices?

 

Thanks a lot!

 

Best,

Jason

Static DIO - PXI 6341

$
0
0

I am new to PXI's and I am studying the same. Can someone explain me static digital output (PXI 6341) and it's voltage specification.

USB 6001 how to set analog output voltage

$
0
0

I am using the DAQ assistant and want to do something vewry simple (set the voltage). 

 

When I select ao0, I am given a choice of waveform (sine, square or triangle).  There is no none option.  If I try to set the minimum equal to the maximum I get the following error:

 

 

Possible reason(s):

Minimum is greater than or equal to the maximum. Ensure the maximum value is greater than the minimum value. If using a custom scale, ensure that the scaled maximum is greater than the scaled minimum.

Property: AO.Min
Corresponding Value:  3.300000
Property: AO.Max
Corresponding Value:  3.300000
Channel Name: VoltageOut

Task Name: _unnamedTask<4>

 

How do I just set the analog output to 3.3V?

 

Vacuum Solenoid Valve Control

$
0
0

Excuse me as I am fairly new to Labview and my background is in Computer Science, so hardware is not my forte.

I designed a Labview Program that will open and close a valve to a vacuum pump to simulate an object leaving earth's atmosphere. I need to figure out if opening and closing this valve would need to be analog or digital and how to determine if a solenoid is compatible with LabView.

 

The engineer suggests a valve that alternates opening and closing rather than opening and closing partially, which leads me to believe that it would be analog input.

USB-6361: generating square waves on analog output, problem with duty cycle

$
0
0

Hello,

 

i want to control a gate driver for MOSFETs and therefor i need square pulses on the two analog outputs. I am already generating two square waves (low: 0V, high: 10V) with a frequency up to 10kHz, the second one has a delay of 180 degree.

 

With the settings you can see in the screenshot, i get a frequency of 10kHz. The problem here is the variation of the duty cycle. In this case i can only set three values: 0%, 50% and 100%. 1% already gives me a duty cycle of 50%, everything >50% gives me 100%.

This continues with lower frequencies. For example when i have 1kHz, i can only do 5%-steps.

 

Everything is measured with an oscilloscope. Hope there are some ideas for me.

 

Best regards,

Patrick


How to configure one or multiple NI 9178 with modules?

$
0
0

I usually drop a "DAQmx device" control, let him have the value "cDAQ1" or DAQmxSystem.DevNames[0]  (that is the first cDAQ found in the system, at the moment of the call of the property node).

 

From there I just append strings like "Mod1/line0" , or "Mod2/line0:3" , to get to my module and then call the appropriate VI to read/write.

 

I use NI 9178 usb as chassis, then 4x NI 9435, 2x NI9472, 1x NI 9221 and 1x NI 9263

 

Almost always I have only 1 chassis connected, but for some product tests I must connect 2 of them

 

My questions are:

 

  1. Are there "best practices" or better methods to address my modules? should I wrap DAQmx VIs? should I use MAX configuration? I develop test software, so end result is exe file, and the software is deployed and used to 10 PC in production line.
  2. If I use 2 chassis, with different modules into them (for example one has 8 modules, the other has only 3 modules), how can I differentiate them? How can I refer to one of them? how can I say to the user "cDAQ1 is the one with ....", and cDAQ2 is the other?
  3. How can I make configuration invariant? Chassis are automatically named cDAQ1, 2, 3... as soon as they are connected to the computer the first time. So the same chassis can be called "cDAQ1" on one computer but cDAQ3 on another just because that PC saw two other chassis before.

Analog Output Optimized Driver/Buffer/Inverter/Non-Inverting Amp Op

$
0
0

What would be the best implementation for NI DAQ buffer/driver for a generated sine wave?

I see a lot of circuit implementations for AIs, but none for AOs.

 

I will use my setup as an example:

FPGA 7853R has an impedance of 0.5ohm for analog outputs.

The generated signal is a sine wave (~3KHz) and it can be inverted.

The connected circuit is susceptible to low voltage variation (1 mV) (let's assume the FPGA AO's tolerance to be ±0 for this thread).

 

From the information that I gathered:

A feedback resistor should be the same as the source impedance (Inverter and non-inverting)

Inverting divers are better for low impedance input and non-inverting for high impedance input

 

From my analysis, it seems that the an inverter with a 0.5ohm resistor would be the best implementation (#1).

 

I MS Painted a few possible implementations that came up while researching:

Analog Ouput Buffer.png

NI PCI 6259 Number of Analog Output Channels

$
0
0

Hi.

 

I have NI PCI 6259 connected to BNC 2110. I need to use 4 analog output channels. Only two (AO0, AO1) are working. What should I do to use the other two?

 

I tested generating DC signal with a simple labview VI, and also with NI MAX. The output voltage of AO2, AO3 were zero. The switches on the BNC terminal block were on FS.

 

High slew rate of level change when charting a boolean level change

$
0
0

Hi Folks,

 

I`m an extremely new user and would like soome help figuring out why the slew rate when charted of a boolean level change is so high? If i wire a switch directly to a chart graph or if the output from my greater that decision changes state it seems to take a fixed time. I appreciate that noting happens instantly but the rate of change when compared with my analog input sqaure wave seems to take an age. Please review the block diagram attached and the front panel display. The triangles on the BeamON display chart illustrate the issue when compared against the Linac BeamON chart.

 

Any help greatly appreciated.

 

Thanks

 

Willie

NI-MAX and custom scale

$
0
0

Using a NI 9209 to measure voltage which represents pressure.

 

Voltage should be between 0 and 5.

Pressure is between 0 and 200.

 

 

I created a Custom Scale in NI-MAX where slope m = 200/3.52 and b = -176/3.52

I created a Task in NI-MAX to use the custom scale.

 

When viewing the Task, what should I have as values in the Signal Input Range's Min and Max boxes?  I have Min = 0 and Max = 200.

Viewing all 6885 articles
Browse latest View live