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

How to use the NI USB-6210 on linux

$
0
0

We're trying to get a USB-6210 working on a current and updated linux, and have been so for a few weeks now Smiley Happy

We have tried with a Scientific Linux 7.5, installed libnidaqmx{,-devel} and ni-visa{.-devel} and a whole bunch of other rpms that got pulled in by deps... ~150 of them...

 

viFindRsrc returns "USB0::0x3923::0x7269::NI-VISA-1002::RAW" amongst a few other things, but we haven't found a way to actually get anything useful out of it.

 

Does anyone have a short C example that actually reads anything useful from the device? Either with the DAQmx libraries or the VISA libraries, or whatever works Smiley Happy

 

BTW, If someone has a solution that works on Ubuntu, that would be even better.

 

 


Can I replace PCI 6133 with PCI 6132?

$
0
0

Can I replace PCI 6132 to my equipment currently use PCI 6133?

 

Thanks

Timestamp for frequency measurement of DAQ chasis NI9871 and unit NI9421

$
0
0
Hi
I'm using chassis NI 9178 and unit NI 9421 and signalexpress.  And I have a RPM sensor which output digital signal (pulse train), I would like to know the frequency of the signal. I used acquire signals ->DAQmx acquire->Counter Input Frequency measurement to measure the frequency. The problem here is that in the log file, it shows only iterations in X.axis, not absolute timestamp. Is there any way to set it correctly to get the right timestamp ? The reason I want the right timestamp is that I have some analog signals which have right timestamp (the X axis is time), and I would like to compare the analog signals with the frequency in the same time field. If the frequency measurement is not the one which I need, is there any other measurement I can use to get the frequency and log with the X axis of time?
 
Any answer or response is appreciate. Thank you for you time!
Mingyuexin

PXIe-6368 Trigger signal question.

$
0
0

Hi!


I am using PXle-6358 daq.

This daq is installed in PXle-1073 and two SCB-68A are used for simultaneous multi-channel measurement.

I try to collect data by receiving a trigger signal on this daq.

I am using the DAQ-USB-6251, which is used by connecting the trigger input signal to APFI 0 (pin 29) and the GND signal to AI GND (pin 30).

I wonder which pin on the SCB-68A should connect the PXle-6358 daq trigger input signal and where to connect the GND signal.

 

 

cDAQ Chassis Power C Terminal

$
0
0

Hello,

 

The user manual for the cDAQ-9185/9189 Chassis says on page 10 that "the C terminal is not connected to chassis ground," referring to the power supply connector for the chassis. This same sentence is included in other documents for the chassis as well. We did a resistance measurement on the C pin and we found that this sentence is incorrect; the C pin is shorted to the chassis ground screw (at 0.2 ohms). We did this measurement on multiple chassis of both the 9185 and 9184 varieties. We even removed the PCB from one of the chassis and the C pin was still shorted to chassis ground. Whether intentional or not, it seems like this connection is present, making the user manual and other documentation incorrect. We did base our design on the fact that the C terminal is isolated from the chassis ground, and now we'll need to do some redesign. Just want to point this out to others to prevent inadvertent grounding in future designs.

 

Can NI confirm that the C pin is connected to Chassis Ground and can NI update the documentation?

 

Thanks,

Gabe

Modbus Data acquistion

$
0
0

I want to swap the 32 bit integers to get swapped float values,  anybody can help me,

thanks....

USB-6001 replacement

$
0
0

I hope you're able to help me. 

I'm not a LabVIEW engineer or anything I look after our database and various business software.

Our company bought a test system which uses a USB-6001 and unfortunately the device has failed. 

Is there a guide I can follow to replace this device, I shouldn't think it wouldn't be too hard to just swap out with an identical unit? 

 

thanks for ANY advise in advance.

Unable to build installer LV16

$
0
0

