Subscribe: Digital I/O
Added By: Feedage Forager Feedage Grade B rated
Language: English
board  cables  connect  digital output  digital  drive  error  high  input  load cell  module  output values  output  read  usb 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Digital I/O

Digital I/O topics

Digital I/O topics

Published: Tue, 26 Sep 2017 07:37:03 GMT2017-09-26T07:37:03Z


How can connect USB-6001 Digital Output to a relay?

Tue, 26 Sep 2017 06:54:50 GMT2017-09-26T06:54:50Z

Hi! I have an USB-6001 DAQ board and I want to use it to control a hydraulic system by using relays. But the digital output of the board is 3,3Vmax and 4mA max if I'm not wrong, and I couldn't find a relay that triggers with that output. The most common relays work with 5V and a much higher current value.

What kind of connection can I do to trigger a 5V relay without needing to create an circuit board?

what modules to be used

Fri, 22 Sep 2017 22:52:04 GMT2017-09-22T22:52:04Z

Hi .. i would like to connect the following sensors to a Ni DAQ system: 


1. pressure sensor 

• Honeywell - HSCMRRN016MDAA5-ND


2. hotwire sensor

• Dantec Dynamics


3. force sensor

Forsentek - 3 force comp (30 N capacity) -


i would like to know which voltage input modules should be used and which model of Ni DAQ chasis to be used ? 


will those will be ok ? i want to make sure if those will work and if a certain module can make all this sensors work? 


Chassis 4 slot NI cDAQ-9174 chassis


pitot tube module (connected to pressure sensor) NI 9215


Force Balance Module NI 9201


Temp sensor and hotwire NI 9219


thanks in advance

Log events

Fri, 22 Sep 2017 12:33:19 GMT2017-09-22T12:33:19Z

Dear Forum members,


We are using a custom build setup that drives behavioural experiment paired to a microscope. We created a driving program using the NIDAQmx C driver. The program runs an event-driven state machine which reads digital inputs and reacts accordingly with generating digital outputs to drive some instruments (e.g. microscope scanner, water pumps, playing of audio files etc.). The NI card we are using is NI PCIe 6321 X-series.

We seek advice on how we configure the logging of events (either DI or DO change of line). By logging we understand that the system runs a monotonous hardware clock, that has the fastest frequency from the whole system and we would like to log to file the clock step upon event. 

Here are the options we came up with:

1.) The card has 2 clocks, should we use one of them as a master clock from the system and read it upon an event?

2.) Should we use DAQmxRegisterSignalEvent on a task and create a CVICALLBACK function to read time upon an even? But is there a way to retrieve event time from task directly?

3.) What about DAQmxConfigureLogging? We could not find a proper example of its functionality. Is it designed with the same purpose?


Any suggestion or helpful advice will be highly appreciated!

Thank you in advance!


Monitor multiple ports at the same time on PCI-6528

Thu, 21 Sep 2017 22:11:22 GMT2017-09-21T22:11:22Z

I would like to monitor all inputs on the PCI-6528 during a certain amount of time (not only one read), such that an eventual digital HIGH can be captured during that period in my C# application. I would also like to know which port and line got the HIGH value if that is possible. 


Currently, I have a created a channel  using DIChannel:


digitalRead.DIChannels.CreateChannel("Dev0/port0:2", "", ChannelLineGrouping.OneChannelForAllLines);

And I now want to read the ports and then be able to capture any digital HIGH value. How can this be done?


Also a second question: when I read the inputs, the value 128 is read when it is a digital HIGH. Why is the input measured to be 128 and not 1?



CalExec 4.1 PXIe-6556 "Session Handle Not Valid"

Thu, 21 Sep 2017 13:26:43 GMT2017-09-21T13:26:43Z

Hi All,


In running calibration routine for PXIe-6556 I get the below error after self calibration portion is complete. I have run several PXIe-6556s with no issues until this point. Any thoughts? Thanks in advance.


Looking for Cables for PCIe 6509

Thu, 21 Sep 2017 11:08:15 GMT2017-09-21T11:08:15Z

Hi folks,

for 2 days I've been searching for suitable cables for PCIe6509 cards. NI provides only 1 and 2 metres cables, but we need 5m (16ft) length. The only provider I found is Mouser/TE Connect, but I have to order at least 100 cables there for over 12k€. I need 5-10 cables, no more. Do you know any shop anywhere where I can buy these cables? All but alibaba please :-).



How to connect opto sensor and limit switch to DI module?

Thu, 21 Sep 2017 03:50:16 GMT2017-09-21T03:50:16Z



I have a opto sensor (OMRON EE-672) and a limit switch (OMRON V-156-1A5).
I'd like to use them to detect the limit triggering of my stepper motor.

