Quantcast
Channel: Digital I/O topics
Viewing all 2182 articles
Browse latest View live

USB-6009 Digital Output Current

$
0
0

Hi, I'm trying to increase the voltage of the digital outputs of USB-6009 device. I read a couple topics about using a relay but I could not manage it.

 

I was thinking to use 5V supply on the card since it has 200mA current on it, but when I use it with open-collector output, it can not switch the relay. When I measure the current between

5V and ground: 200mA,

5V and output, I read a value around 30-40 mA.

Why can't I use that 200mA with an output? This is the relay I'm using.

 

If this is not possible, can I use an external 5V supply (with more current) and a digital output to switch the relay without damage the 6009?


Timing gap in onboard looping in the PCI 6543

$
0
0

I want to do onboard looping in the PCI 6543. Is there any timing gap between the loops? Within each loop, the board updates data with each clock strobe. After finishing the last sample of a loop, will it move on to the first sample of a new loop immediately with the next clock strobe? If not, how long does it take to transit from one loop to the next?

Operator interface switch to control SSR NI9485

$
0
0

I am struggling to control a SSR module from Signal Express.

 

The setup is a cDAQ9188 chassis and NI9485 8ch SSR module switching a 10v supply.

 

I have a DAQmx Gen - Digital line output set to control the NI9485 and if I toggle the value to write in the configuration tab between high and low the SSR does function.

 

What I cant seem to get to work is controlling the output from a toggle switch in the Operator interface, I have been into the switch bound parameters and selected the module and port.

 

This is my first time with NI software/hardware so I am guessing I am missing something obvious, if anyone can point me in the right direction it would be much appreciated.

 

Thanks

 

 

 

 

USB6009 vs 6001

$
0
0

Hi,

 

I have a doubt about these two hardwares. 

If I change a 6001 for a 6009 in my program does it works? Do I need any new firmware or change in my program?

linux driver

$
0
0

Hello,

 

I am trying to install the proper driver for the USB-6501. I used the iso file from the link below.

 

http://www.ni.com/download/ni-daqmx-base-3.7/4269/en/

 

My system said that the install was successful, however when i go to open up one of the applications (such as Driver Wizard or NI I/O Trace) I get an error message. It says "failed to execute child process "usr/local/bin/niiotrace" (no such file or directory)). But I go to that directory and I see it is there. Is there something else that I need to install or did I do something wrong during the install process?

 

I am currently running redhat 6.6 with kernel 2.6.32-504.el6.x86_64.

 

Thanks

NI-7854R Slew Rate Ajustment

$
0
0

Is there a mechanism through witch I can change the slew rate of the digital output pins on the N-7854R, or any of the RIO cards ?

Digital Input Current Limits

$
0
0

Hello,

 

After reading all that manuals and specifications, I decided to ask a general question.

 

In the datasheets, user guides that I read, generally there are two warnings for DIO:

-Do not connect digital outputs to circuits which drives current above limitations,

-Do not drive the line with voltages outside its operating range.

 

Talking in general, these tell me that I need to pay attention to current when dealing with outputs and to voltage when dealing with inputs. So I have that question, can I wire a power supply to digital inputs directly without exceeding its' normal operating range and without any protecting circuit? Actually in my feelings, this is not possible. But why some product documents clearly mention the internal impedance of inputs while others does not clearly indicate those? How can I decide if I can connect a signal directly to an input (for example USB-6525 indicates a current limiting circuit, but I can not see a clear explanation in datasheet of USB-6251)? 

NI 9219 Chanel out of order

$
0
0

Hi,

 

we're using NI 9219 + NI cDAQ-9181 on several production equipments to measure voltage and current on the produced parts. We're currently facing several chanel breakdown on different equipments. We are using those chanels around 2 seconds each 2 minutes, 24 hours a day, 7 days per week.

Is there any known "lifetime" limitations for those equipments? Or someone did already face such issue and found any root cause?

 

Thanks for your support

 


Basic Rundown of Digitial IO Techniques with Examples.

$
0
0

Hey Folks:

 

   I seem to be orbing around a solution to what I need, but always run into an error, that it seems nobody else is running into. I think I'm missing something.

 

   Trying to do digital input with DAQ-mx on a PCIe-6535B   along the following lines.

 

