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

cDAQ 9185 network error recovery

$
0
0

I'm trying to add automatic recovery from network errors to my application (just in case). I'm creating the errors simply by unplugging and re-plugging the Ethernet cable on the cDAQ-9185. The device is directly connected to my computer using a static IP.

 

I'm reading a single TC channel, with continuous sampling. When I disconnect the cable, I get error -201390 from the DAQmx Read. So far good, I can detect the error. However, recovering seems to be difficult. So far I've tried:

 

1. Do nothing, continue reading as if nothing has happened. Reading actually recovers after while and the y-data is correct. However for an unknown reason the timestamp from DAQmx read jumps back to epoch and stays there.

 

2. I read in some forum that resetting the device would help. So I've tried calling DAQmx Reset Device. For unknown reason calling this VI in this situation hangs eternally. I actually need to reboot the Windows to recover. Even Windows hangs at reboot so I need to power off the virtual machine I use for development. I've tried using ping to detect connection to the device before calling the reset. Makes no difference. I also tried calling self test, same behavior. 

 

3. I've tried stopping/starting the tasks, re-creating the tasks (the tasks are created programmatically). I get errors suggesting to reset the device.

 

Is this the expected behavior? Has anyone done this successfully? I have not tried on another VM or computer, also not with another cDAQ device.

 

Unfortunately I cannot share the code at this point. I'll try to create a minimal version for demonstrating the error and post that later.


NI9263 COM ground

$
0
0

Hello,

 

In the NI9263 Getting Started, they say that COM is common reference connection to isolated ground. But what does it mean? Is it the ground or common? And is it connected to the same ground of the cRio frame?

 

Thank you

TimHortons_0-1607704060193.png

 

 

Data Logging Issues

$
0
0

Hello All,

 

I am using USB-6001 for my data acquisition project. I have a current sensor that has following Response time

No filter - 15 millisecond

Low filter - 40 millisecond

Medium filter - 120 millisecond

High filter - 850 millisecond

 

When I configure my sensor to no filter to have quick response time, my 6001 device do no read data constantly. It will read data then turn to zero then again read for few milliseconds and turn to zero. This happens pretty quick. So i do not not get constant data logging.

But as soon as i configure my sensor to low or medium filter (high response time) i get constant data logging.

 

Does this have anything to do with any USB-6001 device's limitation? Is it not rated to pick fast data?

 

Please advice me as I am new with labview and data acquisition.

 

Thank you,

Sid

Register for DAQmx event on module insert

$
0
0

Hello,

I was hoping there is a way to detect when a new module is connected on a cDAQ chassis.

 

Apparently the DAQmx events are just for signals.

 

Basically I'm trying to make a fancier DAQmx Physical channel selector that would autopopulate when a module is added or removed from the chassis. I'm trying to avoid polling the DAQmx properties all the time.

 

Thanks,

Jimmy

DC motor and Driver connected to DAQ NI USB

$
0
0

Hello,

I am controlling a DC motor with the assistance of a driver that I have connected to a DAQ NI USB. I am sending digital pulses to the driver to operate the motor with different speeds, and direction.

So I am just sending to the driver, and I am not receiving/inputting any signal from it to the DAQ. I know the rotational speed of the motor shaft, so if I want to create a csv or excel file with the data of the speed with time, with a sampling frequency 1 KHz, would that be possible? I am using the same code as the link below.

https://forums.ni.com/t5/Example-Code/Controlling-a-Stepper-Motor-Drive-for-Constant-Velocity-with-a/ta-p/3496183

Any feedback or comment is highly appreciated.

-Alex

DAQ using Raspberry Pi and NI cDAQ-9174

$
0
0

Hello community,

 

I am currently working on a project which includes high resolution condition monitoring of industrial maschines using the Raspberry Pi. The NI-cards did a great job so far using a Windows-PC. Now I decided to use the cDAQ-9174 with the Raspberry Pi compute module 3 due to the benefit of portability and costs.

 

I am planning to replace the Windows-PC completely and implement a direct connection between the cDAQ and the Pi over USB. The plan is to create measurement tasks and continuously receive data with the python package nidaqmx. The handling of the date, the storing in a database and the visualization ist also done with python. The python package uses the NI-DAQmx driver in order to communicate with the cDAQ and it already run on Windows. The key for getting it to work on the Pi is the installation of the DAQmx driver! The Raspberry is built on arm architecture and at this point I got several issues!

 

  • DAQmx for Linux does only support x86 64 bit maschines (see readme)
  • DAQmx base for Linux does only support x86 64 bit maschines (see readmee)
  • NI-Linux Device Drivers installs amongst others the NI-DAQmx driver (guess what: only supports x86 maschines)

The question is:

  • Is there any other way to get a connection between the Raspberry Pi CM3 and the cDAQ?

