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

Digital input trigger

$
0
0

Hi,

Is it possible to trigger measurement on digital input using signal that I want to measure? In example:

I want to measure PWM on P0.0 after first rising PWM edge on P0.0, but using only this P0.0 line (no PFIs in use, only one digital input used).

 

Im using X SERIES USB -6353.


data sent from dequeue function to measurement file incorrect

$
0
0

Hi,

I am running Labview Base 2013 and have a vi that is reading data from an RS232 port and a NI-USB6002 digital port.  I decided to split the loops into consumer/producer using queue functions, but have run into four snags with the data retrieval loop. 

1) The digital pulses are displayed correctly in the USB Signal loop, but the data retrieval loop does not show the RS232 data,

2) The data being combined in the data retrieval loop to the measurement file is writing but is not properly separated into their respective columns, i.e. a column is showing data from either of the loops

3) Stop button is throwing Error 1, incorrect path

4) the actual inches control when wired to the data retrieval loop and into the combine signals for the measurement file causes the vi not to run properly.  It runs but does not display data in the charts from either of the loops and no data is written to the measurement file.

 

I added an indicator in the RS2323 loop and it does display the data correctly on the front panel, but does not display in the chart.

I am able to run this vi without the enqueue functions and just write the data out to two separate measurement files, but this is requires me to sync the data set later on.  Not quite what I need.

 

Image of vi attached.

 

loggingtwosignals.PNG 

 

Thoughts?  Will streaming to TDMS work better to keep the data streams separated?

 

 

generate clock using labview

$
0
0

hello there i am working with digital potentiometer  AD5206. AD5206 work with SPI. i want to control AD5206 with labview. like i want to give input  register using labview. i want to give input clock using labview. now i think i require some microcontroller between AD5206 and labview. i have rasberry pi now. can any one tell me how to do this? can we use arduino uno??

delphi with pci-6509

$
0
0
I have a pci-6509 card I would like to use delphi to program it. Does anyone have an example of how to read/write to the outputs/inputs. Also what dll. Is needed . And is there a .pas file to communicate with the dll? Thanks for any help

BTW this is on Windows 7 64 bit

Diagnosing Error 65548 overcurrent or overvoltage.

$
0
0

Hi all,

 

I have a question regarding overcurrent/overvoltage error detection of the NI 9476 digital output module.

As I understand it, if using the module in Scan Interface mode, only a module-specific error 65548 is supported, and it is not possible to determine which channel the error is on. Does this mean that none of the channels will be controllable, since attempting to write to any of the module's I/O variables will result in an error? Also, is it possible to debug which channel is faulty (e.g.using the Distributed System Manager, testing each channel on/off in at a time) without having to resort to FPGA interface mode?

 

Thanks,

Dimitris

 

Quad Encoder with 1426, reverse direction

$
0
0

Hi,

 

I run into a funny problem. I am using a PCI 1426 board (long story, it must be in a PCI machine, no PCI Express) with a line camera. I supply a quad differential encoder on the encoder input. So far so good. It even works as long as I move the axis forward. Unfortunately, I have to take images in both directions.

 

It would be trivial to solve this if I could set the encoder input polarity. Unfortunately, this is not supported on the 1426. The encoder scale is unsigned so something like scaling by -2 is not possible, either.

 

The encoder is a real encoder, thus, I can not change the polarity/direction in real time from software.

 

Is there any way out? Sure, I could add some electronics that can change the polarities in real time but that would be a last resort...

 

A less critical quation: So far this only worked using the external trigger output of the board (wiring it to the trigger input of the camera).  It would be nicer to trigger over the camera link CC1 line. I tried

 

imgSessionLineTrigSource2(Sid, IMG_SIGNAL_SCALED_ENCODER, 0, IMG_TRIG_POLAR_ACTIVEH, 0)

 

but  it does not work (using the "Trigger Each Line with Encoder" example project). Using imgSessionTriggerDrive2 in the same code I could send triggers, based on the encoder to the external lines. Am I missing something obvious? This is not mission critical as the trigger cable is already in and it works.

 

An alternative is to configure CC1 line source to External Trigger 0 but in that case what is imgSessionLineTrigSource2 supposed to do?

 

Thanks,

 

Gyula

 

 

PCIe-input/output voltage

$
0
0

Hi all experts

 

