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

NI 9401 open-collector output in Python

$
0
0

Hi, I'm setting up a test system interfacing to a 1V8 device to simulate button presses that normally pull to ground. So I was very happy to find that the IO's seem to be configurable using the DigitalDriveType.

Using advice from Open-Drain Configuraiton for USB-6000 with Python I was able to get the code working, but the IO's still don't behave like open-collector/drain ...

Setup code:

self.nidaqmx_simple_io = nidaqmx.Task()
self.nidaqmx_simple_io.do_channels.add_do_chan(digital_io)
self.nidaqmx_simple_io.do_output_drive_type = DigitalDriveType.OPEN_COLLECTOR

Any suggestions? Could of course be that the module just doesn't support this configuration - e.g. USB-6501 clearly states that 'open collector(open-drain)' is supported, but I can't find that for any C Series Digital Module's ...

Thanks in advance and best regards Jesper


Reg: USB 6002

$
0
0

Hi,

 

I Have a USB 6002 Card. In that card i want to know that what is the max & min range of voltage&current generated in DO.

i need to know about the 1. Active region 2. Open collector i am not aware of the detail that is mentioned in the Data sheet

USB-6501 maximum data throughput

$
0
0

The spec for the USB-6501 say the USB runs up to 12Mb/s.  Does this mean the USB-6501 can write output data around 1MByte/sec?  If not, what is the maximum data rate on the digital output?

 

Record from many I2S mics

$
0
0

What board do I need for recording audio from 32 I2S microphones (such as this one ) simultaneously at a sample rate of 32-48 KHz per channel? It's for a microphone array for sound localization. 

Output from Matlab not received by NI DAQ 6221

$
0
0

Hello,

I am a student at Aalborg University in Denmark and I am working with a USB 6221 DAQ. My goal is sending a digital square pulse output from Matlab. The problem is that due to the high frequency (1MHz) I need to generate pulses with a width of 200 microseconds in Matlab and send them via DAQ to device 1. I  furthermore have an input signal from device 2 with a sample rate of 1,000 Hz. My problem is that I can't send the square pulses to device 1. I think it is probably because I try to use two frequencies 1MHz (output) and 1,000 Hz (input) simultaneously. 

Can anyone help me?

Thank you in advance

is it possible to control four 8 bit-port from P0 32bits in PCI6229 ?

$
0
0

I'm going to replace PCI6025E to PCI6229 due to EOL of  PCI6025E in our tester.

In PCI6025E, these are one DIO0-7 port and three 8bit-port that are used in our tester.

I'd like  to set the same from for PCI6229,too.

and My question is ,as tthese is one P0 32bit-port @PCI6229,

is it possible to control four 8 bit-ports from P0 32bit-port  ?

Pls tell me about the above.

 

PS

the used software is VC++ and Daxmx. PC is window-7

NI-RIO on Ubuntu

$
0
0

Hi fellas !

I'm looking for a way to install the NI RIO 17.0 drivers on a Linux Ubuntu 19.04 desktop environment.

When running the INSTALL script from the ISO, I get this error :

Warning: glibc was not found in the rpm database, but
         it appears to be installed on your system.
         This most likely means you are not using a RPM based
         Linux distribution, and need to manually populate your
         RPM database, or install with the --nodeps option.

and the install stops. Which is weird, because glibc IS installed, both in the rpm database (using alien and the last version of a glibc rpm file)  and with apt.

At this point I decide to try and install with the --nodeps option. The libs are found, I get the Terms of Agreement displayed and all. This is when I get this error : 

************************************ ERROR *************************************
 It appears that a x86 version of libstdc++* is not installed.
 Please install a x86 version of libstdc++* before installing NI-RIO.

 Try 'yum search libstdc++*' to see available versions. Refer to your
 distributions documentation for more information.
************************************ ERROR *************************************

Which is also not the case. I'm quite out of options here.

 

Any suggestion welcome ! Smiley Happy

 

Error: acquisition-only attribute (PXIe-6547)

$
0
0

Hi guys,

I am struggling to use C++ codes with PXIe-6547, and it makes error as follows. 

"Error description: This attribute or function is not supported in this session. Ensure that you are not using an acquisition-only attribute or function in a generation session or a generation-only attribute or function in an acquisition session."

