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

A problem with digital output channels with Ni 9375

$
0
0

Hello ,

I just purchaed two NI 9375 Digital I/O modules, They are connected to a 9174 USB chassis. 

One of them is working perfectly but I have a problem with the Digital output channels of the other one. I'm connecting a 15 V supply so when the channel is on it passes the 15V to the load while when it is off it still passes some voltage to the load which is around 7 V. This problem is in all DO channels.

 please  let me know if you ever met this problem.I preferred to ask before shipping it back,


How To energise my 24V Relay sensor's with sbRIO 9642 3.3V DIO

$
0
0

Hi every one. This is first time i've started to work on sbRIO 9642 cards which has nearly 110 3.3V DIO and 32 AI & 4 AO.I do request some one to suggest me that what kind relay card that will be appropriate for me to use the DIO to configure to my relay sensor that used to energies only on 24V. The Industrial standard sensors are about to work only on 24VDC but how to make a control over my digital input with 3.3V.

 

Switching Dynamic Channels after HSDIO settings have been committed

$
0
0

Hello.  I'm trying to find a way to switch between two dynamic channels in a waveform after the HSDIO waveform is initated. 

 

Would someone point me to an example or reference where I could learn how this is done?

 

For example: 

I have a PXI-6561 in a 1062Q chasssis.  I am assigning channels 0-3 as dynamic and using HSDIO write to populate the 4 channels from a waveform.  

 

I need channels 0 and 1 to be un-disrupted and repeating (all channels are the same lenght).  Channel 2 is data sent to an IC and channel 3 is used for queing updated data.   I'd like to HSDIO write to channel 3 and then, when the write process has completed, I would like to swap channels 3 and 2 before the waveform begins another cycle.  

 

I have tried this by re-calling the Assign Dynamic Channels node.  This did not work because Assign Dynamic Channels does not work after the waveform has been initiated.  

 

A very similar question was addressed on this forum at the below link.  This did not work for me because the waveform is already commited when I want to make the switch. 

http://forums.ni.com/t5/Digital-I-O/HSDIO-Dynamic-Generation-of-Digital-Signals-on-Separate-Non/td-p/2279466

 

Also, I'm open to suggestions about a better way to accomplish this.

 

Thank You,

Sean

Errors in executing VI with a project

$
0
0

Hello,

 

The Vi file attached is running when it is not included in a project i.e when I run it separately. When I add it to a project on cRIO in FPGA mode it does not run. I get all the possible errors like 'Sub VI is not executable (for all sub VIs)', 'wire type not supported in current target', 'diagram constant: type not supported in current target', etc..

 

The VI includes running LED. My main motive is to replace the LED with a digital I/O module. 

Please help.

 

Thank You

"niHSDIO Get Session Reference.vi" equivalent in niHSDIO.dll

$
0
0

Does anyone know if there is a niHSDIO Get Session Reference function in the niHSDIO.dll?  I see a reference for a LabVIEW vi in the niHSDIO help file but nothing by the same name in the niHSDIO.dll.

 

Thanks for the help!

 

(Extra info: I need to get the session reference so I can pass it to TCLK.)

Error - 1950679023 occurred at shared variable

$
0
0

Hi,

 

Im tring to glow an LED on 9401 DIO module in scan mode of LV 2010. When I run the attached VI I get the following error:

 

"Error - 1950679023 occurred at shared variable in Untitled2.vi

 

Possible reason (s):

 LabVIEW: (HEX 0x8BBB0011) The connection to the server was disconnected.

 

The error or warning occurred while writing the following shared variable \\NI-cRIO9073-013F8672\Mod2\DIO1\\10.10.10.10\Mod2\DIO1"

 

Please help resolve the above issue.

 

Thanks

 

 

Synchronizing PXIe-6556

$
0
0

Hi,

 

I'm trying to do the following two different synchronization tasks (for proof of concept) with two PXIe-6556 cards both in a PXIe-1073 chassis:

  1. Synchronize two generation sessions with one generation session on each 6556 card.  If I configure one session to have a SoftwareStartTrigger and export StartTrigger on PxiTrig0Str, the second session will successfully trigger from it.  However, they aren't aligned, which I think is due to them not having a shared reference clock?
  2. Synchronize two generation sessions on a single 6556 card.  This one I haven't had any luck and I'm not sure is possible.

Thoughts?

 

Thanks for the help.

Export Clock NI9402 in cDAQ-9171 chassis and Read with SCB-68 card

$
0
0

 

