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

Installed NI-DAQmx Base 15.0 for (PCI-MIO-16E-4 & PCI 6713) device manager is still showing exclamation mark on those two cards.

$
0
0

There are two card that I installed on this computer. The two cards are PCI-MIO-16E-4 & PCI-6713. They both have cable connecting to each other on the top. The Current OS is Windows 7 64bit with 4GB of memory.  I went to NI drivers Support and typed in the serial number for those two cards. Both card came back with the same drivers. Which is NI-DAQmx Base 15.0. Installed the NI-DAQmx Base 15.0, but  the device manager is still showing exclamation mark on those two cards. So, I tried scan for new hardware and got a message saying driver unable to install. I also tried reboot. Please help.

 

Thanks

hms168


ni-scope with ni-6229

$
0
0

Hi all,

 

I would like to know if I can use ni pci 6229 with ni-scope soft? I didnt find any information about that.

 

Thank you,

 

Dima.

 

DAQmx initialize digital read with 8255 handshaking

$
0
0

I want to configure 6536B device for digital read with 8255 handshaking. 

 

myTask = new Task();
myTask.DIChannels.CreateChannel("Dev1/port0_32", "", ChannelLineGrouping.OneChannelForAllLines);

 

// triggers
myTask.Triggers.HandshakeTrigger.Interlocked.Source = "PFI0";
myTask.Triggers.HandshakeTrigger.Type = HandshakeTriggerType.Interlocked;
myTask.Triggers.HandshakeTrigger.Interlocked.AssertedLevel = InterlockedHandshakeTriggerAssertedLevel.Low;

 

// events

myTask.ExportSignals.HandshakeEventOutputTerminal = "PFI1";
myTask.ExportSignals.HandshakeEventOutputBehavior = HandshakeEventOutputBehavior.Interlocked;
myTask.ExportSignals.HandshakeEventInterlockedAssertedLevel = HandshakeEventInterlockedAssertedLevel.Low;
// - not supported!   myTask.ExportSignals.HandshakeEventInterlockedAssertOnStart = true;

 

// Timing
myTask.Timing.ConfigureHandshaking(SampleQuantityMode.ContinuousSamples, 4096);
myTask.Timing.HandshakeDelayAfterTransfer = 0.0;
// - not supported!    myTask.Timing.HandshakeSampleInputDataCondition = HandshakeSampleInputDataCondition.HandshakeTriggerAsserts;

 

reader = new DigitalSingleChannelReader(myTask.Stream);

myTask.Control(TaskAction.Verify);
myTask.Start();

digitalCallback = new AsyncCallback(DigitalCallback);

reader.BeginReadMultiSamplePortUInt32(5, digitalCallback, myTask);

 

and later...

 

private void DigitalCallback(IAsyncResult ar)
{

     data = reader.EndReadMultiSamplePortUInt32(ar); 

 

   ...

}

 

reader throws 'timeout' exception. 

 

This code has been created after old C++ based code for NI 6533 device which works fine. Two code lines labeled 'not supported' cause 'not supported' exceptions for NI 6536B device.

Can somebody point me to example for digital read with 8255 handshaking?

 

Thank you,

DAQmx initialize digital read with 8255 handshaking

$
0
0

I want to configure 6536B device for digital read with 8255 handshaking. 

 

myTask = new Task();
myTask.DIChannels.CreateChannel("Dev1/port0_32", "", ChannelLineGrouping.OneChannelForAllLines);

 

// triggers
myTask.Triggers.HandshakeTrigger.Interlocked.Source = "PFI0";
myTask.Triggers.HandshakeTrigger.Type = HandshakeTriggerType.Interlocked;
myTask.Triggers.HandshakeTrigger.Interlocked.AssertedLevel = InterlockedHandshakeTriggerAssertedLevel.Low;

 

// events

myTask.ExportSignals.HandshakeEventOutputTerminal = "PFI1";
myTask.ExportSignals.HandshakeEventOutputBehavior = HandshakeEventOutputBehavior.Interlocked;
myTask.ExportSignals.HandshakeEventInterlockedAssertedLevel = HandshakeEventInterlockedAssertedLevel.Low;
// - not supported!   myTask.ExportSignals.HandshakeEventInterlockedAssertOnStart = true;

 

// Timing
myTask.Timing.ConfigureHandshaking(SampleQuantityMode.ContinuousSamples, 4096);
myTask.Timing.HandshakeDelayAfterTransfer = 0.0;
// - not supported!    myTask.Timing.HandshakeSampleInputDataCondition = HandshakeSampleInputDataCondition.HandshakeTriggerAsserts;

 

reader = new DigitalSingleChannelReader(myTask.Stream);

