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

Connecting multiple DAQs into the same computer

$
0
0

Hi, 

Im working in a project where i wil need to connect more than 300 digital signs with a USB port.

I was looking for options, and found two that i liked, but i dont know if LabView will have troubles reading all the signs from different DAQs.

 

My first option is the USB-6501 (with 24 digital I/O), where Ill start doing the config, but if it works for what im looking for, i was expecting to repeat the same config in a total of 13 DAQs

 

My second option was, the High-Density Industrial I/O for USB (96 channels digital), and have in total 3 DAQs with an extra of the USB-6501 to complete my set of signals.

 

Can I connect more than one DAQs into the same computer? Meaning that all the DAQs will be working into the same LabView app?

 

Regards, 

 

LD


usb 8451

$
0
0

Hello. I tried using the USB-8451 Test Panel. I want to swith the DIO lines, but only BIT 0 works. None of the others respond. In fact, I tried using them as inputs, but they still don't work. These DIO lines have never been exposed to high voltage, or any kind of contention because this is the first time using these lines. I am not sure if my problem is in software, or the hardware. Am I doing something wrong? Please be advised that one DIO line works, so I must be doing something right.

 

Thanks, Richad V

Using NI USB-6501 in .NET

$
0
0

Please could someone help me with using a NI USB-6501 from c# .net?

 

I just need to implement simple digital IO from an existing WPF C# application.

 

I do not require NI Measurement Studio.

 

I understand that a .NET wrapper is required for the dll and have found some example wrapper code from July 2005 here:

 

http://digital.ni.com/public.nsf/allkb/A21A013CA229A5988625703E0025A8AE

 

However I do not know where to find the required dll or even that the dll name is still correct. I have installed DAQmx from the supplied CD.

 

Another article:

 

http://digital.ni.com/public.nsf/websearch/F0FD13D2DD0C433986256D9C00468D29?OpenDocument

 

seems to suggest that I need to use the  CWDAQ ActiveX control. However, when I search for this control, it has not been registered even though I have run the CD installation program. 

 

NI USB-6210 Monitoring Digital input

$
0
0

Hi,

I am trying to monitor voltage levels of slipring assembly in a stepper motor using USB-6210 with Labview.

Currently I have 4 voltage probes connected to the digital Inputs (PFI0,PFI1,PFI2,PFI3) of USB- 6210. I am trying to monitor all 4 inputs, plot and compare the results.

Please let me know if anybody can help me with the Labview program. I am not sure how to read these inputs from NI USB-6210 device.

 

Thanks in advance,

Sahana 

Can i use PCIe-6535B/36B/37B onboard connector to reach DIO pins?

$
0
0

Hi,

 

I will use PCIe DIO boards. I didn't find any document about this connector.  

 

 

 

02280601_6535B_l.png

 

Getting time stamp value for Digital Input data when configured for change detection

$
0
0

Hi,

 

I am using PCI 6528 card. I need to acquire Digital input from this card whenever there is change in value. i.e from 0 to 1 or 1 to 0.

I need to plot all these data on graph along with its timestamp value. currently with LabVIEW options I am getting only instances for change detected and not a timestamp. I think t0 and dt will also not in this case since dt will vary. Refer attached sample VI. Sequence followed is Configure-> Start->Read. After completion Stop and Clear.

Let me know if any solution.

 

Thanks

NI 6009 control solenoid using distance counter

$
0
0

hi!

 

I am working on a system wherein i have a distance measuring counter that will trigger the solenoid for impact then the microphone will capture and analyze the impact signal.

 

The solenoid output energy  is 65-70 N or 740g and will make an impact depending on the input distance.

 

We need to purchase a data acquisition card that will perform I/O for this method.

 

NI 6009 is recommended. Is this possible? If not, what is the best cheapest option to use?

 

I have no background of electronics or instrumentation so I will only depend on Labview tutorials to make this work.

Why the digital signal don't get out from the usb-6009?

$
0
0

Hello,

i´m starting with labview and NI USB-6009 at work.

 

I have to generate from a txt file (with 0 and 1) a digital signal with variable frequency typ. 1.2Mhz.. The level of the 1 (the amplitud: Vcc) should be variable too (1v<Vcc<7v).

The first question is: it is possible to choose differents amplituds for a digital output in the NI USB-6009?


The second and more important is: why my VI is not working?

I can see the digital signal in the grafic in labview and it is correct.