However I have no idea how to connect them to my DI module.

The sensor of OMRON EE-672 is powered by 5V, and outputs high signal when it detects the light blocked.

I wonder if I can connect it as this way: 



For limit switch of OMRON V-156-1A5, it is just a mechanical switch.

When it is pressed, two of the terminals are short, should I use a resistor to measure the voltage across it?

I wonder if I can connect it as this way:



Do they works?

Digital Outputs on SCB-68A

Wed, 20 Sep 2017 07:18:42 GMT2017-09-20T07:18:42Z

We are working with SCB-68A connected to PXIe-1073 over DAQ Board PXIe-6363 and we need to connect some digital output signals for that matter I wanted to ask whether we should connect the to the PFI pins or P0 pins?

NI USB-6501 and "DO.Output Drive Type" parameter

Thu, 14 Sep 2017 12:51:40 GMT2017-09-14T12:51:40Z

Hi all.


I have a box, integrated in a TE, that houses a USB-6501 card.

DI and DO are properly conditioned and can be accessed by a custom connector.
A LabVIEW application controls the whole TE and, at start up, configures USB-6501 to work as "Active Drive", following the hints of the article


How Do I Configure My NI Device to Be Open-Drain (Open Collector) or Push-Pull (Active Drive)?


Now, that box needs to be tested out of the TE, as a standalone device, to release a simple PASS/FAIL report.

Usually, the test procedure for boxes like these, are simple.
HW Requirements:
- Power Supply
- PC (to connect to USB6501)
SW Requirements:
But unfortunately, in this case, NI MAX is not enough to test the box.

OK. I can write a couple of VIs to carry out the task.


Anyway, I have three simple questions:
1) will it be possible, one day, to set default value for "DO.Output Drive Type" parameter, so that USB-6501 will remember his configuration at power-on ?
2) will it be possible, one day, to access "DO.Output Drive Type" from MAX Test Panel ?
3) Where can I find an NI official standalone SW to configure "DO.Output Drive Type" and configure/manage Digital I/O on USB 6501 board?


I hope no one will get angry for this post.


I thanks you in advance for the answers.



Best timing method for Digital Output for NI PXI 6527?

Tue, 12 Sep 2017 21:36:01 GMT2017-09-12T21:36:01Z



I am trying to improve the timing reliability of changing the digital output values for a NI PXI 6527. I have attached an image of a snippet of code demonstrating my current method of:

-writing the output values

-waiting until time has expired

-writing new output values, and so on.

Unfortunately, I find this method does not have very reliable timing, and my switches do not always turn on and off when they should.


I was thinking that a better approach was to have some kind of "script" that updated the output values at a specified rate. I thought the example VI "Digital - Continuous Output" was a good starting point, however, I continue to get the following error:


Possible reason(s):

Requested value is not a supported value for this property. The property value may be invalid because it conflicts with another property.

Property: SampTimingType
Requested Value: Sample Clock
Possible Values: On Demand, Change Detection

Task Name: _unnamedTask<2D>


I am using the OnboardClock as my Sample Clock Source. In the VI description, it says it is supported by PXI 6527, but I can't seem to make it work.

Any help on:

1. Improving the timing reliability of changing digital output values or;

2. Resolving the above error when executing the "Digital - Continuous Output" VI with a NI PXI 6527 and using the OnboardClock.

Would be greatly appreciated!










NI USB-6009 no right clicking on measurement and automation explorer

Tue, 12 Sep 2017 06:38:15 GMT2017-09-12T06:38:15Z

I have a NI USB 6009 multifunction I/0. I have installed the DAQmx package, It shows up on NI MAX, but there isn't an option to right click. Once I load NI MAX it also initially gives me the error: "The NI database is not running, restart your system and try again". However, I have already tried to reboot my laptop and nothing helps. 

Can't compile with SbRIO 96006

Mon, 04 Sep 2017 14:43:53 GMT2017-09-04T14:43:53Z

Hi, I'm woriking with a sbRIO 9606, according with the tables 1 and 2 (, i have installed Vivado 2015.4 but when I try to compile my VI, it says "The compile worker cannot perform the compilation. The compile worker may be configured incorrectly for this compilation or it may be in an error state.". I have been using the cloud service but my acc expired. Could someone tell me hot to configure the compiler or if im installing the incorrect version. Thank you.



Win 95/98 driver wanted for Lab-PC+ for Register Level Programming

Sun, 03 Sep 2017 11:31:26 GMT2017-09-03T11:31:26Z

Hi there, hopefully someone can help? I am looking for a driver for an Lab-PC+, Low-Cost Multifunction I/O Board for ISA, Part Number 320502B-0, for Register-Level Programming on Windows 95 / 98. Some hint would be highly appreciated. Do not find anything on the official web site... Big thanks - Martin