Hi,
I have a NI9402 mounted on a cDAQ-9171 chassis and I want to generate a binary signal (1MHz) and export the clock that it is generating the binary signal.
After that I want to read the data.  I import the clock and the data line to a SCB-68 card. I want to use the imported clock as a reference for sampling the data.

Write Code (NI9402 mounted on a cDAQ-9171 Chassis) :
uInt8 dataWrite[8] ={1,1,1,0,0,1,1,1};
DAQmxCreateTask("",&taskHandle);

DAQmxCreateDOChan(taskHandle,"cDAQ1Mod1/port0/line1","dataOut",DAQmx_Val_ChanPerLine);

DAQmxCfgSampClkTiming(taskHandle,NULL,1000000.0,DAQmx_Val_Falling,DAQmx_Val_FiniteSamps,8);

DAQmxExportSignal (taskHandle, DAQmx_Val_SampleClock, "/cDAQ1Mod1/PFI0");

DAQmxWriteDigitalLines(taskHandle,8,1,30.0,DAQmx_Val_GroupByChannel,dataWrite,&sampsPerChanWritten,NULL);

 

Read Code (SCB-68 card and PCI-6534):
uInt8 dataRead[8];
DAQmxCreateTask("taskHandle",&taskHandle);

DAQmxCreateDIChan(taskHandle,"Dev1/port0/line0","",DAQmx_Val_ChanPerLine);

DAQmxCfgSampClkTiming(taskHandle,"/Dev1/PFI2",1000000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,1000000);

DAQmxReadDigitalLines (taskHandle, 8, 30.0, DAQmx_Val_GroupByChannel, dataRead, 8, &sampsRead, &numBytesPerSamp, NULL);
DAQmxStartTask(taskHandle);

 

1) With the scope I am only able to see the first pulse of the exported clock, not the 8 pulses that I should see. Am I exporting the clock correctly ? Please see the attached files: cDAQ-9171 and NI9402 connections diagram from NI MAX.
2) I am interested in using DAQmx_Val_ContSamps because in the future I would recieve a variable amount of data. When I execute this code looks like DAQmxReadDigitalLines () blocks the read program waiting for more data. How does exactly the buffer (set to ContSamps) and the ReadDigitalLines work together ?

Thank you very much

 

 


prohibited state of NI PCIe-6535B

$
0
0

Hi

 

I need to make sure my PCIe-6535B never sets all the lines active at the same time, not even in the transient state or power up/down. That would mean hardware failure which this board controls. 

Is there any setting I can set this board to make sure that will be the case? 

Is there any "prohibited" state which I can configure? 

 

 

9401

$
0
0

Good Morning:

 

I have a cDaq 9184 and a ni 9401 module: I am trying to measure two frequency inputs to the ni 9401 with values between 100 to 2 Mhz and the software configuration for each is "large range counter" and "frequency" selected for them on the counter vi inputs. The outputs of both insturments are open collector with 5 volt max and the pull up resistor that can range between 100 and 1000 ohms, the signals are connected to pins 14 (PF0) and 19 (PF3) and both commons are connect as well.

 

The devices are RADIAN Watthour meters and I can see the acutal values displayed and the Radians and the Radians are compared to a national standard and they have errors between +/- 0.02%, However when I am viewing the values diplayed in LabView the errors are bouncing around +/-10% and it appears to be noise. I have tried everything optical coupling, c mos, schmitt triggers with AND gates and nothing appears to work. So, I verified the resistance between pins 14 and 19 and I am measured appoximately 38 Kohms and then measured both pins to common with a resistance of 8.8 Kohms: shouldn't pins 14 and 19 be infinite?

 

Thanks

Alan 

LabVIEW FPGA 9505 Drive Fault

$
0
0

Hi.

I'm using the NI-9505 driver for controlling a CNC positioning system with PID, T1FLS and IT2FLS for comparison purposes in noise presence. Intentionally, I've added Gaussian white noise to the reference signal and the motor must follow different shapes with that added noise (Square, Triangular, Sawtooth and Sinusoidal). The problem I encountered is that after I enabled the driver. The control system should work until the last reference point is reached, but it doesn't finish because a Drive Fault is triggered. I don't understand why, but I can suppose that the PWM signals applied to MOT+ and MOT-  had occurred at same time when the reference changes and makes the duty cycle change suddenly from positive to negative value due to the noise.

This occurs sometimes whenever I increase the noise amplitude. Normally, without noise, it does finish the program disabling the driver sucessfully until the last reference point is reached.

Please check the VI and the sawtooth signal response (JPG). Some suggestions?

