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

windows 7 embededd

$
0
0

Is it possibile use the cDaq device connected in a  embedded pc with an embbeded operating sysytem?

I would like use one cdaq like NI9191 with the DI  module(Ni 9425) in embedded computer where is installed windows 7 embedded standard.

Can i use the traditional Daqmx 14???
Is there a document for get some explanation for do that??

 

Thank in advance.

 


NI Max dropping PCI card

$
0
0

I have loaded a PC with 4 PCI daq cards 6321,6321, 6321, and 6363. After a reboot one of the 6321 cards will show with a RED X (white icon) in the M&A making it unusable and an additional card without a name is added to the list (see attached images), Device Manger still sees all four cards and claims they are working properly. When we see this error we proceed to delete the RED X item, 'Reset Configuration Data' in M&A then reboot, this brings the 6321 back to Green icon and we are able to use the system normally. This is painful to the users of the computer since two reboot are required to get the system operational.

Why would one of the cards randomly change to a Red X?
Why is it always the same card?
Why does a 'Reset Configuration Data' and reboot resolve the issue?
If this is some sort of Discovery bug with M&A, is there a mechanism to lock in the M&A settings to prevent the Red X?

Our production system uses  are using NI DAQmx 9.8. We updgraded and reproduced the issue with DAQmx 14.2 also.

 

Image 1: Before Reboot

 

 BeforeReboot.JPG

 

Image 2: After Reboot

 

AfterReboot.JPG

Is there any power plant designed by NI CRIO?

$
0
0

Dear All,

 

I want to learn that does any power plant use NI Compact RIO system?

I could not find any reference about hydro power plants.

 

Best Regards,

Alkan

Input and output task synchronisation

$
0
0

Hello,

 

I need to generate finite digital and analog signals with the same rate and I want to measure analog inputs 10 times faster at the same time

Now it looks like that:

tests.png

 

Analog output clock is used to generate digital output at the same rate, I use analog output StartTriger to start Digital output and to start analog inputs.

is this synchronised correctly? What do I need to write in rate for digital output signal?

 

My another approach is to do finite acquisition:

tests2.png

 

Now I  am generating nalog output lets say at 10Hz, signal has 100 elements so it will take 10s to generate. In the same time I will acquire at 100Hz for 10s so I will get 1000 samples. I am thinking correctly? 

 

As far as I understand aoSample clock is created from 20MHz timebase. ant that is my 10Hz, so I can't acquire at faster rate using that clock? 

cDAQ: automatic module detection

$
0
0
Hi, I am using a cDAQ 9188 chassis with 4 modules (2x NI 9401, 1x NI 9263, 1x NI 9225). I searched for them in MAX and did a selftest of the cDAQ. Afterwards, all 4 modules are listed. I then created DAQmx tasks and can finally use this tasks inside my LV project. So far, so good. I can even restart my cDAQ and still use the tasks. However, if I restart my computer, only the cDAQ is automatically redetected, but the 4 modules are not (4 white/red X inside MAX). If I start my LV project and run it using the DAQmx tasks, I will get the "Error -201003" which tells me, that the device cannot be accessed. I've found 2 work-arounds which are both not very pleasing and I am wondering if I am doing something wrong. 1.) Open MAX after restart of the computer and perform a manual selftest of the cDAQ chassis 9188. It then "re-detects" the 4 modules and everything is fine. This is of course not satisfying as it is manual. 2.) Run the selftest programmatically inside my project and then wait for a arbitrary time period of let's say 5 seconds as the self test VI returns immediately and does not wait until the selftests are finished. This is also only partly satisfying due to the arbitrary delay. So, my question: Is there a better way to do this?? Optimally, LV should auto-detect all 4 modules inside my cDAQ after reboot. Best regards, Henning

cDAQ module to power a small heater

$
0
0

Hi forum friends

 

I have a probe that approximates a heat conduction line source. Basically a steel hypodermic needle which encloses a thermocouple and a length of resistance heater wire. Power is supplied to the heater wire which heats the needle. Heat is dissipated throughout the surrounding medium. During the heating stage the probe internal temperature is monitored. Presently I am logging the probe temperature with a cDAQ 9174 backplane and 9214 Temperature module. Very happy with the results. (Using DAQmx and text programming for the data acquisition and analysis).

 

However the probe heating side is currently an external homebrew prototype circuit. We want to replicate this system to a number of facilities so a modular solution supported by the cDAQ system is required. We don't want to do any more work than simply connecting devices or sensor wires together. After very much browsing of this forum I think I have found a solution. However I could use a sanity check because my electronics knowledge is very basic (V=RI right?!)

 