The problem is when I try to see this signal from the output usb-6009 in the oscylloscope. I see only pulse 1010101010..., and not the secuence from my txt file and the frequency don´t correspond to the signal I have genereted.

 

I have attached a typical txt file, that I am using and the VI file.

 

I hope you can help me and sorry for my bad english...

Thank you!


BNC-2121 connector, how to define the user-defined connectors

$
0
0

Dear all,

 

We are doing fMRI neuroimaging with stimulus (Presentation, NeuroBehavioral Systems (NBS)). We have three signals (BNC cables) coming to BNC-2121 but we can get only counter 0 and counter 1 to work when connecting the cables to PFI lines 39 (Src0) and 35 (Scr1).

 

The manual says that: "when you want BNC connections for counters other than 0 or 1, you normally use the user-defined connections."

 

How do I use these user-defined connections? In more specific, how do I define them in Measurement & Automation Explorer (MAX)?

 

Br,

Timo Tuovinen MD

changing 6501 port-pin assignments

$
0
0

I need to configure my USB-6501 such that the port channels connect to pins other than the factory configuration.  For example,  I want pin 18 to output P0.5 instead of P0.1.  Is this possible, and if so, how can I do it?  

How to I connect Sourcing digital output from My Interface Board to NI USB 6501 channel configured as Digital input

$
0
0

 

When I connect an input to DI channel of USB 6501 card  from my board which has sourcing Output t, iIn the Off state it is not pulled down properly. The volatge on the port in is 2.1V -2.5V based on the pull down resistor on my board. I suspect that  it acts as a voltage divider.

The state on the card is still show as "HIGH "state, even my sourcing output driver has a pull down  resister.  when I use this interface board for PCI mseries devices it works fine. Do the pull down resister on my sourcing output is not worth. Is this because of pull up resister 4.7k inside USB card 6501.

 

USB 6501 specifications shows the Digital input accepts both source and sink modes. By default the card is in sourcing digital input mode. How do we can convert this in Sinkind digital input mode.

 

Could anyone Please give your suggestions to overcome this issue .

 

Thanks you.

HSDIO - Deterministic memory writing while generating

$
0
0

Hello,

 

I am using an HSDIO card (PXI 6542) to drive a device (DUT) with a predefined fixed length continuously running waveform.

That DUT might actually benefit from some dynamic changes in the digital signals depending measurements made on the DUT itself.

 

Right now I just switch off the DUT and the HSDIO card, write the new waveform on the card, switch back on the DUT and the digital signal generation.

Off course that's not optimal and I'd like to modify the signal in a "live" way, while the DUT is running.

 

Just overwriting a waveform while it is being generated should not work smoothly due to a race condition as explained here: http://digital.ni.com/public.nsf/allkb/14CE41C9CB9F10A88625766A005CEE47

I think I found a workaround but need a confirmation on it.

Instead of just one waveform I could use 2 and select which one is being generated with the help of a trigger.

 

The corresponding script might look like this:

script myScript
  repeat forever
          if scriptTrigger0
            generate waveform1
          else
            generate waveform2
          end if
  end repeat
end script 

 

The idea is for example to generate waveform1.

Then depending on what the DUT needs I will calculate waveform2 and upload it to the HSDIO card.

My guess here is that overwriting waveform2 with data of the exact same size will not create any glitch since it is not currently being used to generate signals.

After that by using the trigger I could start to actually use waveform2. If I need further waveform adjustment I could do it by changing waveform1 while it is not being used for generation and so on by alternating which waveform is really being used.

 

Am I right that a waveform in memory but not currently used can be overwritten without causing glitch on another waveform that IS currently generating?

 

Regards,

 

Baptiste

 

 

 

 

 

HSDIO - How are errors interpreted? Example HSDIO Hardware Compare - Error Locations.vi

$
0
0

How are the errors interpreted?

I see the 2 arrays listed, but I don't see the coorelation between the errors found in the example files.

Are the two arrays indexed to the same error index? 

We are using a PXIe-6555 HSDIO card to test a DUT

 

HW Error ExampleResults wit Errors.jpg

 

 

Partial Switching Outputs

$
0
0

Our customer has a 6527 I/O card running via a SCB100 interface.

 

One of the outputs is wired to a door interlock solenoid. Using the instructions Port 3:3, HiZ / Port 3:3,LoZ in his sequence we are measuring the voltage to the solenoid as 0 and 12V despite having a 24V supply on the + terminal of that port. We have checked various voltages and can confirm that everything is intact (eg, 0V on the other side of the solenoid is okay.) The solenoid rating is well within the specification of the solid state relays of the 6527.

