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

NI-845x SCL electrical level always low (USB is not connect to PC and connect to PC) through scope

$
0
0

I had got two NI USB-8451 one is working, the other isn't working, using scope,I found that the broken one's SCL electrial level always low, not familiar with SDA Pin, how can I deal with it? 

when i opened the product the MCU- SCL pin is also low leval (abnormal),and MCU- SDA pin is high level (normal);

maybe the MCU is broken?

product PN: 192317D-02L, SN: 1B87CE5, 

 

 


Cheap LEDs ?

$
0
0

Hello,

I want to buy some cheap LEDs on Allieexpress or anywhere else,

 

Any recommandation if someone has already bought this?

Which wiring is differential? (drawn diagrams)

$
0
0

Hello Community,

 

I need your help wiring differential for our current input cards (NI-9253). We have also bought NI-9202 Voltage input cards which are also wired up for differential. Below are our wiring diagrams for each case currently. My question is: Is the NI-9253 card wired up for differential (ground referenced signal) and is it wired up correctly? Need some clarification on this please! I've looked through all wiring support on Knowledge.ni but still confused. (isn't in differential the ground is floating? no ref to ground) 

 

LawnMower3000_0-1596484130370.pngLawnMower3000_2-1596485124981.png

 

 

Can NI USB-8452 turn 5V on and off? (using DIO)

sbRIO-9627 I/O Clock Output Jitter

$
0
0

I'm using an NI sbRIO-9627 to provide clock signals for sigma-delta ADCs. I'd like to know what the RMS jitter of the I/O clock output is, as I can't find a concrete number in the datasheet/user manual. This will help me decide whether I need a discrete clock generator or not. Thanks!

sbRIO-9627 Output Clock Jitter Filtering

$
0
0
We are considering using the NI sbRIO-9627 to provide a stable and low jitter clock signal (20MHz clock derived from the 40MHz internal oscillator fed to the FPGA) for sigma-delta ADC’s. This would be achieved using the sbRIO CLIP generator in order to connect some DIO pins to the FPGA clock lines and feeding them to the clock input pins of the ADC. We would like to get an estimate of the amount of clock jitter that we would expect to observe.
 
Additionally, page 73 of the7 series FPGA clocking resources guide mentions that “MMCMs and PLLs reduce the jitter inherent on a reference clock. The MMCM and PLL can be instantiated as a standalone function to support filtering jitter from an external clock before it is driven into another block”. Would this jitter filtering functionality be automatically implemented when using the sbRIO CLIP generator to derive the 20MHz clock from the 40MHz clock or would it require manually writing/editing VHDL code to implement it? ( I understand that we can reserve MMCM resources when using the CLIP generator but is it possible to access these resources from LabVIEW FPGA?)

Lead Times

$
0
0

NI seems to make a good products, however with the lead times to get boards, I am being forced to go other directions. If this company wants to stay in business this needs to be addressed. In the time it takes to get a board, I can design one and build it. It is crazy that there is no US warehouse stock. In these day to have to wait 4-6 weeks to get a supposed off the shelf part is insane. I have a customer down and have to wait that long is not acceptable. 

Need help with NI-USB6501 and inverting lines of a DI channel

$
0
0

Hi,

 

I'm trying to achieve the following and not sure how to.

 

My interface with the outside world is giving me 5V when i need to detect something as active when calling the DAQmxReadDigitalLines function. But all lines are indicating 5V when inactive by default, so I can not detect the 5V from the outside world, since the device is expecting 0V from the outside world to make the distinction.

 

Here 's an example while reading 5 lines and wanting to detect a difference on line 5:

 

Current scenario:

 

  • Line1: 5V (inactive)
  • Line2: 5V (inactive)
  • Line3: 5V (inactive)
  • Line4: 5V (inactive)
  • Line5: 0V (active) ==> my software detects the 0V and does something with it

 

Desired scenario:

 

  • Line1: 0V (inactive)
  • Line2: 0V (inactive)
  • Line3: 0V (inactive)
  • Line4: 0V (inactive)
  • Line5: 5V (active) ==> my software detects the 5V and does something with it

 