I started by attempting to build an executable as I have a cDAQ 9133 that is nearly out of C: drive space when it's required to run both Windows and LV16 with the DAQmx drivers. I kept on getting the 'This is the application template and cannot be run alone' when attempting to run my executable (after rebuilding several times) so decided to attempt building an Installer. 

 

When building the installer I am encountering the following error. I did ensure that the requested file is in the proper location after reading a few related forum posts. Beyond that I'm not too sure what to try next, so any help is appreciated, I'm fairly new to LV and especially building applications/executables. 

 

CDK_Item_OnDoProperties.vi.ProxyCaller >> CDK_Item_OnDoProperties.vi >> 
AB_UI_FRAMEWORK.vi >> AB_UI_Frmwk_Installer.lvclass:Build.vi >>
Installer.lvclass:Build_from_Wizard.vi >> IB_MSI.lvclass:Build.vi >>
IB_MSI.lvclass:Engine_BuildDevPart.vi >> CDK_Engine_AddFiles.vi >>
NI_MDF.lvlib:MDFBuildDevPart_AddFile.vi C:\Users\CDUC 802 DYNO\Desktop\De Pere - 802 22Feb18_from dyno The following errors and warnings were recorded during the build: Error: An internal tool or library returned an error. Details: Error adding file: C:\Users\CDUC 802 DYNO\Desktop\De Pere -
802 22Feb18_from dyno\Main_802.vi Code: -21 Error: An internal tool or library returned an error. Code: -21

I don't know if I'm better off going back to an executable or sticking with an installer. I do have custom configuration files from NI Max for instrument calibration that I do need to ensure are included in my build - does require me to use an 'Installer'?

 

Thanks in advance. 


Frequency resolution of analog out card

$
0
0
Hi ,
I am using PXIe 6738 analog out card . I m trying to generate different sinusoidal waveform frequencies with the help of this card. I want to generate frequency in the resolution of 1 Hz for example - 5001Hz , 5002Hz , 5003Hz , Etc. 
I m using create task function of NI max .  giving three inputs to the software mentioned below .
1, Generation mode- Continuous ( always fixed)
2.Samples to write
3. Rate (Hz)
4. Terminal Configuration - RSE
 
I am able to achieve a resolution of 2.5 Hz with no. of samples per cycle =10 . Formula used to calculate sampling frequency is as follows
sampling frequency = Generated frequency * no. of samples / cycle
 
Please suggest how to do it .
 

pci 1200 Alternative on windows 10

$
0
0

We're upgrading an old machine that runs Windows XP NI-DAQ 6.9.3. The drivers for our PCI 1200 pci card are not compatable with windows 10. Is there an alternative for this card that takes the same input without having us to rewrite the software (The software is propriatary).

Max Calibration on a Standalone Executable

$
0
0

I have cDAQ 9133 being used to control an engine test cell. It only has 15GB of C:\ drive space, which means it's not enough to hold Windows 7 embedded, Labview Development Suite and the DAQmx drivers. I really can't understand why NI would sell this device with so little memory, but for now I'm trying to find a way to make this work. 

 

The workaround I was recommended was to create a standalone executable/installer, which I've done. However, I don't know how I am to calibrate instrumentation, which we have to do a regular basis for certifications, without NI Max installed. I can import the .ini/.nce file to load the most recent calibration, but that doesn't help when I need to edit calibration points. 

Activación de salidas digitales de Vernier SensorDAQ con NI DAQ MX Python

$
0
0

 

Hola a todos.

 

Estoy haciendo una aplicación con la Vernier Sensor DAQ para controlar temperatura en una mini cámara cerrada con el LM35 y un foco luminoso o bombillo como actuador.