Another output is correctly driving a solenoid valve 0V/24V.

We have tried moving to another output with the same result. To our understanding, the solid state relays should either be fully off or fully on, so we cannot see how we can be getting a half-output!

 

Although the door interlock is currently releasing, it is on the limit of its reliability, and we need to advise the customer how to rectify the problem.

RS232

$
0
0

Hello everyone,

 

I want toestablish communicationbetween acameraandCMUcam4Labview.This one isconnectedviaRS232to a USB portandappearsoncom3.I cancommunicatewithout pbthankstoHyperterminal(themikroCand ofParalax)but Ican notcommunicate with MAX (Measurement and Automation eXplorer) theLVassisrantNIinstrument.  InmikroC, I have data format ASCII ,new linesettings: CRandappendnew line.

With theassistantinstrumentunderEditVISAresourcesettings,I have in thedevicestatus:Thisdeviceisworkingproperly.When Imade​​a simple writelike orderingstage:L110 that is toflash thecameradel  at 10 Hz, the command doesnot run.

The speed, the numberof stop bits....,that'sgood.My problemjustprobably theconfiguration ofcarracter before and after read and write, I've tried everything.

See files below

It's beentwo daysthatI turn aroundandI'm lookingonthis forumamong other thingsbut Ican notget out.

Could anyonehelp me please

 

kind regards


output a digital signal with 6533 from a txt file

$
0
0

Hello,

I start with labview and I am using the PCI-DIO-32HS (6533) to output a digital signal.

I have to generate a digital signal with the 0-1 values from a txt file (I have attached a typical txt file). This signal must have a variable frequency (typ. 1.2Mhz) that the user can change. The level of the 1 (the amplitude: Vcc) should be variable too (1v<Vcc<7v).

 

1: it is possible to choose different amplitudes for a digital output in the NI 6533?

2: Should I use the DAQmx - Timing VI?, and how?

 

3: Should I generate a digital waveform direct with the String-table to Digital data (VI) or should I copy the one and zero values to an array and then output these values with the help from de DAQmx timing?, and how?

 

4: I´m trying with the attached VI but the -200077 error appears and maybe I´m doing a lot of wrong thinks. What can I do to improve that or should I do in another way?

 

I will really thank for the help and advice you can give to me.

usb 6501: 200 Hz noise

$
0
0

Hi

 

I use the NI USB 6501 device to send trigger signals to a EEG recording system (Nicolet C64 amplifier). As soon as I connect the NI-device to the EEG system (analog Input channel 1), I get very strong noise in the EEG signal at precisely 200 Hz.

 

Any ideas on what the source of this 200 Hz noise might be?

Sampling 500kHz 8 digital input with USB-6341/6343

$
0
0

I'm looking for a device that can be connected with an FPGA to sample 8 digital input at positive edge of an external clock running at 500kHz.

 

My question is, will USB-6341 or 6343 be capable of doing this?

Also, could I use MatLab to control this interface rather than LabView?

 

Thank you,

Kris

Using DIOx line on NI-8452 as SPI_DATA (SPI_MOSI)

$
0
0

Hi,

 

Newbie to labview.  Would like to know if one of DIO lines on the NI-8452 can be configured as SPI_DATA  (SPI_MOSI).   Synchronizing it with the SPI_CLK.

I’m using SPI_CLK as the RCLK for 74hc595.   DIO1 as SER data input to 74hc595.  DIO2 as RCLK  for 74hc595.

 

 

Thanks.

kvn

Blue screen in Matlab with NI 6537b

$
0
0

Hello

 

I have a PCIe 6537b card 

I use Matlab (tried all combinations - 2014a or 2013a, 64 bit or 32 bit)

I use the latest drivers from NI web site

I work with desktop windows 7

 

I am trying to capture data with NI PCIe 6537b from matlab data acqustion toolbox  and get blue screen

 

I tried in different computers with differnt 6537b cards and always get the blue screen

 

I am using the following code:

 

s = daq.createSession('ni');
addDigitalChannel(s,'Digital_IO','Port0/Line0:7','InputOnly'); %That's NI 6537b
addClockConnection(s,'External','Digital_IO/PFI5','ScanClock'); %That's NI 6537b
s.Rate = 1000000;
s.DurationInSeconds =0.1;
data=startForeground(s);

 

 

 Thank you for your help!

 

Viewing all 2183 articles
Browse latest View live


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