This would greatly simplify my application. Is the DAQmxSetDIInvertLines function the way to do this? It does not seem to have the correct effect when I'm trying to test it.

 

Can someone help me with this. Does anyone have sample code of this DAQmxSetDIInvertLines function? I've checked all c-reference help there is, checked for sample code, but nothing..

 

Code snippet that i'm using:

 

DAQmxCreateDIChan(taskHandle, "Dev1/line0,Dev1/line1,Dev1/line2,Dev1/line3,Dev1/line4,Dev1/line5", "DICHAN", DAQmx_Val_ChanForAllLines);
DAQmxSetDIInvertLines(taskHandle, "DICHAN", TRUE);

 

Thank you in advance,

 

Sander


100kHz Variable Digital Output Pulse Train

$
0
0

I have to output what amounts to a Finite Non-Repeating (Variable) Digital Output Pulse with 61 Million points at 100kHz. I imagine I can't use the Finite Samples timing method but rather have to use Continuous Timing and constantly read the data from a file and update the output buffer with DAQ Write.  Unfortunately I don't have any physical hardware at this point and am using simulated DAQ (through max) to experiment to see if any approach is viable. 

 

Digital Output Example.png

 

 

I was thinking of continuously reading the pulse train from a file and writing it to a Digital Output task 10k - points every 100ms to update the DAQ output on the fly (as shown in the attached VI).   This seems to work in the simulated device, but then I noticed the onboard digital output buffers of most of NI hardware are only around 2047 samples making me wonder if I can even send 10k+ points at a time to the hardware without data loss.

 

My questions at this point are:

Is this viable approach? or will the small (2047) output buffer mean that I will have to update much faster eg ~ every 20ms (prob not possible on windows)?

Should I consider using a counter output where I continuously write high/low times since I have a relatively small number of transitions in each 100ms chunk?

 

 

Differential measurements on NI9025

$
0
0

Hello,
I am trying to measure a differential voltage across a FET, FET is operated at 48V but the differential voltage will be less than 1V.
Can I configure NI9205 as differential voltage measurement

Writing Digital Outputs in USB-6002

$
0
0

Trying to understand how to use Tasks and Channels to write Discrete outputs. I see where a Task encapsulates operations and information, and that one or more channels are created and assigned to a Task.

 

How do I write to a single bit in a Port?

In the example code it looks like a channel with 28 lines is created, and all lines are written at once.

Do I need to create a separate Task for each line?

 

Documentation refers to having multiple channels in a task, and that each channel can have a name that is referenced in calls to other functions. I can see how to create a name for channels, but not how to reference individual channels by name in a WriteDigital function.

 

Thanks in advance!

sbRIO-9627 RMC Connector Pinout Mapping

$
0
0

We are planning on developing a custom RMC board to use with the sbRIO-9627 however, we are uncertain about the pinout/orientation of the RMC connector, as the sbRIO-9627 user manual is not clear on that point. Looking at the attached image from the recommended Samtec SEAM-40-03.0-S-06-2-A-K-TR connector datasheet, are we correct in assuming that pin A1 in the datasheet corresponds to pin 1 in the sbRIO-9627 user manual and additionally that the columns on pg. 37 of the user manual correspond to rows A, B, C, D, E, F in the image?

 

Thanks

 

Untitled picture.png

 

 

 

 

 

SH68-C68-S Shielded Cable

$
0
0

I am using SH68-C68-S Shielded Cable  with PXI 7831R FPGA for signal acquisition. In  some of the twisted pairs (in SH68-C68-S), the DIO lines are paired with other DIO lines instead of DGND. Will it be helpful if I make one DIO line in each each of these pairs LO/HI  through FPGA.

PXIe-6544 HSDIO Waveform Generator

$
0
0

Hi NI Community,

 

I'm trying to use the module HSDIO PXIe-6544 to generate a clock (square wave) of a specified frequency. I found an example in the LabVIEW examples and made changes to it. This is outputting a 0101010101 pattern which simulates a square wave. How do I make it repeating so it is running forever like a clock signal?

 