I'm already familiar with the community developed driver for the USB-6008/6009. I didn't got it to work with that.

Would it make sense to emulate a x86 64-bit environment (using qemu) in order to install the DAQmx driver?

 

The Raspberry runs Raspberry Pi OS Lite (32-bit). 

 

I really do not want to include a windows maschine between these two devices and installing windows on the Pi is something I truly avoid.

 

The NI support already replied very quickly but couldn't help me either.

 

Any meaningful ideas or suggestions are welcome and will be tried out!

 

Thanks!

 

Richard

DAQ with Raspberry Pi and NI cDAQ-9174

$
0
0

Hello community,

 

I am currently working on a project which includes high resolution condition monitoring of industrial maschines using the Raspberry Pi. The NI-cards did a great job so far using a Windows-PC. Now I decided to use the cDAQ-9174 with the Raspberry Pi compute module 3 due to the benefit of portability and costs.

 

I am planning to replace the Windows-PC completely and implement a direct connection between the cDAQ and the Pi over USB. The plan is to create measurement tasks and continuously receive data with the python package nidaqmx. The handling of the date, the storing in a database and the visualization ist also done with python. The python package uses the NI-DAQmx driver in order to communicate with the cDAQ and it already run on Windows. The key for getting it to work on the Pi is the installation of the DAQmx driver! The Raspberry is built on arm architecture and at this point I got several issues!

 

  • DAQmx for Linux does only support x86 64 bit maschines
  • DAQmx base for Linux does only support x86 64 bit maschines
  • NI-Linux Device Drivers installs amongst others the NI-DAQmx driver (guess what: only supports x86 maschines)

The question is:

  • Is there any other way to get a connection between the Raspberry Pi CM3 and the cDAQ?

I'm already familiar with the community developed driver for the USB-6008/6009. I didn't got it to work with that.

Would it make sense to emulate a x86 64-bit environment (using qemu) in order to install the DAQmx driver?

 

The Raspberry runs Raspberry Pi OS Lite (32-bit). 

 

I really do not want to include a windows maschine between these two devices and installing windows on the Pi is something I truly avoid.

 

The NI support already replied very quickly but couldn't help me either.

 

Any meaningful ideas or suggestions are welcome and will be tried out!

 

Thanks!

 

Richard

What do these settings mean in NI MAX for 1433?

$
0
0

Hello!

I am trying to acquire one line for each acquisition from my line scan camera(e2v OCTOPLUS).

And, I am confused with some settings in the NI MAX, as shown in the picture.

What do these settings mean?

Thanks.

image20201221.png


Measuring Voltages (>10V) with PXIe-6386

$
0
0

Hello NI-Community,

 

i want to measure Voltages higher then the allowed +/-10V with my PXIe-System. First i tought that i could use the probes (1:10 or 1:100) of an Oscilloscope, this obviously failed since the Input Impedance of the PXIe-6386 is not 1MOhm.

 

Unfortunately i was not able to get my Head around the right way to do this. I am also confused about the Datasheet numbers for the PXIe-6386 (see attached file). This is a device with 8 AI Channels, differential only. So i ecpected to get some input impedance between AI+ and AI- (for each channel).

Also if my input impedance is somewhat >100 GOhm how am i supposed to built an exact voltage divider to measure voltages higher than 10V?

Also if my input impedance changes when the device is switched off, this means that with any error (device turns off) for my measurement system i run into the risk to have hazardly high input voltages at its terminals which may cause it to be destroyed?

 

My System: PXIe-1088 Chassis

PXIe-6386 I/O-Module

PXIe-8821 Controller

SCB-68A Connector

 

Thanks for your help in advance!
Regards

Measuring Voltages (>10V) with X-Series I/O-Module (PXIe-6386)

$
0
0

Hello NI-Community,

 

i want to measure Voltages higher then the allowed +/-10V with my PXIe-System. First i tought that i could use the probes (1:10 or 1:100) of an Oscilloscope, this obviously failed since the Input Impedance of the PXIe-6386 is not 1MOhm.

 

Unfortunately i was not able to get my Head around the right way to do this. I am also confused about the Datasheet numbers for the PXIe-6386 (see attached file). This is a device with 8 AI Channels, differential only. So i ecpected to get some input impedance between AI+ and AI- (for each channel).

Also if my input impedance is somewhat >100 GOhm how am i supposed to built an exact voltage divider to measure voltages higher than 10V?

Also if my input impedance changes when the device is switched off, this means that with any error (device turns off) for my measurement system i run into the risk to have hazardly high input voltages at its terminals which may cause it to be destroyed?

 

My System: PXIe-1088 Chassis

PXIe-6386 I/O-Module

PXIe-8821 Controller

SCB-68A Connector

 

