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

24 digital I/O lines on the BNC-2090A rack mount.

$
0
0

Dearall,

 

IamusingaPCI-6221DAQcardconnectedtoaBNC-2090Arackmount. ThedigitalI/Ospingterminalblockontherackmountisashownintheimagebellow. ThePCI-6221cardhas3portsofdigitalI/Owith8linesforeachport. Itestedwhichlinecorrespondstowhichterminalandcameupwiththefollowingrepresentationshowninred, wheree.g. P2-2correspondstoPort2 - Line2etc. However, itseemsthatPort1 - Line0isnotrepresentedbyanyofthespingterminals.      

 

IsthereawaytoobtainanI/OontherackmountforthisparticularlinesothatIhave24linesavailableintotalinsteadofjust23? Anysuggestionswouldbereallyappreciated.BNC-6090A-SpringTerminal.jpg


Split Digital I/O 9401 for Bidirectional I/O with two Counters

$
0
0

Hello:

 

I have a NI 9401 DI/O module in a CDAQ-9174 chassis, with LabVIEW 2012.  I want to split the line direction on the DI/O for both input and output, running two counters.  I am attempting to drive a servo-style PWM signal with one counter, and use the second counter as an input for acquiring data from a digital encoder.  I've been searching the forums all weekend for a solution, and have found that many people experiencing issues have implemented a DAQmx Control Task to reserving half the unit for input or output, utilizing a control sequence to control program flow.  I've tried every possible combination of Control Task/Start Task/Flat sequence orientation, but still haven't been able to get the program to run.

 

Upon running the program, I get an [Error -200479 occurred at DAQmx Start Task.vi: Specified operation cannot be performed while the task is running.]  This error is then followed by a [Error -201133 occurred at DAQmx Start Task.vi:]

 