I am using the PCIe to generate some digital bits as an input for my chip. In the data sheet, there are recommended operation conditions:1.png

It's noticed that when PCIe is used to generate input digital signal, the output high current (IOH) and low current (IOL) are listed, no output operation voltage. how can i know this  can drive my chip which has a digital vdd of 1.8V, without damaging it? 

2. When PCIe is used to receive digital signal from my chip, the min input high voltage is 2.2V. While my device's VDD is only 1.8V. Does this mean that the PCIe is unable to serve as a receiver for my chip? Becasue, for example, when my device outputs an high voltage (1.8V) which is not enought to drive the device in PCIe to high voltage. Then the PCIe still shows "0" as a result. But this is wrong. 

Driving a 5V relay with NI USB 6216/6218

$
0
0

Hello,

 

I was wondering if it could be possible to use a 5V relay to switch 24V to a solenoid using either USB 6126 or 6218. I'm using a A5W-K relay, so the ~5V ~50mA digital output to me should be enough. So could I just plug the relay coil to the digital output and ground, and control the relay switch via LabVIEW this way? Or do I need to place a transistor or an octo-coupler in between?

I have both 6216 and 6218 at my disposal so a solution with either of those would be most preferable.

 

Here is a link to the relay datasheet.

 

 

Br,

 

Jack


Ni9421

$
0
0

I am trying to connect the NPN output of my flow sensor with the below wiring asignment to the NI9421. My flow sensor has an NPN output with its Red wire being the +24VDC, the Black wire is the 0VDC and the White wire is my NPN output. Could you please let me know the way this should be wired.

How to sync a linescan camera to both a line and a frame trigger using PCIe-1433?

$
0
0

I have a linescan camera (Basler) that I need to sync to the line and frame triggers from a rasterscan system.  I was given a PCIe-1433 frame grabber to achieve this.  Basically the line trigger should tell the PCIe-1433 that it's the end of the line, and the frame trigger tells it to start a new frame.  Is this doable?  An example would be most helpful.  Thanks.

I am recieving error showing niajel.dll missing for HSDIO in labVIEW 2010, Can anyone help how to solve this.

$
0
0

I am using LabVIEW 2010 and installed LV2010 device drivers and trying to use HSDIO functions, While placing HSDIO function on the block diagram it showing niajel.dll is missing, Can anyone help me in fixing this bug.

I tried uninstalling and installing many times not able to fix. 

NI 9401 output current limitation

$
0
0

Hi all,

 

I need to trigger some hardware with 3.3V TTL / 3.3V LVCMOS input using the NI 9401 module which is 5V TTL. Since there's no room for an extra power supply I'd rather use passive components to realise the transition from 5V to 3.3V instead of a voltage level shifter. I was thinking about using a 3.3V zener diode in series with a resistor to create a simple voltage regulator as shown in the image. On the datasheet of the 9401 module I couldn't find the maximum output current so I was wondering if the 9401 module can produce 20mA which is the testcurrent (Iz,t) mentioned in the diode datasheet. Anyone who has done something simular? I could also build a voltage devider with less current in the network but ofcourse that's less stable. The output is to be used as a positive edge trigger.

 

Thanks in advance

Cedric

 

 

logic low on 9476 seems high

$
0
0

I'm supplying 12 V to my 9476 (and have verified this by measuring at the pins). When I toggle any one of my DO channels I see the 12 V when I'm at logic high, but when I set it to low I'm seeing about 7.75 V. I wouldn't be surprised, I suppose, to see some amount of voltage when low, but that's nearly 2/3 or the supplied voltage. I have some level shifters that some of these channels are connected to and that 8V is preventing the shifted voltage from being anything but logic high.

 

So my questions:

  • When I output a zero on one of my 9476's lines is it actually supposed to output a low level or is it instead floating the line (and therefore requires a pulldown resistor at the output)?
  • If it is supposed to output an actual voltage, why on earth is it so high relative to the Vsup?

Thanks!

Switching from Digital to analog pins

$
0
0

Is it possible to initialize the functions of the pins on the my rio from a Digital Output to a Analog input? The problem i am facing is such that I have a wire (From a 4 wire resisitive touch screen) that I will be connecting to the myRio. The wire requires a voltage input from the my rio during one instant and on the next instant, the same wire will output a signal into the an Analog pin. Is this possible?

Where is the ground pin of the NI 9401?