myTask.Control(TaskAction.Verify);
myTask.Start();

digitalCallback = new AsyncCallback(DigitalCallback);

reader.BeginReadMultiSamplePortUInt32(5, digitalCallback, myTask);

 

and later...

 

private void DigitalCallback(IAsyncResult ar)
{

     data = reader.EndReadMultiSamplePortUInt32(ar); 

 

   ...

}

 

reader throws 'timeout' exception. 

 

This code has been created after old C++ based code for NI 6533 device which works fine. Two code lines labeled 'not supported' cause 'not supported' exceptions for NI 6536B device.

Can somebody point me to example for digital read with 8255 handshaking?

 

Thank you,

 

 

Switching DAQ Tasks for a Single Channel with Hardware-Enforced Timing

$
0
0

Hello,

 

I am working on an application that requires an analog output signal that switches between a pre-defined waveform and a feedback control signal that depends on an external signal. An example of the type of signal I would like to generate is a ramp up from 0 to 2V over 1 second, 1 second of feedback control, then a ramp down from 2 to 0V over 1 second. For this signal, I would like for each output signal to last for exactly one second, with the precision limited only by the DAQ clock rate. I am using a NI 6353 DAQ card to generate this signal. This output signal should be synchronized with other inputs and outputs on the DAQ, and therefore strict timing is necessary. I am wondering what the best approach is to ensure hardware-enforced timing when I need to switch tasks as described above.

 

As an example, the code below implements the waveform I described above, where I simply output a sine wave one sample at a time to simulate a feedback control signal:

 

Working But Slow.png

 

This code produces the desired waveform:

 

Signal.jpg

 

However, zooming in shows that there is a latency incurred by stopping, clearing, and restarting the DAQ channel when switching between the three waveforms that can be up to about 20ms depending on how many samples there are in the waveform. This 20ms latency is too long to achieve the level of accuracy in timing for my application. I have tried a number of schemes where I attempt to parallelize the code to some degree by writing both waveforms at the program start and not waiting for the tasks to be cleared between each step:

 

Parallel Non Funtional.png

 

However I have been unable to get this type of scheme to work as I always get errors related to resources being reserved and/or buffer sizes being incorrect.

 

I was wondering if there is any way to output such an analog voltage using the DAQ that enforces strict timing to ensure that my output signal is synchronized with other inputs and outputs on the DAQ. An FPGA may be the ultimate solution, but I would like to make it work with the hardware I'm currently using if possible.

signal generation

$
0
0

Good evening,

 

I 'm trying to generate an output voltage and I'm facing some problems. I'm using a NI 9263 analog voltage input module, I have the two wires (AO0 and COM) connected to the positive and negative terminations of a BNC connector; I want to generate an alternating voltage, 60Hz and amplitude from 1 to 5 V. Unfortunately what I measure with a multimeter is something always scaled, for example: if I generate a signal of amplitude 1 I measure 0.7 volt, if the signal is 2 in amplitude I measure 1.4 and so on. I would like to know if some calibration is needed or there are possible errors in what I 'm doing.

Thank you.

Thermocouple measurment with PCI 6220 + external SCB-68

$
0
0

Hello,

 

I am currently trying to test an installation using a thermcouple, plugged on an SCB-68, itself by cable on a 6220 card into a pc. The aim after check test, will be to put this thermocouple in a constant temperature bath to check during measurments if this one is has a problem and pause labview. But before Smiley Sad ...

 

... I have some problems to measure a correct temperature.

To make test, i use MAX. I have find some tutorial like these below but i think i have missed something. There are no reason that my thermocouple ; who give me correct temperature with an other device ; tell me 25°-27°C when the lab is at 18.5-19°C. I want to use the internal CJC.

 

Read tutorial and documentation :

Max tutorial : http://www.ni.com/getting-started/set-up-hardware/data-acquisition/thermocouples

To setup SCB-68 : http://www.ni.com/pdf/manuals/371745c.pdf

CJC setup SCB-68 : http://digital.ni.com/public.nsf/allkb/96B996BAD82A84E9862570690066B03F

and a youtube video.

 

I have tried different channel on my card. I have tested, i think, different type of config (single-ended or differential) because MAX doesn't ask it and if i have understand my SCB-68, it depend on the switch on it.

 

I have put integer in the selection menu, i suppose, to use the internal thermistance of the SCB-68.

 

Do you think i have make correct test but it's just the 'calibration' to make (tab in MAX).

 

If i test all the SCB-68 channel, why MAX tell me that in the connexion tab : the channel 1 to 7 are between two channel (CH1 with CH8 - ; CH2 with CH9 etc) and 8 to 15 are between corresponding CH and ground (CH8 with AIGND ; CH9 with AIGND etc) with the same SCB-68 switch setup ? Mean that 1 to 7 are in differential and 8 to 15 in single-ended ?

 