Data -----  X_BE56_X_78CD_X_FFE2_X .........

Strobe _____----_____-----_____----___  .........

 

I'm sending the strobe into PFI5 and the data are going into data ports 0 and 1.

 

I'm getting a errors along the lines of data timeouts etc along the lines of

DAQmxErrorCannotReadRelativeToRefTrigUntilDone                             (-200281)

 I don't fully understand what DAQ-mx input modes are and I can't find a full write up that goes into depth on all the modes and how they work.

 

Also it seems that DAQ-mx is self contained. I can't find any write ups or examples on how to size buffers and transfter acquired data into arrays and files so I can actually do something with the data.

 

I'm using the canned examples, I've attached one, but there's very little explained here. Does anyone have any pointers?

 

Thanks

Andrew

What is the max sample clock using the Shielded Single-Ended Flying-Lead Cable

$
0
0

Hi

 

What are the max practical limits for the sample clock using the Shielded Single-Ended Flying-Lead Cable?

 

I am playing with the Labview embedded example "Dynamic Generation and Acquisition Source Synchronou.vi" using the Shielded Single-Ended Flying-Lead Cable and the PXIe-6556.

This example write in the channels 0-7 and read in the channels 7-15.

It also export the sample clock and data active event so we have a "Source Synchronous"

 

I change the original example to set the input impedance to 50ohm and VH and VL voltatages.Write 3.3V - 0V and read 0.5V 0.3V.

 

The problem is the signal integrity at higher frequencies. Please see the picture attached.

 

Sample clock 30MHz

30MHz

 

50MHz

50MHz

 

70MHz

70MHz

 

90MHz

Error: PLL could not phase-lock to the external reference clock.

Controlling MAX 5483 Digital Pot using SPI and NI 9474 in cDAQ 9188

$
0
0

Hi,