$
0
0

Guys and gals,

 

This is a really simple question, but where is the ground pin of an NI 9401? I see here (last page) the pin out of the module, but I don't see a GND port. Do I just connect a signal's ground to a NC port? Or a COM port? (does this stand for "common")?

 

Thanks!

 


minimum ni-daqmx intall for digital IO and timer counter functions

$
0
0

Hello everyone,

 

I have a Labview 2012 64bit professional development system installed, recently we purchased a NI-9401 Digital IO module with a cDAQ-9171 module to usb interface.

 

After assembling the Labview VI I got some errors during program run so I decided to install the DVD 5 Kit NI-DAQMX driver (ver. 15.1.1) and I followed the default installation.

 

Now the Labview program runs fine but I lost something like 3.2Gbyte on harddisk space just for the ability to use digital IO and timer/counter functions, is there a way to make a leaner more harddisk friendly installation of this driver and still keep the digital IO and timer/counter related driver?

 

 

NI MAX Test Panel Digital I/O Hangs

$
0
0

I am using an application written against the DAQmx C library. This application is unable to create digital output channels, as calls to the DAQmxCreateDOChan function hang. It does not crash, it just does nothing. 

 

In trying to diagnose this issue, I try to do the same thing using NI MAX using a test panel. In the digital I/O tab, I press start, and am unable to press stop, or change any of the channel values. All of the other tabs work fine. When I press the stop button, nothing happens, like I am just pressing a button on a static image. When i close out of  the test panel window, the process remains in task manager. 

 

Because the problem persists even when using NI MAX, the problem is most probably the application. 

 

This behaviour continues when using a simulated DAQ as well as the actual hardware device. I have reinstalled the DAQmx driver, which did not seem to help. 

Device details:

PXI-6229

Windows 7 32 bit

 

Thanks!

6509 API

$
0
0

Hi,

 

I have used the NI DAQ 6509 PCI card in my Dell Power Edge 860 server for years now, albeit with a PCI-X riser installed.

Works great.

 

I need to update my servers.

Possibly to the newer Dell Power Edge R230 which only has a riser with PCIe slots.

Therefore, I will need to replace my DAQ PCI-6509 card to the newer PCIe-6509.

Will I be able to use the same API calls in my code to detects signals with ths new PCI-6509e card?

 

API calls such as:

 

DAQmxCreateTask()

DAQmxCreateDIChan()

DAQmxStartTask()

DAQmxReadDigitalLines()

DAQmxStoptask

5V digital output for controlling a relay

$
0
0

I am using a NI USB-6009 to control a relay which is used for controlling a 24V Solenoid Valve. The relay control voltage is 4-28V and therefore the 5V output should be enough for it. Once I energize the pins, I can get a differential voltage of 5V, but when I connect the relay to the same pins, the voltage drops to 3.3V which is not enough for the relay. I assume it has something to do with the relay requiring a current more than what the DAQ can provide. Is there any way to fix this? Like any suggestions for a relay that can be controlled by USB-6009 and yet be able to control a 24V valve? (I am using another power supply for the valve so I just need the DAQ to support the relay.)

NI MAX access violation with USB devices

$
0
0

I found a lot of posts talking about access violation but most of them relate to LabView and not to NI MAX, as is the case here.

I get an access violation error (0xC0000005 at EIP=0x106399AE) every time I try to create a new task from NI MAX by selecting a USB DAQ device. I tried both with USB-6009 and USB-6211, same problem faced. The device is recognized correctly (self test passed) but when I try to create a new task I complete the whole procedure and when I click finish I get the error. This causes also programs from LabView that use the tasks from NI MAX to crash.

 

This first happened after updating the NI DAQmx drivers to a new version, but then I recognized that that version was incompatible with Labview installed on that machine (8.6). I tried to fall back using a restore point in windows and reinstalling the 9.5.1 DAQmx drivers (the latest drivers supported by the LabView version.

 

I tried to "Reset Configuration Data" from NI MAX (under tools menu) with no success. The WindowsXPUSBhotfix is also installed in the system. Any help?

 

I also sent a support ticket to NI: c82f5b4f-d774-40a2-8341-4dbeee9df876

 

PC specs:

Windows XP SP3

LabVIEW 8.6

NI DAQmx 9.5.1

Viewing all 2194 articles
Browse latest View live


Latest Images

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