I hope my english is understable and i give you enough informations. I hope someone will clear my interrogations about this SCB-68 with these thermocouples.

 

Accordingly Smiley Happy

 

Nicolas

 

SCB68 - damaged channel

$
0
0

Hello all,

I am using a SCB68 and the AI0 is giving corrupted data. Instead of reading a 0N signal from a force transducer, I get 175N. And the signal does not change when applying force (It works fine apart from the noise with the other AI channels).  I want to be sure that this corrupted channel is not affecting the others. Is there a way to silence a channel?

Many thanks,

Amelie


temperature data logger with rs232

$
0
0

hello friends...

i seriously need your help in my minor project.i have temperature sensor made using lm35 and microcontoller .I am using MAX232 Module to commect my hardware to labview.now i want to make a temperature data logger using labview. i see lot of example but iwas not clear how to make all of them were different.actually i have made many program using labview but still am a learner and tis is my first when i am connecting hardware to it.so please please help me i have only 2 days to submit my work.please could any one make a vi for me.please!!

USB-6501 as Stepper Motor Drive

$
0
0

Hi all,

 

I'm trying to use the USB-6501 to drive a stepper motor.  I need a 0-5 V open collector type signal.  I've attached my DAQmx Base and VI screenshots below.  Is there a way to test whether or not I got this right?  I can't plug in the motor drive to test at my desk, it takes a very high voltage.  Any help would be greatly appreciated.  Thanks.

 

PortSelection.png

LineSelection.png

InvertLines.png

Voltage.png

VI.png

Update BIOS or Firmware of cDAQ 9139

$
0
0

I'm trying to troubleshoot issues with my cDAQ 9139.  Not sure this is it but I see in MAX that the current firmware on the cDAQ is 13.1.  I have LabView 2014 installed on the development machine and that's the version I'm using to build my application.  The issue I'm having is I can't access the remote panel and I'm wondering if it has to do with this firmware version difference.

 

Where can I download the correct firmware version for LabView 2014 version 14.0.1 and then, how do I update the cDAQ. 

 

I've tried the Update BIOS button in MAX under the add/remove software utility.  It tells me there is no version of firmware available on my host (development) machine.

 

I've udpated the software on the cDAQ to the latest available on my development machine.  A cew screenshots are attached for reference.

 

Thanks!

NI 9477 - Want to turn off outputs in case of communication/USB Fault

$
0
0

I have set up a CDaq with some modules, one of which is a NI 9477. I am using it turn on and off various parts of the system. 

 

The system runs a HV PSU, and while it is not common, there is a chance that the system may arc. When this happens, it tends to act like an ESD bomb, and that has killed the NI communications on a couple of occasions for us. 

 

One of the items that is controlled by the NI 9477 is the PSU, and I want it to turn off the moment such a communication issue occurs.

 

Is this a possibility at all?

 

What I am hoping is that in case of any fault or communication, all outputs (or particular outputs) on the NI9477 drop to FALSE. 

NI 9477 - Want to turn off outputs in case of communication/USB Fault

$
0
0

I have set up a CDaq with some modules, one of which is a NI 9477. I am using it turn on and off various parts of the system. 

 

The system runs a HV PSU, and while it is not common, there is a chance that the system may arc. When this happens, it tends to act like an ESD bomb, and that has killed the NI communications on a couple of occasions for us. 

 

One of the items that is controlled by the NI 9477 is the PSU, and I want it to turn off the moment such a communication issue occurs.

 

Is this a possibility at all?

 

What I am hoping is that in case of any fault or communication, all outputs (or particular outputs) on the NI9477 drop to FALSE. 

AC Coupling

$
0
0

