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

SbRio-9636 how to increase DIO to 37 pins

$
0
0

NI

 

I am working with the SBrio-9636 kit in the CRIO evaluation kit, and am liking the board quite a bit.  

 

Running into a little problem though. I have  a design that I wanted to try on the SBrio that requires around  38 dio pins.  The board has only 28 pins. What are my options for increasing the DIO pins?

 

Paul


ConfigureChangeDetection with NI PXIe-6535

$
0
0

We have a NI PXIe-6535 module. We want to monitor all 32 DIO lines as inputs in a single Task() using the ConfigureChangeDetection technique to receive a callback whenever a value changes.  We started by modifying the NI C# sample application called:

 

"NI-DAQ\Examples\DotNET4.5\Digital\Read Values\ReadDigChan_ChangeDetection_Events"

 

The modified start button click handler is in the next reply.(10,000 char post limit). The only real change we made was the hard coding of the device and edge parameters. We did this simply for this post.

 

It works for some amount of time and the callback stops firing. The amount of time varies between a few seconds and up to 30 seconds. Each callback simply echoes out how many elements are in the boolean array using Trace.WriteLine(). We do not attempt to update the UI as it is set up for 8 bits not all 32.

 

I created another post about not being able to use multiple tasks per device. It's unanswered so far:

 

http://forums.ni.com/t5/Measurement-Studio-for-NET/How-to-create-a-mutliple-tasks-to-read-Digital-channels/m-p/3019449#M15944

 

 

Bottom line is we need a way to monitor all 32 bits from a single task or multiple tasks. Right now we are only doing Digital inputs. Eventually we will need a mix of inputs monitored continously while writing to outputs.

 

Is this not supported? Are tasks not supposed to be long lived? Should we create a task every time we need to do something? The confusing part is that the test Panels for the NI PXIe-6535 support this exact thing. Why can't we do it from a C# application?

 

 

problem with digital samples of NI 9425 in windows 7 on usb 3.0 ports

$
0
0
I have a program in C that reads the digital samples of a device 9174 module 9425 in windows 7 x64 which has no problems with the USB 2.0 ports but with the 3.0. When I connect the device to a USB 3.0 port errors in the samples appear, are activated or deactivated lines uncontrollably. The PC is Artigo A1250, Drivers NI-DAQmx9.6

toggling digital output with analog input value

$
0
0

A totally new Labview DAQ system user here.

 

I have this project where i use USB 6002 to read analog input signal and convert the increasing voltage values to distance.

I was successful at this point.

My next step is to trigger/toggle my digital output with respect to the distance interval.

How ever, the digital output reacts only at the first interval.

 

Attached is the simple program i made.

Replace NI 9472 with module with more digital outputs

$
0
0

Hi, for my application, I'm using NI 9472 in c-RIO for communication with a single unit of hardware. Later, I'd like to use my program to control multiple hardware so I need a replacement for NI 9472 such that the module performs the same task as NI 9472 but has more digital outputs so that they can be used for multiple units. Are NI-9375 and NI-9476 good replacements? 

digital output in scan mode while measuring the voltage

$
0
0

I'm new to here, hopefully some one could give a hand. Thanks.

 

I have cDAQ platform (NI9178) with NI9403 & NI9222 modules. I need 6 lines of NI9403 as output for a scanner address (from 0 to 63 continuesly scan). Using one channel of NI9222 to measure the scanner voltage output. 

 

The scanner max speed is 45kHz. 

 

Please Help!!!

 

Thanks so much!

 

 

How to generate multiple digital outputs (square waves delayed) at 50 kHz?

$
0
0

I would like to generate 3 digital outputs like the picture attached at 50 kHz. Using the "digital pattern generator (marching values).vi", I can generate 3 digital square wave but without the delay time. How can I do that?

I'm using the card PCI 6034E.

Thank you

In field updates of the sbRio9606

$
0
0

I am looking at using an sbRio board in a deployable system however I'm not sure how I could provide updates to systems in the field.

Is it possible to perform in field updates of the sbRio9606 without having the complete NI environment installed at that site?

A simple procedure via a tool or via ftp/web page for example would be great.

 

many thanks for any suggestions / feedback


how can i connect 24VDC to digital input (usb 6008)

$
0
0

hello,

 

how can i connect 24VDC to digital input (usb 6008), is it possible with some optocoupler?

 

thanks