Thanks for your help in advance!
Regards

If I combine NI6218 with DaqExpress to measure noise , what define the bandwidth of the oscilloscope ?

$
0
0

Hello everyone, I have a problem now, if I use the NI6218 acquisition combined with the DaqExpress, I can think I got an oscilloscope. Now that I'm using this oscilloscope to show my noise, how can I determine the bandwidth of my oscilloscope ?

What is expected when channel of NI DAQ is not connected to sensor.

$
0
0

I got a doubt.

When i have not connected any measuring device to NI DAQ. What kind of error or what kind of signal could i expect?

Please tell me. I am having a problem in the same.

Using USB-6001 for encoder counting

$
0
0

Hello,

 

For an application I need to read the count of a differential quadrature encoder (RS-422 line drive). So there are 6 TTL signals (A, A\, B, B\, Z and Z\) . So I need to filter these pairs to three signals (A, B and Z) and count the A and B signal on the edges.

 

I would like to use an USB 6001 DAQ device to do this. The built-in counter of this device is not capable to do what I want. But the device is capable to read 6 digital TTL inputs. My question is: Can I do the filtering of the signals and the counting on the edges in my .NET software which I use to control the DAQ device (using the .NET API for NI-DAQmx). Or will this be to slow?

 

Hope if anyone can help me with this or maybe have an other solution to get the encoder count in my .NET software (PCI cards are too big for the PC I am using, So I need to use an external device)

 

Like to hear.

 

Riekelt

 

NI USB-6001 analog output ignores configured min/max limits

$
0
0

NI USB-6001 multifunction DAQ device configured to analog output single channel and single sample on AO 0 terminal.  Min and Max limits configured during task creation or with subsequent calls to DAQmxSetAOMax/DAQmxSetAOMin are ignored:   generation of updated voltage values exceeding this range happen without any errors that indicate configured limit is being exceeded. 

 

Problem is reproducible using both C-based application as well as LabVIEW.  DAQmx version 20.1, LabVIEW 2018 64-bit. 

 

Same code works as expected (error returned when limit is exceeded) when tested with NI USB-6008 and NI USB-6211.

 

Is there a different sequence of function calls needed for the USB-6001 or is this a DAQmx or firmware bug which needs to be fixed by NI?

 

I don't see a "firmware updater" in NI-MAX.  Is there somewhere that I can go to insure I have the most recent version of device firmware?

 

 

Can I program my mydaq and then have it record data without it being connected to my laptop

$
0
0

what I want to do is connect a small solar panel (or photodiode or something) I have to the myDAQ and have it record the voltage over time. my intent with this is to record the available light through a day to find out if it's enough to be used to control a motor which will draw and close a curtain (hopefully at dawn and dusk more or less)


analog output with external reference

$
0
0

Dear
I hope they are fine
I would like to know if you can help me
I have a device to which I want to enter voltage variations generated by some device
the problem is that this device only accepts voltage signals that come from the same source of voltage generation
since in some pins it generates 7vdc, 5vdc and in some cases it generates analog voltage, which is modulated by the sensors and returned to the system.
Could you tell me what device I could use that allows me to use this voltage signal and be able to manipulate it as necessary?
I appreciate your help

best regards

MTBF/Reliability of PCIe-7820R or similar

$
0
0

Is there any reliability data on this FPGA card, or another one in the series?

 

Thanks.

cDAQ-9185 RSTP Disabling Issue

$
0
0

I've been having issues with connecting a cDAQ-9185 to my network and PC using a LevelOne FSW-0511 network switch. The switch defaults to the cDAQ instead of the cable running to the network whenever the three(PC, network, and cDAQ) are all connected, so I'm unable to use the network while they're all connected. However I'm still able to access the cDAQ and its modules just fine.

 

Searching around NI's documentation here led me to believe the enabled RSTP on the cDAQ is what the issue is. When I downloaded the attached configurator and unzipped to the desktop, the .exe in the folder pops up, loads for a second with a blank window, shows the dialogue for a split second, then closes itself. The cDAQ and NI MAX are running 20.0 firmware and DAQmx is on 20.1. Running the .exe from command prompt has the same result.

 

What am I doing wrong?

 

Thanks in advance.

NI9207 Current Readings with High Voltage

$
0
0

I plan to use an NI9207 to read a low current with a high resolution (at least .1 microAmps). I am trying to read current across a Langmuir probe at a high voltage of -45V. My concern is if whether the module will be able to handle the voltage supplied (-45 VDC) as we read current. Also I went over the spec. sheet to see if I would be able to reach the resolution mentioned above, but I am a little confused about it. I am new at using these modules and thus I am still learning, hope someone can help.

NI-9862 and CANopen

Viewing all 6883 articles
Browse latest View live


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