Hello,

    I acquire pressure transducer signal from Picoscope, Picoscope has a option AC/DC Coupling and they say if I use AC Coupling option, any DC component of the signal below about 1 hertz will be filtered out. I acquired the same signal used NI DAQ (my DAC doesn't have AC Coupling option). I tried to use High pass filter by setting lower cutoff frequency as 1 hertz. Still I couldn't match the signal of picoscope and the signal acquired from DAQ. I saw a VI in Electrical Power Suite which does what I need (http://zone.ni.com/reference/en-XX/help/373375B-01/lvept/ep_acdc_coupling). I don't have the toolkit to try that.

 

 I attached the graph and Raw data of acquired signal from picoscope in AC coupled mode and DC coupled mode (both executed different time). Any suggestions or Ideas are welcome. 

3 Analog Outputs from PCIe-6353 with BNC-2110 Connector Block

$
0
0

Hi, I have an application in which I need to output a 3-channel AO task. My DAQ board is the PCIe-6353 and I currently have it hooked up to a BNC-2110 connector block. Looking at the manual for the PCIe-6353, it seems that AO channels 0-1 and channels 2-3 are on different cable connectors, so I can't output AO channels 0-2 to a single BNC-2110. Is this correct?

 

If so, is there a way to re-route the signals so that I can use a single BNC-2110 to output all three AO channels?

If I can't re-route the signals, is the next best solution to simply buy another BNC connector block?


Biomedical device to NI DAQ

$
0
0

Hi,

I currently have a NI USB-6218.
I am building an acquisition system and I want to connect the analog output of 2 biomedical devices to the NI DAQ.

 

This is a description of what I have in mind:

http://i.imgur.com/WE4LIIg.jpg

 

I would like to build a box in which to put the NI DAQ and a PCB. The PCB would act as a bridge between the device cables (carrying the analog signal) and the NI DAQ. I would then connect the NI DAQ to the PC (Labview) to collect the output.

 

1)Do you think this is a smart solution? Would you reccomend a different approach?

 

2) If so, where can I find a PCB connector to the NI USB-6218?

These are the connectors that that device currently has:

http://sine.ni.com/nips/cds/view/modelpopup/p/pcat/8678/lang/en

 

 Thanks for the help.

 

 

 

 

 

 

 

 

 

Eddy Current Probe measurement with NI9234, how?

$
0
0

Dear NI people and users,

 

I see that in Signal Express when I choose Eddy Current as input, it gives me the option is using the NI9234 card to connect a Eddy current probe,

we now use these probes : Sensonics Eddy Current Probe wich are very good but until now required a driver and power supply for each probe to use.

If there is a way that I can use a Compaq Daq module to do the same, I would be a verry happy man :-)

So anyone any ideas if this is somehow possible?

 

And if not with the NI9234 cDaq card, any other (cDaq) card?

Or maybe I must use other types of Eddy current probes?

 

Philippe,

Belgium

Multiple (3) Analog Inputs (DAQ) Ai3 is copying Ai1 Why?

$
0
0

Hi All,

 

I have been a LabVIEW user for about 4-5 years, but this is my first post on the forums.  I wrote some code that will collect three inputs, an acceleration (from an accelereometer) measured in volts, a Force (from a force meter) also measured in volts and a voltage single from a piezoelectric thin film.   For simplicities sake you can just think about them as three voltage inputs well under the 10V maximum.  Each voltages is fed into Ai1, Ai2 and Ai3 into my DAQmx measurement board.

 

The purpose of this code is to study how a 3d printed vibration energy harvesting array of piezoelectric coated beams performs under different excitation conditions. (If we shake these beams harder or softer at different frequencies, how much energy can we colelct from our array)

 

However, I have noticed that my piezoelectric measurement is often completely wrong.  The data from the acceleration measurement is for some reason coppied over and displayed in my graphs instead of the correct data from the piezoelectric sensor!  I don't understand why it happens.  If I short circuit Ai1 and Ai2, then Ai3 (which has the piezoelectric sensor) will work just fine and give me the correct measurement.  But when I try to measure all three simultaneously - it always gives me the wrong result.

 

I was wondering if someone could take a look at my VI to see if I am possibly using any of the data collection code incorrectly.  Or if there is another method to perform the same task that could isolate Ai1, 2 and 3 in a more clear and well defined way. (but they still need to all get collected at the same time!)

 

Thanks in advance for any recommendations that you have.  My code is attached. 

change driver from 15.x to 14.5

$
0
0

Dear all,

I would like to know how can I change the driver of my PCIe 6343 from 15.0 to 14.5.

Because I am using a software that require older version?

Thanks

SCXI-1102 multiple TC problem

$
0
0

Infrequent user here (unfortunately). Our lab has a setup like this:

 

SCXI-1303 -> SCXI-1102 -> SCXI-1000 -> NI-6251 -> laptop.

 

We've been running a student experiment for some time that uses a single thermocouple wired to channel a0, and I'm trying to expand it to multiple TC 's. I wired a second TC to channel a1, created a suitable task in NIMAX,  and started it running in continuous sample mode.

 

The result was a two-trace chart as expected, but both traces indicated the temperature on the first TC. Applying heat to TC0 caused both traces to go up; applying heat to TC1 had no effect.

 

However, if I create a task using either one of the TC's, its single trace responds normally to heat application.

 

I tried several other combinations of channel connections, and the behavior is the same: the temp reading of one channel dominates the other in two-TC mode.

 

Suggestions? TIA...

 

rj

Viewing all 6882 articles
Browse latest View live


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