Heater wire resistance is 25-50 Ohm. Heater voltage is 1-5 V DC. So the current ranges from 20 mA (1/50) to 200 mA (5/25). Heater requires continuous power for 30-300 seconds. There don't seem to be a cDAQ analog output modules that will do this at the current levels required. However it looks like the digital output module 9478 will meet the requirements with ease, with the addition of an external power supply. There was a thread on this forum that suggested the 9478 for powering a solenoid with a low frequency pulsed output and similar voltqage and current requirements. Hence my belief in this as a viable solution.

 

Now since I basically want to use the 9478 as a programmable battery I have some questions to be sure my understanding is reasonable.

 

1. Can I generate a continuous voltage output from the 9478?

2. Can I generate an arbitrary value of  voltage between 1 and 5 V, e.g. 4.2V.

3. Can I set the voltage value programatically (DAQmx)?

4. Can anyone recommend a suitable external power supply for this setup?

5. Are there any other modules that might so the same job at a lower price? (For example, the 9478 has 16 outputs of which I require 1. The 9474 has 8 outputs and is half the price but I'm uncertain if it supports the voltage range I need).

 

Of course I am open to any other suggestions and I apprecaite any help you can provide.

 

regards

 

Chris

 

 

 

 

 

how to change language in ni max from korean to english

$
0
0

ni max is in korean language . i want to change to english.kindly help me .

PCIe 7842r to SCB-68A

$
0
0

Hi,

 

I have brought a PCIe 7842r, and it comes with the SCB 68A as the connector block.

 

I wanna use the connector block for analog input and digital output, so I connected the pin68 and pin 67 with two wires. The pin 68 and pin 67 on SCB68A corresponds to the AI+ and AI- on the PCIe 7842r too, so it fits perfectly.

 

Next step,  I want to use the PCIe 7842r to make a digital output, and I plan to use pin 36 and pin 2, which corresponds to DIO0 and DGND.

However, the pin 36 and pin2 on the SCB68A is DGND and PFI14, which doesnt match with the output from the PCIe 7842r.

 

Is there any suggestion for tackling this problem?

 

Best,

Matthew


Unable to measure frequency below 20 Hz on a NIDAQ 9178 chassis with NI 9402 even while using a hardware timed delay

$
0
0

Hello,

I am trying to measure frequency using NI 9402 in NI cDAQ9178 chassis. I am setting the clock for my counter channel to be my chassis ai Sample Clock.

I am able to measure frequency above 20 Hz. For frequencies less than 20Hz, I get the following error:

DAQmx Error: Multiple Sample Clock pulses were detected within one period of the input signal. Use a Sample Clock rate that is slower than the input signal. Ifyou are using an external Sample Clock, ensure that clock signal is within the jitter and voltage level specifications and without glitches.Task Name: _unnamedTask<0>
Status Code: -201314

Setting the Rate to 1 also not does resolve the issue.

OTHER DETAILS:

* Running on 64 bit, Win7 platform.
* NIDAQmx Driver Version: 14.5


I had posted regarding this earlier and I was told that this might be because the counter is armed immediately before the first sample is taken. The recommendation was to add a hardware-timed delay using the DAQmxSetStartTrigDelay method to the AI task. I have added this delay but I still receive the same error message. The previous post I had mentioned can be found below:

http://forums.ni.com/t5/Multifunction-DAQ/Cannot-measure-frequency-below-20-Hz-on-a-NIDAQ-9178-chassis/td-p/1537274

 

I have also attached my current code which has the delay. Is this a bug in the driver? If yes, can we have a CAR# to track this?

 

Thanks.

 

Regards,

Varun Hariharan

The MathWorks

cDAQ connection to Network

$
0
0

Hello,

 

I'm trying to connect my cDAQ chassis (cDAQ 9188-ethernet) to my school network in order to access it from a different location. In order for the school technical service to allow the cDAQ into the network they ask me for the device's MAC address. Is there any chance someone knows where to obtain it from? I looked through the manual, data sheet, specifications... and none of them give information about it.

 

Thank you,

Francisco

C# NI USB-6255 Analog Reader Doesn't Issue a Callback

$
0
0

Hello everyone,

 

I am currently experiencing an issue in which my callback supplied to AnalogMultiChannelReader.BeginReadMultiSample isn't being called after stopping a collection task and recreating / starting it. In both cases the activity light indicates activity on the NI USB-6255 A/D. I have spent the last couple of hours trying to figure this out and I am at a complete loss now.

 

Here is the code I use to start collecting analog data&colon;

 

collectionTask = new Task(configuration.Name);

ConfigureChannels();

collectionTask.Timing.ConfigureSampleClock(
	signalSource: "",
	rate: configuration.Rate,
	activeEdge: SampleClockActiveEdge.Rising,
	sampleMode: SampleQuantityMode.ContinuousSamples);
collectionTask.Timing.AIConvertRate = configuration.Rate * configuration.Channels.Length;

collectionReader = new AnalogMultiChannelReader(collectionTask.Stream) {
	SynchronizeCallbacks = true
};

collectionTask.Control(TaskAction.Verify);

collectionTask.Start();

collectionReader.BeginReadMultiSample(
	samplesPerChannel: (int)Math.Round(configuration.Rate * configuration.BufferTime),
	callback: DataReceived,
	state: null);

 

 

Here is the callback:

 

private void DataReceived(IAsyncResult asyncResult) {
	log.Info("Data Received");
	try {
		if (collectionTask == null)
			return;

		var waveform = collectionReader.EndReadMultiSample(asyncResult);
		queue.Add(waveform);
					
		collectionReader.BeginReadMultiSample(
			samplesPerChannel: (int)Math.Round(configuration.Rate * configuration.BufferTime),
			callback: DataReceived,
			state: null);
	}
	catch (Exception exception) {
		// Exception Logged (not shown)
	}
}

 

Here is how I stop the collection:

collectionTask.Stop();
collectionTask.Dispose();
collectionTask = null;

 

Any thoughts on possible debugging paths would be greatly appretiated. I have spent the last 4 hours trying to figure this out.

 

Thank you

 

daqmx error num: -50103 with message: The specified resource is reserved. The operation could not be completed as specified.

$
0
0

Hi, I am running a program where I have 4 nidaq cards on a single machine, all connected. I am trying to start a counter and keep getting that error (daqmx error num: -50103 with message: The specified resource is reserved. The operation could not be completed as specified.) in two places in my code. I understand what the error means (you can only have one task of a type per card), but I don't see where that is occuring in my code.
See below for code. I noted the two places where the error is occuring. I am debugging someone else's code, which is part of the problem.
Thanks!

 

counterTask = 0;
daq_err_check( DAQmxCreateTask( "counter_generation_task",&(counter_generation_task) ));
daq_err_check( DAQmxCreateTask("counter_count_task",&(counter_count_task) ));
char co_chan_name[40];
char ci_chan_name[40];
char ci_trig_chan_name[40];
sprintf( co_chan_name, "%s/ctr0", niDev);
sprintf( ci_chan_name, "%s/ctr1", niDev);
sprintf( ci_trig_chan_name, "/%s/PFI9", niDev); 

printf("OK1");fflush(stdout);
daq_err_check( DAQmxCreateCOPulseChanTicks( counter_generation_task,
co_chan_name, "", "ai/SampleClock",
DAQmx_Val_Low, 32,16,16) );
daq_err_check( DAQmxCfgImplicitTiming( counter_generation_task,
DAQmx_Val_ContSamps, 1000) );

daq_err_check( DAQmxCreateCICountEdgesChan( counter_count_task,
ci_chan_name, "", 
DAQmx_Val_Rising, 0, DAQmx_Val_CountUp) );
daq_err_check( DAQmxCfgSampClkTiming( counter_count_task,
"Ctr0InternalOutput", 1000.0, DAQmx_Val_Rising,
DAQmx_Val_ContSamps, 1000) );

daq_err_check( DAQmxSetRefClkSrc( counter_generation_task, "OnboardClock") );
daq_err_check( DAQmxSetRefClkSrc( counter_count_task, "OnboardClock") );

printf("abt to start counter_count\n"); fflush(stdout);
daq_err_check ( DAQmxStartTask( counter_count_task ) ); // ERROR OCCURS HERE
printf("abt to start counter_gen\n"); fflush(stdout);
daq_err_check ( DAQmxStartTask( counter_generation_task ) ); // ERROR OCCURS HERE

fflush(stdout);


Thanks again for your patience!

Digitizer / Oscilloscope USB-5132 Internal Averaging Option?

$
0
0

The DS5132 USB digitizer / scope from NI does not support multi record acquistion. Multi record acquistion would allow to internally save multiple measurements triggered by hardware triggers and therefore significantly reduce the overhead that comes in when the unit is read out via USB. My question is, does the DS5132 driver support some kind of hardware averaging though? A lot of scopes have an averaging mode and it would be great if I could internally average waveforms before reading them out. That said, I am not sure how comercial table top scopes handle averaging and it might be just done via software.

 

Thanks for input,

 

Erik

IEPE Mic on 4431 USB DAC Not Working

$
0
0

We're recording 3 ICP (NI calls this IEPE) accelerometers and 1 ICP microphone using LabView and an NI 44331 DAQ.  The mic is on channel 1 and the accels are on channels 2-4.  We are using the system to record dynamic data on a truck on the road - lots of noise and vibrations. 

 

The accel data looks fine, but the mic data is dominated by some kind of noise.  We calibrated the mic using an  acoustic calibrator and the cal signal looks fine.  Recording voices in the office also works fine.  Road data on the mic channel is junk.  Accel data is fine.

 

The obvious answer is an overloaded mic.  However, the bad data doesn't look like an overloaded ICP signal.  The other choice is an overloaded DAQ, but we've got it set for 122 dB.  Hard to believe we're overloading the front end.

 

We've checked the cables and replaced one, even though it was probably good.

 

The VI is dirt simple.  We're wondering if there is some wierd quirk in how LabView treats IEPE sensors.  The manual says that the channels are individually programmable, but I'm beginning to wonder if there is a problem somewhere.

 

We've got a customer waiting on the data.  We'd be most obliged for any suggestions.  Thanks folks.

 

 

Interface NI USB-6281 to an audio output

$
0
0

I need to connect a NI USB-6821 card to a line audio output of an amplifier, I need to use single ended input on the card

 

Can I make a direct connection straight from the audio line level output to the card, or am I need to match impedances ?

 

Please comment and thanks for any help.

 

David.


Can I use the USB-6002 DAQ to generate a pwm signals?

$
0
0

Can the USB-6002 be used to generate PWM signals?

 

If so, which is the maximum frequency and minimum pulse width?

 

What is the speed of the digital lines when used as output? Can I use teh digital lines to send digital pulses of about 2 microseconds?

 

Thanks,

 

Aaron

Relay recommendation for controlling 5v DC laser from mydaq

$
0
0

I need to control the on off cycles of a basic 5v 50mW laser via my myDaq. I found a tutorial on the NI website wich recommended a certain solid state relay from cycling the power of a 12v fan, but that relay is no longer available. Does anyone have a recommendation of where I should look?

Inaccurate Current Output from DAQ 9265 when 250 Ohm Resistor is Wired

$
0
0

I am working with a 0-20mA Current Output Card (NI 9265), with a simple LabVIEW program controlling the current that is output. The card outputs correctly (checked with a multimeter) until a 250 Ohm resistor is wired into the port: with the resistor, the amount of current across the terminals is dropped by ~0.5-0.9mA. I have tried switching the port I am using but each give the same result. I have also tried wiring another resistor and observed the same behaviour. The maximum load of the card is said to be 600 Ohms - why is this happening?

matlab cannot recognize usb-6218 BNC

$
0
0

Hello, i want to output a signal of 5 voltages through usb-6218 BNC and i have connected the DAQ device to my laptop. However, Matlab(R2011a)doesn't recognize the device and shows'No data acquisition devices available'. Someone says that it is so because 6218 is not a compact DAQ. Is it the exact reason? What else should i do if i want to output a 5V signal?

 

AO buffer output, update rate is different to sampling clock rate

$
0
0

Hi,

 

I am doing a buffered AO output using one channel. I have a buffer with a waveform of 200000 pts with  a  triangular waves of a 1000pts each repeating itself 200 times. If I want a frequency of 1Hz, I simply update 1000pts of this waveform and if I wanted 5Hz, then 5000pts and so on. But there are certain frequency I will not be able to use as the update rate (The number of samples I ask it to update) is different to the sampling clock rate, which makes synchronisation with other trigger difficult ( a incomplete cycle) .  Frequency such as 3Hz (update 3000pts),   6Hz(update 6000pts) 7(update 7000pts), 9(update 9000pts), .... 11Hz  to 15 Hz and is not valid in the sense that the update rate is different from the sampling clock rate. Which makes a whole lots of frequecy inaccessible!!  Can someone tell me what determines the forbidden frequency?  Is that something to do with the hardware?

 

regards

 

 

 

Viewing all 6881 articles
Browse latest View live


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