Thank you very much!

Easy driver stepper control via digital outputs

$
0
0

Hi, I have a couple little motors that I'm driving with a Sparkfun easy driver board. The board just takes in pulses, and for each pulse it gets it steps the motor one step. Another digital pin sets the direction. I have attached the VI.

 

I have the digital PFI1 on my DAQ connected to the "pulse" terminal on the board, and it steps when you send pulses to the board. However, the DAQ seems to be operating in burst mode. If I set the frequency to 10 Hz, for instance, with a finite number of steps (say, 1000), the motor steps in little bursts rather than continuously moving. I scoped the output of the DAQ, and it does appear to be turning the square wave on and off.

 

The pulse chain is initiated by:

1. CO Pulse Freq, set to 0.5 duty cycle and the specified frequency using ctr1
2. Implicit timing with finite samples, # of pulses is the number of user provided steps

3. DAQmx Start Task

 

I enter a loop to monitor the progress, which just checks DAQmx Is Task Done every so often and updates a counter.

 

What is a better way to do this? Why is the counter operating in burst mode?

 

Thanks

NI-845x I2C Run Script.vi got error -30742. I cannot write or read

$
0
0
Hi All, I am using Labview 8.5 and Ni-8451. I got the error coded -30742 during writing data into MCU. It works in Cypress IIC, but using Ni-8451 it won't work. Please help me with... Why I got this error? Any idea? Best Thanks. Jessie

Implement fast AND operation using PFI/DIO?

$
0
0

Basically, I am building a timing circuit that must have very low timing jitter (<<10ns ideally), and I need a way to AND two TTL signals.  I could build an AND gate circuit, but was wondering about using DAQMX to do it.  

 

Is it possible to use DIO or PFI lines to implement an AND operation without synchronizing to an internal clock?  Basically, look if both are high and generate a HIGH/LOW output on a third pin without timing jitter associated with waiting for a sampling clock?  I realize I could just trigger off of one signal and read the other, but if it has to wait for the next clock cycle of a free running sampling clock, the timing jitter will probably be too high.

 

 

 

¿como sacar una salida digital con una frecuencia especifica?

$
0
0

tengo un actuador en mi caso lo estoy probando con un foco y quiero que se prenda y apague a cierta frecuencia que yo le ponga estoy trabajando con la trageta ni9474, ya hice un programa pero no me respeta la frecuencia que yo le pongo es la unica forma que pude sacar una salida digital manipulando la frecuencia, no se si me pudieran ayudar adjunto el codigo que tengo.


NI 6509 PXI TTL Input Impdeance

$
0
0

I have a requirement to measure a TTL logic signal with a 5.1K ohm load.  The specification for a PXI version of the board has high input impedance as a default condition.  What is the actual impedance and can I just put a 5.1K ohm resistor across the inputs?  Are there pull up/down resistors like the PCIe version?  Can the default be changed?

 

John Anderson

Controlling 3 LEDs

$
0
0

Hello,

 

I am new user to labview. I am trying to control 3 LEDs (at the end solenoid valves) in order to have each of them switch on-off (at on=2 off=0.5 seconds), but each should start with a delay respect to previous one. So, I am trying to use the VI that I attached, and it works well to have 3LEDs on-off continuously till I stoped. I want to start each LEDs blinking with 0.5 delay respect to previous one. So, by applying this, the LEDs will flash at the same rate but with a time delay to each other. But unfortunately, the programm just turn on-off each of LEDs without any time overlap.

Could you please help me.

Thanks

Como puedo hacer un arreglo inverso ?

$
0
0

Requiero ayuda con un ejercicio:

 

Build a VI that reverses the order of an array that contains
100 random numbers. For example, array[0] becomes array[99],
array[1] becomes array[98], and so on.

Is it possible to connect Multiple DUT's in parallel to a single NI 6552 HSDIO for characterization?

$
0
0

I would like to know if I could connect two parallel DUT's to one NI 6552 HSDIO to obtain characterization for both DUT's simultaneously?

 

 

Also, I would like to know what the specifications are for CLK OUT if such a configuration is to be done.

 

Thanks for your help!

1 wire half duplex

$
0
0

Hi, I'm new to this forum and NI/Labview,

Is there a NI cDAQ module that I can purchase for configuring in 1 wire half duplex mode as developed by Maxim. (not RS485 2 wire half duplex)

I could probably achieve this with a tri-state DIO module, but not sure if there is one?

or RS232 module with tri-state capability?

Viewing all 2178 articles
Browse latest View live


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