Para activar el foco necesito configura y poner enfuncionamiento una salida digital de la DAQ durante un tiempo determinado para mantener la temperatura que irradia el foco. Estoy usando la API  NI DAQ MX Python (https://nidaqmx-python.readthedocs.io/en/latest/)

Lamentablemente soy inexperto con python e interpretando la documentación de esa API, sin embargo armé este código, pero al ejecutarlo no activa ninguna de las cuatro salidas digitales de la SensorDAQ:

import numpy as np
import nidaqmx as daq
import math
import pylab as plt

from nidaqmx.constants import LineGrouping
from nidaqmx import system
s = system.System()
print(list(s.devices)) # data dev correspondiente

def activa_salida_digital():
    #nidaqmx._task_modules.channels.channel.Channel
    #nidaqmx.system._collections.PhysicalChannelCollection
    app= 'Dev8/port0/line0'
    with daq.Task() as task:
        task.do_channels.add_do_chan(
            app,
            line_grouping=LineGrouping.CHAN_FOR_ALL_LINES)
     
        try:
            print('N Lines 1 Sample Boolean Write (Error Expected): ')
            print(task.write([True, False, True, False]))
        
        except daq.DaqError as e:
            print(e)
        
        print('1 Channel N Lines 1 Sample Unsigned Integer Write: ')
        print(task.write(8))
    
        print('1 Channel N Lines N Samples Unsigned Integer Write: ')
        print(task.write([1, 2, 4, 8], auto_start=True))

 

Adjunto el esquema de conexión:

 

VernierDAQ_sch.jpgEsquema de conexión de salida digital DO0 Vernier Sensor DAQ

Vernier SensorDAQ digital outputs activation with NI DAQ MX Python

$
0
0

Hi everybody.

 

I am making an application with the Vernier Sensor DAQ to control temperature in a closed mini-chamber with the LM35 and a light bulb  as an actuator.

 

To activate the light source, I need to configure and set a digital output of the DAQ for a certain time to keep the temperature radiating the focus.I'm using the NI DAQ MX Python API (https://nidaqmx-python.readthedocs.io/en/latest/)

Unfortunately I'm inexperienced with python and interpreting the documentation of that API, however I built this code, but when executing it does not activate any of the four digital outputs of the SensorDAQ:

 

import numpy as np
import nidaqmx as daq
import math
import pylab as plt

from nidaqmx.constants import LineGrouping
from nidaqmx import system
s = system.System()
print(list(s.devices)) # data dev correspondiente

def activa_salida_digital():
    #nidaqmx._task_modules.channels.channel.Channel
    #nidaqmx.system._collections.PhysicalChannelCollection
    app= 'Dev8/port0/line0'
    with daq.Task() as task:
        task.do_channels.add_do_chan(
            app,
            line_grouping=LineGrouping.CHAN_FOR_ALL_LINES)
     
        try:
            print('N Lines 1 Sample Boolean Write (Error Expected): ')
            print(task.write([True, False, True, False]))
        
        except daq.DaqError as e:
            print(e)
        
        print('1 Channel N Lines 1 Sample Unsigned Integer Write: ')
        print(task.write(8))
    
        print('1 Channel N Lines N Samples Unsigned Integer Write: ')
        print(task.write([1, 2, 4, 8], auto_start=True))

 

I attach the connection diagram:

VernierDAQ_sch.jpg

 

NI USB-6341 getting disconnected to windows intermittently

$
0
0

Hi.

I would really appreciate any technical insight regarding my issue.

I have a NI-USB 6341 connected to an Analyzer via a windows 7 PC.

It intermittently disconnects and causing issue with my measurement.

Frequency of disconnection is unpredictable.

And the only way to get it connected is by restting power to the device.

 

One question, do i need to activate or register my device?

The system is standalone and is not permitted to be connected to the web.

Thanks in advance.

 

 

PCIe6321 5V power lines

$
0
0

Hi,

 

I am considering to use the 5V power lines (1A max) of PCIe 6321 board to feed some glue logic. 

What I am curious is if the 5V power lines are linear regulated one or just directly connected to PC's switching power supply. For the linear regulated one, I am thinking a 5V switching line from the PC is fed to a step up regulator and then filtered by a low noise linear regulator on the 6321 board.

 

What is the fact?

 

Thanks in advance.


Using USB 6002 DAQ to generate waveform using digital output

$
0
0

I am using USB-6002 DAQ multifunction to generate waveform by using digital output. Is it possible to generate a signal using digital output?

MAX not seeing PXIe-4300

$
0
0

Greetings,

The PXIe-4300 cards are not seen by MAX. After DAQmx 9.7.5 is repaired, the cards are then recognized and the tasks work fine. After restart the problem re-occurs until DAQmx is repaired again. No issues with other PXI/PXIe cards in the 1062Q Chassis. Any solutions?

 

Measurement & Automation Explorer 5.5
DAQmx 9.7.5

NIDaqmx (NI-PXIe-6363) Python: register signal event

$
0
0

Hello ,

 

We are using an NIDaqmx (NI-PXIe-6363) with Python. We try to register an digital input as trigger source to an task.

 

Code snip :

 

 

self.myTask = nidaqmx.Task( new_task_name='digital line event change detection')
self.myTask.di_channels.add_di_chan("/PXI1Slot2/PFI8")         
self.myTask.stop()
self.myTask.timing.cfg_change_detection_timing(falling_edge_chan="/PXI1Slot2/PFI8",
                                                           rising_edge_chan=None,
                                                           sample_mode=AcquisitionType.FINITE,
                                                           samps_per_chan=1000)
self.myTask.register_signal_event(Signal.CHANGE_DETECTION_EVENT, self.callback_digital_line)

 

 

When executing the function register_signal_event() , we got following error message :

 

 

nidaqmx.errors.DaqError: Selected lines do not support buffered operations.
Ensure only lines that support buffered operations are being used in the task. If using change detection timing, the task must be changed to non-buffered to support these lines.
Device: PXI1Slot2
Physical Channel: PFI8
Task Name: digital line event change detection
Status Code: -201062 

 

 

Software versions we use :

Windows: 7 , Python 3.6.3 , nidaqmx (0.5.7) , NI-PXIe-6363 device driver :17.0.0ff0

 

Installed python libraries :

 

 

cycler (0.10.0)

et-xmlfile (1.0.1)

future (0.16.0)

iso8601 (0.1.12)

jdcal (1.3)

matplotlib (2.1.1)

nidaqmx (0.5.7)

nidcpower (1.0.1)

nidmm (1.0.0)

niswitch (1.0.1)

numpy (1.13.3)

openpyxl (2.4.9)

pip (9.0.1)

Pykka (1.2.1)

pyparsing (2.2.0)

PyQt5 (5.9.2)

pyqtgraph (0.10.0)

pyserial (3.4)

python-can (2.2.1)

python-dateutil (2.6.1)

pytz (2017.3)

PyYAML (3.13)

setuptools (28.8.0)

sip (4.19.6)

six (1.11.0)

typing (3.6.6)

windows-curses (1.0)

wrapt (1.10.11)

 

We find this error message is a bit contradictory. How can this issue be resolve?

 

 

We thank you in advance.

 

 

With best regards.

Christian , drivetekag

Generate and Control square wave by using USB-6002

$
0
0

I want to design a hardware that I press a start button then TRIG signal is generated at rising edge and when I press stop button then RST signal is generated and also turned off the TRIG signal.

Kindly help me to this.

USB-1616HS-4 shows voltage on digital input

$
0
0

First Post:

I have a USB-1616HS-4. It shows 3.3v on pins C4 and C5 which are configured as digital input and with nothing connected to those pins.  C0 to C3 and C6 to C7 do not show a voltage value.  This is with nothing attached.  Is this correct behavior or am I lost more than I thought?  I'm pretty new to DAQ in general, so I'm assuming there is something simple I am unaware of.  

 

Project:  I am updating an old inspection program that was written in VB6 and used a DAQBook/100 over a parallel port to collect data.  I'm using Vb.Net and the above mentioned USB-1616HS-4.  

 

Any hints or help would be most appreciated.

Thanks

Rick

Viewing all 6881 articles
Browse latest View live


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