hsdio.png

 

Thank you!

Sincronización LabVIEW y Arduino

$
0
0

Hola!

Estoy haciendo un control del temperatura con un DHT11 y arduino, para poder controlar un ventilador y un calefactor (foco). Bueno, pues ya he armado el block diagram y el codigo de arduino, y independientemente me funcionan bien, mi problema viene cuando los junto, no logro que la respuesta sea rapida, es decir, si tengo una Temperatura Real de 21°C y la Temperatura maxima es 20°C, deberia enceder el ventilador, pero la respuesta de mi arduino es lentisima, y a veces ni logra encender bien. Pienso que es la sincronización debido a los tiempos que maneja, si Labview controla los tiempos, no es necesario que arduino los tenga? porque si es asi, mi programa en arduino solo funciona con un delay. Muchas gracias, adjunto el VI y el programa de arduino si a alguien le sirve, gracias!  


NI Vision Builder AI and NI myRIO-1900 can communicate?

$
0
0

Can the Read/Write I/O in NI Vision Builder AI be communicated with NI myRIO-1900? I want to control an alarm through NI myRIO-1900 based on the Pass/Fail result of NI Vision Builder AI. Thank you. 

NI 9401, delay in sending output signal in different channels

$
0
0

I was messing around with a 9401 using LabVIEW's built in digital - continuous output example vi. I noticed that for every channel there is a delay from when the vi is run and the signal actually being sent. On channel 0 there's no delay but on channel 1 there's a delay equal to the pulse width and on channel 2 the delay is twice the pulse width, for channel 3, 3 times ect. 

Is this something built into the 9401, or is there something in code doing this that I missed? I plan on using 1 second pulses and having several second delays on some channels is not preferable.

I have a C-9184 4 slot system and a 4-20ma HART sensor.

$
0
0

I'm trying to get output from this 4-20mA HART sensor. I'm using NI-9205 and using ai0 but and not getting any output. Should my card be different than NI9205? trying to use MAX and my input is 21mA output from the device. my sensor say it's reading 4.1 mA.

 

because this is a HART sensor should I be using another card (AM-9898)?  HART is a digital protocol? 

 

please help I've got the NI-9205 plugged into a C-9184 chassis. what is the correct card I need for reading this device? thanks

Digital waveform output problem

$
0
0

Hello, my hardware is PCI 6251, 6351 and BNC-2120.

I made vi that can make analog waveform signal to digital waveform signal. 

I have problem with digital output.

In vi digital waveform graph, I can see the digital waveform which changed by analog waveform. 

so, I made digital output vi which can export to port0/line0 and check with oscilloscope.

The result was it doesn't work properly. only shows low signal when frequency is 100Hz and shows only high signal at 800Hz.

Thank you!

 

nicky15_0-1599639651795.png

nicky15_1-1599639762453.png

 

 

How can I increase the number of digital inputs?

$
0
0

The goal is low latency and simultaneous button presses. It should be able to read all 100 buttons simultaneously, and rather quickly. I posted a more general question regarding my whole project, but got a bunch of issues solved, and now this is the only problem I'm having. Which of these solutions would be the best for my application? (100 key MIDI controller)

-Charlieplexing (I heard it isn't good with simultaneous presses)
-Multiplexers (I've worked with them before, but using code that someone else wrote. I can't figure out how their programming works)
-Shift Registers (I've heard these are slow)
-Using analog inputs (Heard this only works with up to 5 switches at a time, and is also really unstable)
-MCP23017 (I have no idea what it is. Is it like a multiplexer?) -TLC 5940 (Is this a shift register? If it is, what makes it so popular on the internet? Would it work for my application?)

If you have any experience working with any of these, I would love to hear bout it, and anything helps, even some more search terms. So far, I've just been searching increase arduino digital outputs' on Google. I'm sure at least one of these solutions works, but I'm looking for the best one.

Viewing all 2183 articles
Browse latest View live


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