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

access 9133 chassis from another PC

$
0
0

Does anyone know if it is possible to access the Chassis and modules of a 9133 cDAQ system from another PC (not the one embedded on the 9133 hardware)? In other words, is it possible to have the 9133 system behave like a 9188 chassis?


PCI DEV ID not found in PCI Vendor and Device list for PCI 6031E card (one of the 3 devices is OEM1)

$
0
0

I have three PCI 6031E cards which are shown to have VEN_1093 (NI) and DEV_2C50.  The correct PCI device ID from another 6031e and one of the cards has the OEM1 label.  The other two cards have serial numbers which the NI driver look up say are supported by my current runtime (vers 16 approx)  The correct pcidatabase.com Device ID for the PCI-6031E is 1330.  (0x1330)  How can I get Ni-Max to recognize these cards?  Is there a way to change the Device ID to 1330?  

Controlling a Power Supply with a potentiometer through labview

$
0
0

Hi,

 

I have a power supply that can only be controlled externally through a potentiometer.  I am attempting to control this power supply and be able to vary its setting through a LabVIEW interface.  I am wondering what the best method to control a digital potentiometer that I can hook up to the BNC port on the back of the equipment is.  I have access to arduino if that would be a good way to control it, and also have a DAQ BNC array which I am planning to use to control other pieces of equipment.  Otherwise, if there is a way to more directly control the pot. through LabVIEW that would be great too.

 

Thanks for the help,

J

USB-6212: timing issue with retriggerable analog input

$
0
0

Hello Everyone!
I am new to low level programming labview and I’m having some issues with my NI-USB-6212 and labview. I have two boards NI-USB-6212 and I’m using them to read two analog channels. My effective sample rate is 100 Hz (each point is the average of 4000 points (samples per channel) sampled at 400 kHz (sampling rate)). To ensure that my effective sample rate is 100Hz I’m using a timed loop (1kHz Clock, 10 Period).

 

My problem is that I want to lower my averaging points (samples per channel), because sometimes my loop is finishing late, so by reducing my number of average points I will give enough time for the readings inside my loop to finish before 10ms. The problem is that I can’t reduce my averaging, because I get the error -200279“The application is not able to keep up with the hardware acquisition”. I think the problem is that those boards don’t have retriggerable analog acquisition, therefore I’m using the available counters as a workaround, and because of that I’m using my Sample Mode as Continuous Samples.

Is there a way to lower my averaging,for example to 3000, without changing my sampling rate?

 

 

USB-6001 Digital Output, Open Collector, Logic High Output Impedance

$
0
0