NI 9482 - Current Measurement Through Relay Contact

Thu, 31 Aug 2017 12:07:27 GMT2017-08-31T12:07:27Z

The NI 9482 is exactly what I need to control 4 28v devices from a cDAQ, but I also need to measure the current that is being drawn on the 28v supplied to each of the devices.


Can anyone confirm if the NI 9482 can tell me what current is being drawn? If not, what's the best way to measure this post the NI 9482?

NI-Tclk Error 250043

Wed, 30 Aug 2017 11:23:49 GMT2017-08-30T11:23:49Z

Hi all,

I have two chassis the first chassis has 5 VSA(s) NI PXIe-5663E  and second chassis has 5 VSG(s) NI PXIe-5673E. today the system doesn't work and give me this error in the attached thread. Please can any body help me to figure out the problem and how to tackle it? thanks in advance



Hardware specs

Tue, 29 Aug 2017 12:27:04 GMT2017-08-29T12:27:04Z

Hello everyone,


I am using a SCB-100 board connected to a digital output device of NIPCI-6512 and we are using this to control pumps and solenoids. I am trying to figure out what is the max amperage that we can feed into the SCB-100 board and unfortunately am not able to come up with any searches that give a clear definition of the value. If anyone has the info or links to the info it would be great.


i2c communication procedure

Tue, 29 Aug 2017 04:35:09 GMT2017-08-29T04:35:09Z

i am using USb 8452 module for i2c communication in between the LDC 1612 module(slave)and USB 8452 (master).

How to configure and get the data?

any idea or suggestions

Digital IO for a Load Cell using cRIO

Mon, 28 Aug 2017 17:02:20 GMT2017-08-28T17:02:20Z

Hi All,


I am trying to read outputs from a load cell. The hardware is described at the link below (where it was suggested to the OP that they should use a RIO).


Essentially I need to monitor an input and, when it goes high, generate 25 pulses to a signal line and read corresponding outputs through another line. I've borrowed a cRIO-9074 with a NI9401 module built in due to the timing requirements.


I've some LabVIEW experience but have limited DAQ experience and in particular haven't worked with cRIO at all before. I'd like to get some high level pointers on the best approach / subVIs to use.

  • Should I use a timed sequence structure to generate the 25 pulses? Or is there a better VI do do this?
  • Should I monitor the signal line using a while loop also? Or how could I best convert this signal to Boolean outputs? What is the best way to synchronize my inputs with the outputs
  • My application is that, when the load cell registers a particular force I have to signal retraction of a piston - part of the code is running on a Windows PC (and will require online user input etc). So I guess I'm using the cRIO as a very fast DAQ card. What is the best way to integrate the cRIO DAQ vi into the rest of my code? Should I launch this vi asynchronously and then communicate via queues and/or shared variables? Is there a better option?


Thanks in advance for your help,





HSDIO Custom Cable Issues

Wed, 23 Aug 2017 02:46:11 GMT2017-08-23T02:46:11Z

I took some old HSDIO SHC68-C68-D4 cables and cut the wires, cleaned off the board contacts of all wires, solder etc. I added 4 wires to connect to short coax for my DIO0 and DIO1 outputs or DIO2 and DIO3, which I used for SClk and SData for MIPI control. When I check the whole cables and NI adapters or even have an open HSDIO connector on the HSDIO instrument, I can light up all channels 0-15 with static set and read back whether they go high or not. With a blank connector into the HSDIO front panel correct orientation, correct depth of insertions, continuity check shows no short connections inter-channel, yet the test panel shows channels 1,2,7,8,13 and 14 are not active. I am not yet able to explain why. I saw one other post where the person had a similar scrambling, but didn't comment further in feedback in 2011. This is quite perplexing to making custom HSDIO cables for low distributed capacitance. The shortes NI has available is 1/2 meter and a box makes it over 2 ft and well over 150pF. We need to test with less than like 7-9 pf. Any ideas folks?

Routing P0 to PFI on USB 6361?

Mon, 21 Aug 2017 14:43:20 GMT2017-08-21T14:43:20Z

Hi All,


I'm attempting to use the DO timing features on the USB 6361 to drive an experiment. This requires me to do a buffered write and according to the error messages I've received on NImax, this is only possible using port0. The problem is that on my model of device port0 is interfaced only with screw terminals making for a less than convenient setup in hardware. Is there a way to route the signal from port0 to the PFI ports (specifically PFI0-7) which are physically interfaced with BNC terminals? This would have the advantage of cleaning up my experiment somewhat. Thanks very much for your help.