I attached one of the c++ code that makes an error. Is there anyone can help me to solve this problem?

Thanks in advance!

 

 


Generating a square/sine wave output with FPGA cRIO (NI 9704, NIO 9401)

$
0
0

Hi all,

 

This is my first post, so bear with me if I don't add everything needed to answer this question. 

 

I am using a cRIO (9074) in FPGA mode, along with a NI 9401 Digital I/O c-series and trying to output a square wave. This will then be sent to an external signal generator, which will boost the signal voltage so that the square wave can be used to trigger a plasma source (set-up to trigger on rising edge based on the external signal generator output). I have two questions that should help me complete this, one hardware and one software.

 

Hardware:

I am unfamiliar using the DIO / COM / NC pinout used in the NI 9401 (see pinout in attached manual, http://www.ni.com/pdf/manuals/374068g.pdf). I currently have my output wired to Pin 1 (DIO0) and pin 14 (COM). My understanding is that this will allow me to use DIO0 only. I have also ensure that DIO 0-3 are set to "output". Can you verify this is the correct pinout for receiving a digital output from DIO0? I am right now not seeing the signal at all on an oscilloscope, but realize the order of the two wires will be important in the future. Brownie points if you  can also help me better understand the DIO / COM / NC trio, and what this is commonly used for. 

 

Software: 

In the attached VI, the "Control loop" contains a signal generator connected to the DIO0 output. I use "Plasma On?" in the GUI, and have verified that it is activating the "true" case. I should expect this to output the desired square wave, but have viewed nothing but noise on an oscilloscope.

 

I have alternatively seen physically setting the DIO to true and false, such as in the turbine example NI provides (www.ni.com/pdf/products/us/fullcriodevguide.pdf , pg 11, see picture). If there isn't an issue on the hardware side, can you shed any light why I am not getting a readable signal here? 

 

Thanks so much, happy to provide more as needed

Sending Digital Signal via Visual Studios

$
0
0

My set up is as follows:

 

Comp1======USB-6509-CP======CP-100 I/O Connector Block

 

I want to be able to make a program in Visual Studios 2017 that will send a signal from one of the screw terminal pinouts to be received by another similar set up (wired together of course). Is there a way to do send such a signal without using DAQmx? Or am I dead in the water because Measure Studios doesn't support VS 2017 yet?

NI9159 abd DSM?

$
0
0

Hello,

 

I have a NI9159 with some C-Series modules installed and I’d like to use the Distributed System Manager to read from its DIs and write to DOs on the fly, for testing purposes; I understand that I should be using this tool from https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7gtSAC&l=en-US .

After having connected the 9159 through an MXI cable to a PCIe-8361 mounted in a Windows System with LabVIEW installed, I can find the chassis under “My Systems” of DSM as “RIO1”; however, I can’t see any of the modules installed, so there is nothing I can check or control.

Am I missing something? Should I be able to use this tool for my purpose?

Thanks in advance!

Trouble generating 50MHz clock digital output with myRIO-1900, sbRIO-9602, and PXI-7811R

$
0
0

Hi all,

I'm trying to drive a DS92LV16 16-bit Bus LVDS Serializer/Deserializer chip using any NI FPGA I have my hands on. The problem is that this chip needs as a minimum a 50 MHz clock. My FPGA boards all have 40 MHz built-in clock, and when I use a derived 100 MHz clock to generate a 50 MHz digital output, the signal comes out weak. What is mean is the oscilloscope is showing a peak-peak amplitude of less than 1 Volt when running at 50 MHz. When I drive a 4 MHz clock through a digital I/O pin I get nice peak-peak signals around the 3.3 V needed to drive CMOS logic.

 

Can I use the myRIO-1900, sbRIO-9602, or PXI-7811R to do this? Can newer hardware help? If so what models would work? Or can I use a buffer chip to precondition the signal for driving hardware?

 

Thanks!

 

Change detection in PCIe 6509 in shared board

$
0
0

I have a situation where I have multiple applications sharing the ports of a pcie 6509.  This works correctly for static dio, However, when I set up a change detection, I can only set up on one application at a time, in spite of addressing a different port on each application.  Is this a feature or is there a way to do this?  I am interfacing using:

Daqmx 18.6

Measurement Studio

C#

Visual Studio 2017

thanks, Derek Hopkins

6025E connector upgrade path

$
0
0

We have been using 6025 PCI card for many years but it has since gone end-of-life.  The product page recommends NI PCIe-6321 X Series board. My question is if there is an upgrade path for the 68 pin connector. We have a custom manufactured I/O panel that interfaces with the 100 pin connector that ideally we would like to continue using for a new card.

TIA.

NI-9229 Sensitivity

$
0
0

Hi,

 

I'm working on developing seismic digitizer so, we trying to configure the NI-9229 to match the required specifications. 

Please, I wanna to know the NI-9229 sensitivity (what's the relation between counts per volt) in order to calculate the system sensitivity after connecting seismometer ( sensor for measuring seismic wave).

Kindly, download the attached picture for the current configuration. Moreover, what is the corresponding sensitivity in case of changing the voltage input range (V_peak to peak).

 

Great Thanks 


NI 9205 measure the voltage of a load with high current

$
0
0

I have a load. The voltage on it is less than 10 V. Due to its small electrical resistance, the current on it is over 2,000 A. 

Can I use NI 9205 to measure the voltage on this load?

high speed output of custom bits

$
0
0

Hi all.

I am building my own communication message protocol and I am looking for NI device or HW to output voltages of 0s (<2.5V) and 1s (>2.5V up to 5V) at speed of 1 micro-sec per bit. Lets say 1 = a transition from 0 (holding for 0.5 micro-sec long) to 1 (holding for another 0.5 micro-sec long) to make the one bit = 1 micro-sec.

I have a USB-6001 device, but if I use DIO or AO channels, I can only switch between 0s and 1s every 1 msec, which is slow. Even if I have the switching done in a for-loop using NI-DAQmx software package. I am using Visual Studio C++ for my src.

Anyone has any thoughts of what NI device i can use? or maybe I should use something different than Visual Studio?

thanks

Synchronized TTL Output

$
0
0

Hello,

 

     I'm looking for a PXIe or PCIe card that can provide at least 8 TTL digital outputs. Any 4 of these TTL digital outputs will need to be synchronized in an arbitrary/programmable way (i.e., separated by specified delays). Need said delays to be programmable and accurate to within +/- 100nSec.  Anyone have an idea or a recommendation?

 

Thanks

Measuring current using a shunt resistor and a DAQ

$
0
0

Hey,

I have been doing a current measurement system, which uses one or more DAQs to measure current using shunt resistors.

I wanted to calculate (simplified) the resolution of the system and ran into the following sentence.

 

Current measurement guide says: "you should use the smallest value resistor possible because this creates the smallest interference with the existing circuit. However, smaller resistances create smaller voltage drops, so you must make a compromise between resolution and circuit interference."

 

Question is how does resistor size (value) affect resolution?

 

Because if you have a DAQ e.g. NI 9238 that has 24 bit ADC and +-500 mV range, isn't the resolution always the same: 1/2^24 = ~60nV, as long as the voltage drop doesn't go below 60 nV?

Suggestions for NI Hardware for my testbench design?

$
0
0

Currently I am building a production level test bench which can handle a large quantity of devices under test.

 

I am looking for an NI device which can measure the current/power consumption from multiple units (all the same device).

I currently am using a modified power cable that I have connected to a power supply to get the current/voltage readings from each unit, but I'd like to be able to take this data and integrate it into some existing LabView test stand code hence the search for an NI DAQ device.

My idea is currently to add a 0.1 ohm resistor in series to a portion of the power cable in order to measure the voltage drop and in turn get the current reading that is in-line to my device. I'm trying to avoid having to connecting an NI device in series to measure the current as I'd like interfere with the signal across the cable as little as possible (hence using a 0.1 ohm resistor). Therefore I'm trying to find a solution that can effectively get the voltage off the 0.1 ohm resistor.

 

My expected voltage draw from my device is ~5V and the expected current during full operation is ~110mA.
Do any of you have any suggestions on an NI Device that would be able to perform this task? I am also willing to modify the design if there is possibly a more common NI device solution for this.

Viewing all 2183 articles
Browse latest View live


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