PCIe-6321 & ConfigureChangeDetection C# - Need to "debounce" the detection - event triggered multiple times

$
0
0

I am working on a C# NIDAQmx application for a hardware configuration that uses a PCIe-6321 to interface with downstream hardware.  There is a DI signal from a manual switch on the downstream hardware that I must monitor for the start/stop signal for my application's data acquisition operations.

 

I was having inconsistent results using the ConfigureChangeDetection NIDAQmx functionality.  So I used the ReadDigChan_ChangeDetection sample and using Debug.WriteLine statements have verified that when the switch on the hardware is toggled, multiple ChangeDetected events are thrown before the signal settles into the actual High or Low state.

 

Since I am not a hardware guru, I consulted another engineer, and was told that this is common with switches, and the signal and/or change detection needs to be "debounced". 

 

Can this be done purely through additional configuration of the NIDAQmx DI task?  I saw properties for digital filtering, but don't understand their use.  I looked at the ReadDigChan_ChangeDetection_DigFilter sample, but it seems to imply that some other DI needs to be connected on the card to be used as the filter, which I don't have.  Only one DI is coming from the downstream hardware.

 

Any help and/or advice will be greatly appreciated.

i need to switch a 12V relay using USB6211.i am stuck with programming

$
0
0

i need to switch a 12V relay using USB6211.i am stuck with programming  using daq assistant. i am doing hardware implementation also..can anyone give some help...

 

NI 6008 to control I/O Solid State Relay Omega DCO5-C

$
0
0

Hi NI Community,

 

I am trying to use my NI 6008 to send a TTL signal for switching 12V DC in a solid state relay (Omega DCO5-C).  This relay is controlling the power to a solenoid valve. 

 

For the solid state relay, "output modules receive TTL signals from the computer interface, and will switch ac or dc power lines on or off".   The LED light on the backplane light up when 5V is supplied, but I do not get switching of the 12V DC power.  

 

Can I not send the appropriate TTL signal with my NI 6008?   Is there any way to create the correct signal?  I have read up on TTL signals, but this has been my only lesson.

 

Any advice is appreciated. 

 

Thank you in advance,

 

Kelly

Termination for digital output using 7811R and SCH68-68: output/characteristic impedance

$
0
0

Hello,

 

I want to use the PXI-7811R with the SCH68-68 cable in order to control some custom circuitry. I will use the 7811R for now as an output only. The signal integrity and timing are important so I would like to determine the best type of termination to use in the custom circuitry in order to minimise relfections. I could not find any published specification for the characteristic impedance of the SHC68-68 cable (I found some information on some of the other 68-pin cables, however not specifically the SHC68-68), additionally there was nothing about the output impedance of the 7811R, except for an indirect mention in the following KnowledgeBase article: http://digital.ni.com/public.nsf/allkb/D58C269F7771770E86256F490082E6C8

 

"The output impedance for the R Series devices is non-linear due to the circuitry used to provide 5V tolerance. The output impedance is low (<50 ohms) for output voltages near 0V. As the output voltage increases to around 3.3V, the impedance rises to approximately 100 ohms. As the voltage rises beyond 3.3V, the impedance rises very quickly to megohms."

 

I would like to find out what the characteristic impedance of he SHC68-68 is, and to verify that the above statement in the KnowledgeBase definitely applies to the 7811R, and if so then whether more precise information is available - i.e. how much exactly is meant by "<50 ohms", as this in combination with the cable's characteristic impedance will directly relate to how much signal is reflected for a second run towards the receiver in case the receiver is not properly matched.

 

Of course I could determine these answers by careful experimentation, however I was quite surprised that this information was not published so I wanted to see if these figures are at all available before spending time determining them myself.

 

Many thanks in advance!

 

Synchronization of multiple USB-4431

$
0
0

Hi,

 

Can multiple USB-4431 units be synchronized together using the digital i/o port to share the sample clock?  looked at docs but I don't fully understand the pin assignments for the digital i/o connector. 

 

If it is possible would it require labview level timing or would NIDAQmx handle it via channel expansion?

 

Thanks.

NIMAX, How to create digital line for GPIO address

$
0
0

Please let me ask a question about the NIMAX and PC's port IO address.

I have one industrial PC that have GPIO port available.

The example for the address read and write was show on the below.

the port address number is 50Ch.

How i can create the digital line 50Ch in the NI-MAX.

Thank you for all suggestion.

 

 

1.jpg