I feel like it must be a fairly simple fix, just something outside of my knowledge (I'm relatively new to this).  Does anybody have any suggestions for getting these two features to run together?  The other modules and chassis slots are taken for this application, so I'm dependant on getting these two tasks to run at the same time. If you need any additional information about the program, let me know.

 

Thanks!

 

Capture.PNG

digital input pin transition

$
0
0

I am in need a help fellow Labview users. I am using an external controller board with a digital pin that will used to synchronize thermocouple temperature measurements.

In doing this the following is the logic I am trying to implement.

 

  1. Detect a low to high pulse transition
  2. Then, start a timer
  3. Detect, high to low pulse transition
  4. Then, stop timer
  5. Then record time delta

I am using a NI-6009 multichannel I/O module

I truly do appreciate help with this!

 

Lawrob

cRIO Module Variable Order Problem

$
0
0

All,

 

In my LV code, I am querying data from a SQL database and then using that data to determine which cRIO channels I want to read (using the All Variables property). Now, to avoid confusion I have renamed all of the cRIO channels to intuitive names (ex: Inline Flow Rate or EUT Phase A Amps). However, doing this renaming has altered the order with which the All Variables property returns the list of channel references. I want the All Variables property to return an array of channel references in numeric order (ex: AI1, AI2, AI3, etc.), regardless of the name of the channel. However, the array is coming out in alphabetical order based on channel name. 

 

Does anyone know how to fix this; other than removing all custom channel names or starting each name with a numeric?

 

The attached picture shows both the implementation of the All Variables property node and (on the left hand side) the way in which the channels have automatically reordered alphabetically.

The order shown in the project window is the same order in which the reference array is being returned.

error scan from string

$
0
0

Hello, i have a problem with Labview 2013, on my  pc(where i make the  Vi from zero) work  verry  good, but when i put  the  Vi on  laptop with the same   version of labview, i get  error  from  scan from string. hardware part are not changed, why i get this error? this is my  VI.

Espionner l'état d'un carte PCI DIO 96

$
0
0

Bonjour à tous,

 

Je cherche à vérifier le comportement entre deux versions d'un logiciel Labview.

Pour cela, je voudrais espionner l'état de mes entrées sorties durant l'exécution des ces programmes pour analyser ensuite les traces.

 

j'ai tenté avec IO trace mais je voie seulement les E/S sur VISA lorsque mon programme est lancé.

Pourtant j'ai fait la manip avec le panneau de test de carte et je voie bien les echanges effectués avec ma carte.

 

Est-ce qu'il y a une configuration spécifique ou un autre outils pour visualiser l'activité d'une carte pendant qu'un programme s'exécute?

 

Merci d'avance pour vos réponse

Need help with outputting digital data using the NChan Nsamp function

$
0
0

Hello All,

 

I am writing to this form in the hopes of getting some insight in to what I am doing wrong with an application that I am trying to build to output digital data. 

 

I must warn all those who might cringe as they witness how I went about achieving my goals that I have not programmed in labview for over 5 years so I am very rusty. I am fairly certain that there is something incredibly wrong with the way I am attempting to get this system to output digital data.

 

My setup is as follows:

 

NI PCI-6254 Device (dev1)

BNC – 2110 breakout box

Labview Version 2013 32 bit

 

I have another NI card in the system which is designated as DEV 0 in NIMAX as shown below. 

 

1.jpg

I setup my block diagram as follows:

 

2.jpg

 

The way I set this up was to utilize the first three lines in port zero of dev1 as my digital output. I setup the channel for digital output and for each line to have a channel of their own.

 

I set the sample clock to utilize the PFI0 port on the NI card such that I could control the rate at which the pulses are being sent out by the NI card. I have a TTL pulse driving the PFI0 input. I set the sample rate to around 500 and the active edge to rising. I have the sample mode set to finite samples and I have an indicator for the number of samples written by the digital output write function.  

 

The reason I chose such a low rate is because I have my ttl clock to around 8 Hz so it would be easy to watch the transitions when the function wrote the digital data out to the selected lines. 

 

3.jpg

 

The problem that I have with this setup is that I do not get any digital output on the P0, P1, and P2 outputs when this program is running. I have tested these outputs using the test panels in NI MAX and they do in fact work when toggling the logical state in the test panel run mode. I am not sure why this program is indicating that it is writing 8 samples per channel and yet I see nothing on the output when I monitor all of the channels with a scope.

 

Another thing I found perplexing is that when I initially set this up I configured the N samples N channels data type to U8 but when I attempted to run the program it crashed and indicated that I needed to set it to 32 bits. I do not understand why I needed to set it to 32 bit when the source array elements are U8.

 

I am quite certain I am doing something incredibly stupid but I have spun my wheels for more than a week on this so now I am appealing to the experts. I would really like to stick with the method of feeding an array of data in to the Nchannel and N sample function. I am aware of the wiring a Boolean array method and I was hoping to not have to go that route. I appreciate and assistance anyone can provide me.

Thank you in advance.

 

- Randy

 

Digital pin transition counting

$
0
0

I am desperately in need of a simple alogorithm to keep count of all transitions from low-to-high on a digital input pin. My program inputs the desired number of transitions and when the count is exceeded then the program terminates.

 

thanks!!

Lawrob


no digital trigger signal on a PFI x-port in a PCI-6259

$
0
0

Hi,

 

I am using a PCI 6259 DAQcard (with a SHC68-68-EPM cable and version:2.9.1f0) to get an analog signal and a digital signal. The analog signal is used in NI MAX or NI Signal Express (DAQmn 9.7.5) to trigger it with the digital signal. When the digital signal is mounted on a Px/x port I can detect it. If I want to use it as a trigger signal on a PFI x-  (better PFI x/Py.y-) .port I do not get any trigger quantitiy.

 

With a NI USB 6008 everything works quite well. Remark: The digital post is just labled as: PTI 0 and not as in the case of the PCI 6259 on the NI CB-68LPR-board: PFI x/Py.y.

 

Another remark is that I did not measure a voltage difference of 5 volt at the provided port.

 

How can I fix the problem and use a PFI x/Py.y-port for a digital trigger?

 

Code interface node in DDE master control.vi in LabView 2013

$
0
0

Hello everybody, 

 

The communication in the driver for EXFO IQ-203 is established trhough DDE Server. The problem is, that the integrated in the LabView DDE Server (labview\vi.lib\platform\dde.llb), in particular DDE master control.vi contains a  Code Interface Node that is no longer supported by the LabView 2013. 

 

Before trying to rewrite the Code Interface Node into the Call Library Function, (that I don't really know how to do and that seems very hard because of the complicated nature of the DDE Servers) I wanted to ask if there is a way to make CIN work in the DDE master control.vi or maybe someone has an updated version of it which works in LV 2013. 

 

Thank you very much.

KR,

Nick

 

P.S. Hope it is a right board for this quesion.

Overcoming 8.5mA current limitation

$
0
0

I'm neck deep in designing interfaces between low-cost USB digital output modules and various hardware. I seem to be having a hard time relay modules that will work with 5V at 8.5mA. Since I'm looking at up to 24 outputs I don't want to solder discrete components to a protoboard. I really like the Omega relay boards that I have used in the past but they are very expensive. Any suggestions for a less expensive alternative? Thanks in advance.

How to monitor over current on DO 9476 line

$
0
0

I am interested in monitor over current and status of the DO channel. I am using NI 9476 module in cDAQ-9178 chassis. My development environment is visual studio (.net). I found kind of an  example in labview.  I am able to set DO fine just want to check the status (ON/ OFF   or Over-current state).

 

Thanks

common ground across two breakout boards

$
0
0

I have a 6363 card with two breakout boards (2080a, scc-68a). Is there any way to make sure the digital ground is at the same level for both boards?

 

thanks!

ni5751

$
0
0

I'm using a NI5751 and I want to protect the analog input from voltage over 1V. How can I do this?

Thanks

NI-9476/ NI-9477 LabView example code

$
0
0

I am creating a Valve driver routine in LabView now using DAQmx 9.8.
In this version there is a programming example to use but I have more questions...

 

In the 32 bit register I need to set and clear bits in the register without changing the state of others

 

For example first I set bits 3 to 5,

Then I clear bit 4 without changing the state of 3 and 5.

 

A. can I read back the state of output register, and from that create a mask to reprogram the output register?

 

B Is there another way to target specific bits in the output register?

 

 


como saber que es cada entrada y salida de una terminal...

$
0
0

hola,  tengo un problema,  tengo una terminal de entradas y salidas como la que aparece en la siguiente imagen conectado a un EVS-1464rt, alguien sabe cual es el comun de las entradas y salidas o el GND. (ground o tierra)..

 

 

 

usb 6009 not recognized in simulink/matlab 2012b

$
0
0

i have matlab 2012b and when connect DAQ ni usb 6009 matlab recognize it but when i open simulink library and Data Acquisition Toolbox and when add analog input it belongs "winsound Michrophone...'

so any body can help me to simulink/matlab recognize usb 6009

thanks

5Vについて

$
0
0

NIPcle-6320を使用するのですが、ピン配で、5V、DGNDは、外部より、5Vを供給するのでしょうか?

または、ボードより5V供給(出力)されるのでしょうか?

教えてください。

 

Real-Time Project PWM

$
0
0

Hello Everybody!

 

I need some help regarding my real-time project, here i am attaching the FPGA VI which shows 8 channel PWM signal generation, and five cuurent sensors using NI9201 AI module and 3 voltage senses. I need guidance whether i should do my calculations in FPGA and then log current values in RT VI or fist transfer to RT VI and then do calculations there, current sensors are bi-directional upto 200Amps.Following is the calculation:

 

 

I = (Current Sensor Vout-Offset)*100)          ;Sensor is 10mV/A

 


Please suggest me a structure of the program how should i proceed. How and where to do calculations, send controls to FPGA(frequency,Blanking time,%Duty) and where to save data.

 

I need to save a complete parameter list with time stamp for ex. every 100ms.(Freq,%duty,blanking time,currents,voltages and powers so on...)

 

Thanx in advance!

 

 

Best regards,

azy

 

Using NI6587 in high speed mode 1GS/S in parallel mode

$
0
0

Hi

 

We use the NI6587 + PXI-7952R

 

I am looking for examples of program of using this configuration in high speep Mode (1Gs/s). I want to acquire a bus of 8 bits from a ADC device.

 

Thanks for your help in advance,

 

Sebastien

Viewing all 2184 articles
Browse latest View live


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