I'm looking on page 22 of NI's User Guide manual for the USB-6001/6002/6003 Low-Cost DAQ USB Device (manual #374259A-01, May 2014), the section titled "Source/Sink Information". According to Figure 14 "Example of Connecting an External User-Provided Resistor", when a digital I/O (DIO) pin is configured for open-collector operation, the DIO pin's output impedance for the logic HIGH state is the sum of 47 ohms + (47.5 kohms in parallel with the output impedance of the cutoff transistor). Assuming the transistor is in fact cut off, it's output impedance should be much greater than the 47.5 kohm resistance; so I'll estimate the DIO pin's output impedance as approximately 47.5 kohms.

 

If I select a resistance value of 5.1 kohms for the pull-up resistor, and select Vpull-up (a.k.a., VCC) to be 5 VDC, then I'd expect the voltage at the EXTERNAL LOAD node to be around 4.5 VDC, assuming a very high impedance load is connected to that node--e.g., a DMM with Zin>=10 megohms. Unfortunately, I'm not getting anywhere near 4.5 VDC; I'm seeing about 3.8 - 3.9 VDC.

 

I've tested multiple DIO pins (configured for open collector operation) on multiple USB-6001 devices, and they're all less than 4 VDC for a pull-up resistance of 5.1 kohm and VCC=5 VDC.

 

So are the manufacturing tolerances for the 47.5 kohm pull-down resistor just really, really sloppy (the calculated resistance value I'm getting is around 18.5 kohms), or is something else causing the observed low output voltage at the EXTERNAL LOAD node?

 

(n.b. I'm using the attached VI for testing. This VI was created w/ LabVIEW 2016.)

DAQmx Base Task Config Utility shows no devices

$
0
0

Hi,  I want to use a NI-6010 board in a PowerPC Mac running MacOS 10.4.11 and have installed

various versions of NI-DAQmx Base. The DAQmx Base Task Config Utility shows no devices although Isdaq shows the board is present.  How can I configure the board?

Many thanks, Brian

 

cDAQ9181 turns off from while loop?

$
0
0

I am attempting to update a VI for chromatography data acquisition. DAQassist is running in a while loop as a trigger to begin data collection based on external voltage signal going low. A separate DAQassist reading from the same cDAQ9181, but different channel, appears to be stopped based on the while loop upstream in the sequence. The VI proceeds normally if two different cDAQ units are used. Is it possible to use the same cDAQ in this VI?

Different sampling behavior with different CDAQ chassis

$
0
0

I am setting up a strain gauge measurement and right now I have a full bridge set up made entirely of resistors, just to verify my test set-up. I have been using a 9219 module with a 9171 chassis and I have been able to get the sampling behavior I want using these parts. My sample frequency is 20S/s and I get 20 distinct samples per second using this set-up (measuring V/V).

Inline image 2

 

I also have a 9174 chassis that I would like to use instead so I can incorporate other measurements. For some reason, just switching out the chassis and using the exact same LabVIEW code results in different behavior. This is the data I get with the 9174 (same module):

Displaying image.png

So, technically it is giving me 20 data points per second but I have no idea why the values aren't changing every sample. My understanding is that the sample rate the DAQ is capable of is dependent on the module, not the chassis -- so why would changing out the chassis result in this change in behavior?

 

If anyone has any ideas here, they would be greatly appreciated. Thank you!


Unsatisfied floating values

$
0
0

Hi everybody,

    I have some doubts on using DAQ usb 6211 the voltage reading in RSE mode which it was unsatisfiable i have created a program using daqmx functions and initialised with min val 0 and max val 10 and the given input config is RSE mode when i was i trying to read the values it reads the values in opposite side and sits at certain peak point at -10.62 i don't know how to config the min & max values and set it constant, if anybody knows give some idea to that and i have attached my simple vi with this.

 

Thanks in advance,

Regards,

Dinesh

 

AO output limit, PCIe-6363, BNC-2110

$
0
0

Hello.

 

We are running two galvo scanner on a PCIe-6363 board with an attached BNC-2110 on the two analog outputs AO0 and AO1.
I attached a simplified version of our program: testGalvosV1working.vi
The other two vi's (wavePosSub and waveNegSub) are two sub-vi's to create the triangular waveform.
Please see the front and block diagram:
front.pngblock.pngThe numeric inputs imageSizeX/Y are the desired image size, here 512x512px. The offset input gives the scanning range of the galvos: 1V input means a sweep range from -1 to 1V. The step size of the galvos will be 2V/512px. The input "timePerPixel" is the scanning speed: How many pixels are raster scanned per second.

 

The program works as follows: You click start and before something happens: 1000ms pass (it is just for testing purpose, not really necessary). Afterward, the GalvoX scans from left to right, at the end of the line, the GalvoY proceeds to the next line and GalvoX scans from right to left and so on until 512x512px are scanned. That can be seen in the graph: the white line is GalvoY and the red line is the altering GalvoX. (put something like 5000 into timePerPixel to follow the graph updating.) Both galvo scanner are initialized with one task writing to both AO outputs.

imagingTime(s) is the expected time the scanners need to scan one image. The "time passed (+1000ms)" is a tick count. The tick count and the imagingTime should ideally be the same (just the tick count is 1000ms longer because of the initially 1000ms wait). That is not very precise but a good indicator for comparison.
Also, I am aware that the flat sequence is not necessary and you folks at NI aren't the biggest fans of it Smiley Wink  The fastScannerFreq and scanSpeedTooHigh indicator show the scanning frequency of the GalvoX, which should not be higher as 1000Hz. If exceeded the program does not run.

 

However, why I post this here: I have a speed limit which I do not fully understand. If I put a time >125000 into the timePerPixel(px/s) box the scanning speed does NOT increase anymore. Meaning I can not write more than 125kHz to the outputs. This can be seen in the program because the indicator "timePassed" does not decrease further.
What I tested so far: If I remove one AO output (and change to only one physical channel) I can write data with 250kHz. Therefore, it must somehow be related to the amount of samples I can write? But shouldn't I be able to write faster? Where is this limit coming from?

Thanks for reading. And maybe you have a hint.

how to get the verison of the operating system for the USB-6343 DAQ

$
0
0

I need to program a VB.NET GUI to control the 6343.

I need its OS version in order to select the correct NI-DAQmx  API.

 

Our NI USB-6343 ...

S/N is 1B7B6D1

P/N: 150199C-O1L

Writing with 595 shift register

$
0
0
Hey guys, I just have a quick question regarding writing multiple statements with the shiftOut() fucntion when it comes to sn74hc595 registers. Would it be possible to do any of these example below to "animate" let's say a 8x8 led matix? void loop() { digitalWrite(latchPin, LOW); shiftOut(dataPin, clockPin, MSBFIRST, x) delay(10) shiftOut(dataPin, clockPin, MSBFIRST, y); delay(10) shiftOut(dataPin, clockPin, MSBFIRST, z); digitalWrite(latchPin, HIGH); } void loop() { digitalWrite(latchPin, LOW); shiftOut(dataPin, clockPin, MSBFIRST, x) digitalWrite(latchPin, HIGH); delay(10); digitalWrite(latchPin, LOW); shiftOut(dataPin, clockPin, MSBFIRST, y) digitalWrite(latchPin, HIGH); } Here is the datesheet of 74hc595 http://www.componentschip.com/details/Texas-Instruments/74HC595D.html

Analog and digital (trigger) input on USB-6008

$
0
0

Hi,

I have a NI USB-6008 DAQ and a NI USB-6210.

I would like to record continuous analog signals in DAQmx C++ and ALSO record the times of any triggers seen on the PFI0 input.

I don't need to know the full trigger waveforms, just the time.

Is this possible with either (both) of these devices?

 

Alternatively, is it possible to gate a continuous analog input, only recording samples when a TTL line is high?

 

Best wishes,

Chris.

Linux, Python and usb-6351 DAQ

$
0
0

Hi,

 

Does anyone have any idea how I could control the usb-6351 DAQ through python and Linux? Are there drivers available for Linux? Any libraries/ wrappers for Python. It seems that information is scarce on this topic.

Cheers!

USB-6211 Noisy Pressure Transducer Signal

$
0
0

Hello,

 

I have a pressure transducer connected to AI 7 & AI 15 ports of my USB 6211.

This setup has been working fine until last week, then something weird happened this week. Now I'm getting a really noisy voltage signal. I have attached a picture of the signal.

When I use a multimeter to check the voltage reading, I get the expected value which is 4.7 volts, but when I try to read the signal from LabVIEW, the signal fluctuates between 0-4.7 V. Although, the noise seems to show some kind of a pattern.

 

It worked perfectly fine until last week. I have tried connecting the DAQ to different computers, re-wiring the whole setup and even grounding the AI ports with AI GND. I'm running out of ideas on how to fix this issue!!

Please, any help would be very much appreciated.

 

Thank you!


DAQmx: PCI-6722 simultaneous digital and analog output data acquisition for the same card.

$
0
0

I have a PCI-6722 DAQ card that I am programming with DAQmx.

I want to perform a data acquisition for analog and digital ports in the same time.

 

I tried to create 2 tasks but i get the error: (0xFFFCF267): Task name specified conflicts with an existing task name.

 

I tried also to create two channels for the same tasks but i still have problem.

DAQmxCreateAOVoltageChan(_hSamplingTask, "Dev2/a0",NULL , -10.0, 10.0, DAQmx_Val_Volts, NULL);

DAQmxCreateDIChan(_hSamplingTask,"Dev2/port0","",DAQmx_Val_ChanForAllLines);

 

>>> (0xFFFCF091): Task cannot contain a channel with the specified channel type,
 because the task already contains channels with a different channel type.

 

Is it possible to do this test ?

 

Thanks.

DAQmx: Read out TEDS data

$
0
0

This is the first time I work with TEDS data and I hope that someone can help me.

 

I try to read out the TEDS data of the following microphone:

G.R.A.S 40AE 1/2" microphone together with the G.R.A.S 26CF 1/2" CCP preamp.

The GRAS product catalogue says: "46AE is a 1/2" free-field general purpose high sensitivity microphone set with built-in TEDS and BNC connector."

 

I am using a NI PXIe-6363 DAQ card (and also tried a PXI-6259 DAQ card with the same result). Following the supported properties, both should be able to read the TEDS data:

http://zone.ni.com/reference/en-XX/help/370471AG-01/cdaqmxsupp/pxie-6363/

http://zone.ni.com/reference/en-XX/help/370471AG-01/cdaqmxsupp/pxi-6259/

 

I could not get it working in LabVIEW and hence tried to get the TEDS data in MAX first. However I can not choose the "Scan for HW TEDS" button in MAX, see pic below.

What do I have to set or install that I can scan for HW TEDS and how can I read the TEDS data? 

MAX_ScanForHWTEDS_notPossible.PNG

Loop timing with NIDAQmx for Python

$
0
0

Background: I'm trying to configure NI's new NIDAQmx library for Python to record 6 analog voltages with a USB-6210 DAQ. Here is my working baby code:

 

 

###############################################
# import libraries
import time as t
import numpy as np		
import nidaqmx
import pprint

fSampling = 1.0 #Hz
nSamples = 5 #samples
pp = pprint.PrettyPrinter(indent=4)
dtMax = 15 #sec

###############################################
# DAQ

# config
with nidaqmx.Task() as task:
	t1 = t.time()
	task.ai_channels.add_ai_voltage_chan("Dev1/ai0:5")
	task.timing.cfg_samp_clk_timing(fSampling)
	
	t2 = t.time()
	dt = t2 - t1
	while dt < dtMax:
		data = task.read(number_of_samples_per_channel=nSamples)
		t2 = t.time()
		dt = t2-t1
		print dt
		pp.pprint(data)		
###############################################
# output to file

 

And here is its output:

 

4.04500007629
[   [   5.450821630953765,
        4.550910274171798,
        3.375039902877309,
        2.8346332012577977,
        2.575119650469254],
    [   0.1436219369816977,
        0.1452665056820444,
        0.14444422133150514,
        0.14378639385160064,
        0.1442797644614851],
    [   0.42056734692955455,
        0.42155408844033515,
        0.421225174603295,
        0.421389631521801,
        0.4208962607663682],
    [   0.1837494141045311,
        0.1845716984899678,
        0.1842427847357057,
        0.18407832785861833,
        0.18358495722753115],
    [   0.3126836145923778,
        0.3133414421913342,
        0.313176985291552,
        0.31284807149207383,
        0.31284807149207383],
    [   -0.344814834975827,
        -0.34399255107332927,
        -0.34465037819538946,
        -0.344814834975827,
        -0.34465037819538946]]
9.05099987984
[   [   2.4391135199034384,
        2.3614897130805055,
        2.314454951111576,
        2.284359282671887,
        2.2605129885258157],
    [   0.14460867820155443,
        0.1436219369816977,
        0.145102048811878,
        0.14493759194174088,
        0.1429641095023787],
    [   0.42106071768481745,
        0.4207318038479473,
        0.42204745919610764,
        0.42155408844033515,
        0.42056734692955455],
    [   0.1837494141045311,
        0.18358495722753115,
        0.1845716984899678,
        0.1847361553671425,
        0.1837494141045311],
    [   0.3121902438934617,
        0.3121902438934617,
        0.3133414421913342,
        0.3123547007930717,
        0.31284807149207383],
    [   -0.34563711887755055,
        -0.34563711887755055,
        -0.34465037819538946,
        -0.344814834975827,
        -0.34465037819538946]]
14.0550000668
[   [   2.243573897101991,
        2.2325552649417535,
        2.2231812048235535,
        2.215616173903215,
        2.2082156002220095],
    [   0.14411530759149432,
        0.14411530759149432,
        0.14493759194174088,
        0.14559541942246498,
        0.14411530759149432],
    [   0.42007397617454656,
        0.421225174603295,
        0.42171854535889763,
        0.42188300227748843,
        0.42056734692955455],
    [   0.18309158659670616,
        0.18407832785861833,
        0.18440724161282218,
        0.1845716984899678,
        0.18342050035056034],
    [   0.3120257869938804,
        0.31284807149207383,
        0.3133414421913342,
        0.313176985291552,
        0.3120257869938804],
    [   -0.34497929175623365,
        -0.34514374853660934,
        -0.34382809429273675,
        -0.34465037819538946,
        -0.3454726620972678]]
19.0509998798
[   [   2.2034463416511727,
        2.1991704546724478,
        2.1955523964713692,
        2.1930855386131443,
        2.186836165394627],
    [   0.1442797644614851,
        0.14477313507163303,
        0.14477313507163303,
        0.14477313507163303,
        0.14378639385160064],
    [   0.42040289001119024,
        0.42188300227748843,
        0.42221191611475506,
        0.421389631521801,
        0.42007397617454656],
    [   0.18342050035056034,
        0.1850650691215794,
        0.1845716984899678,
        0.1845716984899678,
        0.18325604347361868],
    [   0.3121902438934617,
        0.313505899091145,
        0.313176985291552,
        0.31284807149207383,
        0.3121902438934617],
    [   -0.34530820531695405,
        -0.34382809429273675,
        -0.344814834975827,
        -0.3436636375121134,
        -0.34563711887755055]]

Questions:

  1. Does DAQmx make a timestamp for each channel's sample, or do I have to interpolate my own timestamp between each loop iteration?
    If DAQmx does generate a timestamp for each sampling, how can I access it?
  2. Why does it take less than 5 seconds to collect data for the first iteration? I feel like there's a simple logic error in my code, but I just can't figure it out even after a lot of dummy prints Smiley Frustrated
    T_loop = nSamplesPerChannel/fSampling (5/1 = 5)

Thanks!

 

Plotting XY graph

$
0
0

Hi to all,

     I have created a vi using DAQ 6211 card to plot values in XY graph and waveform chart. However i need to add a DAQmx timing palette to have a sampling rate actually i need to display 1 to 100 samples per second but i can't display at same interval for all the numbers i need some doubts to be cleared here and also i need to add a time function in seconds in xy graph in addition to the channel 1 and channel 2, i've attached my vi to this, you can tell whatever i done wrong here.

 

Thanks in advance,

Regards,

Dinesh

Using Thermocouples with BNC 2090 to LabVIEW

$
0
0

Hello,

 

I am trying to connect some Thermocouples (or any device to measure temperatures up to ~200C) to my BNC 2090.  What would be the best method or best tool to do this with, or will I need a different device?

 

Thanks,

J

Viewing all 6883 articles
Browse latest View live


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