SCXI-1001 not detected in NI-MAX

$
0
0

We have just upgraded to a newer PC running Windows 7 64-bit.

The old PC was Windows 2000.

 

The DAQ card NI PCI-6071E is detected in N(-MAX.

There are no errors in Device Manager.

 

NI-DAQmx 14.2 is installed.

 

The SCXI-1001 chassis is not detected in NI-MAX.

 

What else do I need to do?

 

 

 

 

trigger digital output at every 10 digital pulses

$
0
0

How can i generate an output pulse at every 10 input pulses comming from an encoder?

 

I need to trigger a sensor at every 10 encoder pulses to get data from the sensor.

FPGA DAC

$
0
0

Hi Everyone.

 

I have gotten the idea that I would like to try and make my own DAC from my sbRIO evalution FPGA.

 

I would like to make a 0-10V output with a DAC and an op-amp from a bipolar PSU +12 / -12.

Temp. Compensation will have to come later unless it's included in the op-amp.

 

Have any of you experience with this and what would be the preferred protocol to start with, I2C or ISP?

I think 12 bits would be enough for me to start with, and something that is not multiplexed.

 

If any of you have a code or schematic to share it would be really great, also what should I look for when ordering components.

I have a few ADI books on the subject to guide me.

 

Please take note that I am not that familiar with electronics. I.e I have no education in this field, self taught.

 

Any guidance and what components to start with would be very helpful.

 

Thank you in advance.

 

/Daniel

non-blocking precisely timed digital output

$
0
0

Hello,

 

I'm fairly new to DAQ coding so please bear with me. 

 

I have a PCI-6221 that I'm using to send 16 bit signals to one device, read multiple analog signals from another device, and send a 1 bit signal to a third device. These 3 operations are controlled by a matlab program that runs at ~1khz. At certain points during operation I need the first two operations, the 16 bit signal and the analog read, to continue while the third signal is sent with as high a temporal accuracy as can be achieved, much better than the 1khz the matlab program runs by default. The third signal is sent in trains of ~100-200ms with between 40 and 120 pulses with arbitrary timing.

 

My question is: is there a way to offload the responsibility for sending this third signal completely to the DAQ card and have it run autonomously while that is being generated? As in, can I turn the digital write into a non-blocking 

operation? I had thought to create a buffered digital output task and give it a vector containing the entire signal train in discrete time chunks, relying on the card's internal timer to send each consecutive element in the vector on time, but so far I've been unsuccessful with this approach. This may be due to my programming, but if anyone can tell me if this is even possible before I continue banging my head against it, I would appreciate it. If anyone has a better approach, that would also be appreciated, as the vector containing the entire 200ms signal at 1mhz can get fairly large (200,000 elements).

 

To put it in schematic form, I need the following:

 

Matlab program calls DAQ mex file with 200ms digital output task

DAQ card buffers/internalizes this output task somehow

control is returned to matlab

at time point x DAQ card sets port high with no matlab oversight

at time point y DAQ card sets port low with no matlab oversight

contd for duration of signal train...

at the end of the signal the DAQ card frees the resource for matlab to use on the next signal train iteration

 

Thanks!

 

6555 simultaneous generation acquisition

$
0
0

Hi we are trying to get data in and out of a 6555 card to/from our DUT, which is hooked up to the 6555 card via the provided LabView cabling and with the manual VI tool that can drive sample data out the card, the wiring is correct (confirmed on scope).

 

However, when we run our automated program that is supposed to load our datafiles and send them out, we do not see the signal at all on the same pin that we drove it with the manual VI tool.

 

The way our hardware guy wired the board up is kind of arbitrary (some channels are inputs, some are outputs, and not in any particular sequence or organization).

 

As a silly test to start with we have channels DIO0-DIO15 mapped to acquisition, and DIO16 mapped to generation.  There is one HWS file I created that contains the data stream for DIO16, and then we want to record DIO0-DIO15 while DIO16 is sending data out.

 

However, we do not see data coming out the wire yet.

 

Two main questions:

 

1)  What string values should we be passing to niHSDIO_AssignDynamicChannels() to set up the channel assignment like this?

2)  Do we need to padd the channels in the datafile we are sending to niHSDIO_WriteNamedWaveformU32?

 

I am wondering if perhaps the data we are trying to send out to DIO16 is going out DIO0 or something.

 

Thanks.

 

Ed

 

Viewing all 2178 articles
Browse latest View live


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