I am attempting to control a 10k MAX 5483 digital pot (http://datasheets.maximintegrated.com/en/ds/MAX5481-MAX5484.pdf) using the SPI interface. I am using the SPI digital waveform library to generate the clock and MOSI signal and simply setting the CS low beforehand and high after. I had used an Arduino Uno and the LIFA with the digital pot and it worked, and from what I can see, I am outputting the same signal from the NI 9474. However, the resistance either doesn't change or it changes to one of a few wrong values, leading me to believe that this might be a synchronization issue. I have attached my cDAQ code as well as some snapshots from an oscilloscope of the signal from the Arduino and corresponding signal from the 9474.

I'm out of ideas so any help with this is greatly appreciated!

 

 

How do I create a very accurate 50 msec pulse with a 1.05 sec period using a usb 6356 DIO port?

$
0
0

Using a usb-6536 card I need to create 6 synchronized DIO outputs that output a 50 msec pulse with a period of 1.05 seconds. It needs to have a 10 usec resolution. I have looked at the counter feeding the DIO examples but cannot get them to work. Not sure how to use tick counts or internal board clocks. I also need to sync the AI timing to the DIO output.

PXIe support with respest to digital I/O

$
0
0

Hi, I have developed a program for demodulation of RF data stream in FPGA 7999 interfaced with NI tranceiver 5791.Data gets demodulated and than stored to FIFO as required. After acquiring RF data stream it gets demodulated IN FPGA.Recovered data is than output from NI 5791 transceiver Digital IO port. I have question regarding data which is getting out from 5791 is in pulse like form.BUt I require data to be of continuous type rather than pulse form. My second query is that I also want to generate clock with the demodulated data.Right now I have mapped output enable pulse at output but my objective is to output a proper clock with akllmost 50% duty cycle with continuos demodulated data. VI is attached kindly look and guide accordingly.Thanks sample project is also attached

Read and Write Error D I/O

$
0
0

Hello All,

My company recently got a NI cDAQ-9178 with the NI 9403  module and NI 9923 terminal. I am still learning LabVIEW and I need my program to generate a single low pulse when the pulse wave that is used as a trigger in the PFI0 terminal goes low. It also has to continuously monitor the state of an LED through the NI 9923 terminal. I created a task for both the reading and the writing part. I ran them separately and they work, but when I run them together in the same VI, it gives me

 

Error -201105

Possible reason(s):

Resource requested by this task has already been reserved by a different task with conflicting settings.

Unreserve any other tasks using this device, or change their settings to be compatible with this task.

 

I'm not sure how to fix this. The VI is attached. Thanks for any help in advance!

usb8451 open_drain DO 3.8V i.s.o. 5V

$
0
0

Hey,

we want to use the usb8451 device for DO 5V level. (open_drain)

We only get 3.8V.

 

How to ?

 

regards,

Koen.


4-20ma to rs232 coverter

$
0
0

Please how can i design an electrical diagram for '4-20ma to rs232 coverter' ?

9205 stops working

$
0
0

Hi, I have NI 9205 module in cRIO system. When my VI starts the module work normally (reads two channels every 50 ms). After some time (usually 24 hours) it stops giving data. The only way to restore its function is restarting cRIO. What can go wrong?

Thanks

USB-6001 - Change between Open Collector and Active Drive in .NET

$
0
0

Hello,

 

I want to use the digital output of the USB-6001.

 

According the data sheet it can be configured as "Open Collector" or "Active Drive". The default configuration is active drive.

 

How to change the configuration in LABview, is described here:

http://digital.ni.com/public.nsf/allkb/D9B4018C3E540CE4862570F30068C0DB

 

Since I have written my own programm using C# and .NET 4, I am now looking for the code to change the configuration of the output.

 

 

USB 6501

$
0
0

I'm using the USB 6501 Digital I/O module, NI MAX 14.0.1 Driver, LabWindows/CVI.

Why all the outputs / inputs go high state when I restart and bootup my PC.?

They should stay at the state that the program has set. or at the low state when the PC restart

Error -200077 in DAQmxCfgSampClkTiming

$
0
0

I'm trying to use an NI USB-6002 device as a shutter controller. It should receive a trigger signal input and in response send one or more pulses along its digital output lines. Based on the example in this link, I wrote up this code in C++:

 

            char startTrigPort[256] = "/Dev1/port2/line0"; // source trigger port
            char taskName[256] = "Trigger test task";
            int numSamples = 1000;
            int samplesPerSec = 100;
            TaskHandle handle;
            error = DAQmxCreateTask(taskName, &handle);
            if (error) {
                return logError(error, "CreateTask");
            }
            char outChan[256] = "Dev1/port0/line0";
            error = DAQmxCreateDOChan(handle, outChan, "", DAQmx_Val_ChanForAllLines);
            if (error) {
                return logError(error, "CreateDOChan");
            }
            error = DAQmxCfgSampClkTiming(handle, "OnboardClock", samplesPerSec, DAQmx_Val_Rising,
                DAQmx_Val_FiniteSamps, numSamples);
            if (error) {
                return logError(error, "CfgSampClkTiming");
            }
            error = DAQmxCfgDigEdgeStartTrig(handle, startTrigPort, DAQmx_Val_Rising);
            if (error) {
                return logError(error, "CfgDigEdgeStartTrig");
            }
            // 10000 matches number in CfgSampClkTiming
            // Wait 10s for writing to complete (maybe should vary based on length of
            // data being written?)
            uInt32 *sequence = new uInt32[numSamples];
            for (int i = 0; i < numSamples; ++i) {
                sequence[i] = (i / 50) % 2;
            }
            int32 numWritten = 0;
            error = DAQmxWriteDigitalU32(handle, numSamples, false, 10,
                DAQmx_Val_GroupByScanNumber, sequence, &numWritten, NULL);
            if (error) {
                return logError(error, "WriteDigitalU32");
            }
            if (numWritten != numSamples) {
                LogMessage(("Didn't write all of sequence; wrote only " + boost::lexical_cast<string>(numWritten)).c_str());
                return 1;
            }

(the logError function just calls DAQmxGetErrorString, logs the result, and then returns the original error code)

 

As suggested in the title, I'm getting an error -200077  when I call DAQmxCfgSampClkTiming, with the error message being "Requested value is not a supported value for this property. The property value may be invalid because it conflicts with another property."

 

I don't know what's going wrong here. According to the documentation, the parameters to that function seem correct, and our device really ought to be capable of 100 samples per second for 10 seconds, so I doubt the sample rate or number of samples is an issue. Any advice?

Viewing all 2182 articles
Browse latest View live


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