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

NI PXI-6509 Power up states Issues

$
0
0

I am using NI PXI-6509 cards with PXIe-1065 chassis. I am having couples of issues with setting power up state of PXI-6509.

 

1) When i change PXI-6509 power up state to "1" in MAX, it doesn't show the changes in the configuration panel. The panel shows the Power up state in Configuration panel to Set All "0". How can i check my device power up state is 0 or 1?

 

2) In the PXI-6509 manual, it is stated that limited Write cycle is available on EEPROM. How many time we can change power up states?

 


Computer / nuDrive connection

$
0
0

Hello,

I want to connect a stepper motor to the computer via nuDrive(Model: nuDrive-2SX-411).

So I did the followings.

- I installed PCI device to the computer

- I installed Labview software and NI drivers (DAQmx, VISA, 488.2, Motion)

- I connected the stepper motor (phytron ZSS) to the computer via nuDrive

However, the computer could not detect the nuDrive at all.

I found the PCI device in the NI MAX software but it showed a "PCI\VEN_1093&DEV_2CF0&SUBSYS_00000000&REV_01\4&38D01F93&0&30A4".

And because there was an exclamation point, I think it does not seem to be working properly.

(It said "Windows does not have a driver associated with your device.")

Also, the NI Device Monitor said that "No NI devices detected".

 

I think there would a problem regarding PCI device or nuDrive.

Would you please let me know how to overcome this situation?

 

Thank you so much.

I also attach a file about the above things.

usb-6341外部触发同步采集

$
0
0

我需要使用两台采集卡分别采集信号,外部有信号发生器来产生触发信号。请问如何将信号发生器的触发信号接入两台采集卡中,实现同步采集?

MS OFFICE SETUP & INSTALLATION

$
0
0

How to MS office setup? firstly open Ms office tools then fill in details enter the product key in the back cover Press enter And Download your ms office Started... then installation finishes and uses the ms office. For any nuisance regarding this Office Setup and activation Some details, Just Visit My website ...

1ms Digital output using DAQ maz USB 6353

$
0
0

Hello evryone,

I am new using DAQ max NI, I am trying to generate 1ms digital output pule but I am geting the 1.6ms.

if I want 10ms I am geting 16ms.

Could you help me to resolve this problem please?

 

Thanks>

Electronic communication and engineer

$
0
0

I am fersher and trainering this field will wrk defentily

Reading Parallel bits and sending them over USB

$
0
0

I have an FPGA which is sending data off on the GPIO pins. I want to read these bits in parallel and then send them to my pc over a USB cable. I have been looking at a couple different options to do this including the USB 6501. Is this device a good option for this application or is there a better option out there.

 

Thanks in advance.

collection rates on USB6001 vs USB6434

$
0
0

I am collecting two passive digital signals off of a rotary encoder. Each signal is a quarter out of phase so that you can determine direction. I was using the USB 6001 to collect 1000 samples at a time for analysis which works fine as long as the wheel isn't going to fast. Once it hits the 6001 at a rate that is too fast, the signal starts to suffer from aliasing. The 6001 is able to collect 1000 one byte samples (1 port, 2 lines) in ~ 300ms.

 

I have a USB6434 that was available, so I thought I would try that out instead in the hopes that it would have a higher sampling frequency. However, that system takes ~1s to collect 1000 samples. This seems like there is something wrong as the 6434 is a high end model.

 

Do these timings make sense? Is there a way to get the 6434 to sample at a higher frequency?

 

Details:

I am using the c# library in NIDAQ-mx 19.1.

 

I create a digital input task, using ChannelLineGrouping.OneChannelForAllLines. I then use a DigitalSingleChannelReader to read the data from the task Stream using the method ReadMultiSamplePortByte.

 

I need to compare the two signals to get direction, so I can't use counters to count the rising edges.


TTL signal triggers a Python callback

$
0
0

So, I have this NI USB 6008  connected to a microscope which will be sending a TTL pulse to one of the digital ports, lets say P0.0. What I want to do is when that pulse comes in (hence port reading changes from False to True, or vice versa for example) to trigger some Python task on a pc connected to my nidaq.

I am completely new to these nidaq devices (in fact, any nidaq). Is that possible with the 6008 model, which event should I be looking for to do the callback please? I will be using PyDAQmx library. Has anyone done something similar please?

 

Thanks

How does one output a rectangular train on USB-6009 digital pins that has frequency of 10 KHz or higher?

$
0
0

Hi,

I've got a USB-6009. I'd would like to use a digital line to output blocks of 25 rectangular pulses with max period of 100us and 50% to 75% duty cycle. The spacing between the blocks needs to be 60us or longer. This is what I tried, but it gives me a period of 2ms (500Hz).  Bildvorschau

I wonder if the USB-6009 is even capable of reaching 10KHz on it's digital outpu lines and if so what do I need to change in my VI to get such a rectangular pulse train.

Any help and advice would be greatly appreciated

Cheers!

solenoid valve control with NI USB 6009

$
0
0

I want to control solenoid valve with NI USB 6009 in LabVIEW. I have 'ks320s' solenoid valve. Can i control this valve with NI USB 6009? How can programming LabVIEW. Please help me thank you... 

USB-6501 Results changing with every call to DAQmx Read

$
0
0

I am busy editing some old LabVIEW code I had written back when I was just getting started that I now know to be sloppy and/or dangerous.  The application I am working on uses a USB-6501 to control up to 16 different output pins used by our automated test setup.  My old way of doing it was to create a new, unnamed task every single time we wanted to change a single output value, run the task to change the value, then clean up the task.  The change I am making will make a single task for the device with all 16 channels registered in a pre-set order to match an enum that the higher SubVIs will use to switch multiple lines at a time.  

 

The problem I am having is in testing this out.  I don't have a USB-6501 to test on currently, so I simulated on in NI-MAX and then wrote a small VI to test whether or not it was working.  First, here is the initialization SubVI to test up the task:

 

image.png

 

Next is my test SubVI:

image.png

 

Basically, since I want to be able to write to multiple channels at the same time without disrupting the states of the other channels, I want to make sure I can read the current output states from the device, alter only the lines the caller asks to, and then write the whole thing back out.  So if I want to alter the states of the two pins which control the two physical relays, I don't want to also alter the channels that control the LEDs, and vice versa.

 

The problem that I am having is that what I read is never what I write.  Worse, what I read is always the same no matter what I write AND changes every time I call DAQmx Read.  Every time I do a read, each individual port starts incrementing like it's a binary counter: the least significant line on each port changes from OFF to ON; the next time, the least significant lines change to OFF and the next line changes to ON; then both change to ON; then they both change to OFF and the next line changes to ON.  The series of snapshots below are having done NO write commands and a series of read commands:

image.png

Every time I start the application, the first read always shows all OFF, then goes through this same sequence.  I don't know if it is because I am using a simulated device or what, but this is really concerning.  Help getting to the root of the problem (preferably not things like keeping around the previous results of the last "write" command so I know what the last thing I wrote was) would be infinitely helpful.  Thank you.

Digital pulse / delay generator with NI 6537

$
0
0

Hello.
I have NI 6537. It has many digital outputs and a high clock frequency. Can I use it for a multi-channel pulse / delay generator? How can I use the clock of this board? The pulses I need can have a long duration (seconds), but they can also be short (microseconds). The delays between them are important to me.

I ask for help in answering the question is it possible to do this at 6537? The DAQ examples I looked at did not help me find the answer to the question. The internal clocks of Labview do not suit me.

Regards, Thank you!

NI-8452 Digital IO while in slave mode

$
0
0

I currently have 2 Ni-8452 devices and I have one setup as a master and one as a slave.  The 12C interface is working great, but I was trying to write to the Digital IO lines on the master and read them on the slave.  Whenever I call ni845xDioReadLine on the slave I get an error that this call is not supported. 

Is this feature not available or do I have a setup problem.   

I need to test I2C communications and also see IO line changes.  Is this possible?

 

Thanks

Programmable pulses and DO synchronization

$
0
0

Hello everyone,

 

1. for a test I need to generate 3 pulses (24VDC) whose durations are ~1ms and should be programmable. The 2 delays between them shall be independently configurable.

 

2. Moreover I have to generate ~30 DO (24VDC) which could be synchronized (accuracy < ms) between them, and I have no idea how to do it.

 

For the moment I don't have any setup for this, I would know which NI card I should buy. I don't know if a PXI is mandatory for my project, maybe a cDAQ can be sufficient.


This API call cannot be made when in I2C slave mode

$
0
0

I am using to Ni-8452 devices to test an interface before hardware is available,  I am using the i2C interface with one in master and one in slave mode.  But whenever I try to read or write to the digital IO lines on the slave device I get the errror "The device is in I2C slave mode. This API call cannot be made when in I2C slave mode. Refer to your documentation to determine how to stop I2C slave mode"

So does that mean I can only get I2C or digital IO?  Or is this a configuration issue.

 

Thanks

PCIe-6363 DO Waveform Out With Exported Clock

$
0
0

We're tryign to use a PCIe-6363 to do some waveform outputs.  Basically, we have 32 synchronous serial devices (SPI), and we're attempting to control them all in parallel.  We're building the serial stream, and writing it out Port 0, which is working.

 

Now we're attempting to export a clock, and that's more challenging...We figured that we could export the doSampleClock or doSampleClockTimebase to a PFI port to get that done.  Those are generating pulses (so it just does a small pulse at the given time, not a typical clock square wave -- that's expected, I believe?  Or is it not?).

 

So, I think that we need to enable a counter, set it to the right frequency and duty cycle, use it for the do task, and then also export it to a PFI, right?  Is that possible?  We're hitting some serious brick walls in our attempt to do so, and there are just a lot of various functions calls and internal names and clocks, etc that are giving us a tough time.  What's the magic combination here?  Any help would be appreciated!

 

 
tmp=NI.NI_6363.DAQmxCreateDOChan(taskHandle,"Dev1/port0","hi",NI.NI_6363.DAQmx_Val_ChanForAllLines);

               
	tmp=NI.NI_6363.DAQmxCreateCOPulseChanFreq(taskHandle2,"Dev1/Ctr2","",NI.NI_6363.DAQmx_Val_Hz,NI.NI_6363.DAQmx_Val_Low,0.0,25.00,0.50);
	tmp=NI.NI_6363.DAQmxCfgImplicitTiming(taskHandle2,NI.NI_6363.DAQmx_Val_ContSamps,1000);
   
       tmp=NI.NI_6363.DAQmxCfgSampClkTiming(taskHandle,"/Dev1/Ctr2InternalOutput",100.0,NI.NI_6363.DAQmx_Val_Rising, NI.NI_6363.DAQmx_Val_ContSamps, 1000 );
               
//also have tried exportsignal, connectterms, and other functions. What's the preferred way here? tmp=NI.NI_6363.DAQmxSetExportedSampClkOutputTerm(taskHandle,"/Dev1/PFI1");



 

HPQ-D11-L05 leak sensor

$
0
0

Can this HPQ-D11-L05 leak sensor be powered via a two wire signal cable from control panel?

Connecting to Old Instruments Having +-12V RS232 Voltage Levels

$
0
0

Hi,

  I have an old piece of instrument built in the 1980s. It requires +-12V voltage levels for the RS232 interface. My eBay USB to serial dongle doesn't work. Can someone suggest a PCI or PCIe card that can reach +-12V? For example, can NI's PCI-8430/2 do the job? I found the following table in the file http://www.ni.com/pdf/manuals/373170f.pdf, where the "Driver output" is listed to be 5 to 25V. Is this the voltage level of the signal, such as the "Data Treminal Ready" (DTR)?

PCI-8430.png

 

PCI6509 readout too slow

$
0
0

Hey,

 

I'm using PCI6509 card to read out 100 000 samples per channel (I have 3 channels) but at the moment, with my code, I can read out maximum 150 samples/second which is too slow. I'm guessing that there is something missing from my code which is written in C.

 

Here is the code I'm using:

TaskHandle digitaskHandle=0;
uInt8 readArray[300000];
int32 sampsPerChanRead;
float64 timeout = 1.0;

DAQmxCreateTask("DigiRead", &digitaskHandle);
DAQmxCreateDIChan(digitaskHandle,"Dev2/port0", "X", DAQmx_Val_ChanForAllLines);

DAQmxCreateDIChan(digitaskHandle,"Dev2/port1", "Y", DAQmx_Val_ChanForAllLines);

DAQmxCreateDIChan(digitaskHandle,"Dev2/port2", "Z", DAQmx_Val_ChanForAllLines);

DAQmxCfgChangeDetectionTiming (digitaskHandle,"Dev2/port2/line4","", DAQmx_Val_FiniteSamps, 100000);

DAQmxStartTask(digitaskHandle);

uInt32 arraySizeInSamps;
arraySizeInSamps=300000;
DAQmxReadDigitalU8 (digitaskHandle, -1, timeout, DAQmx_Val_GroupByScanNumber, readArray, arraySizeInSamps, &sampsPerChanRead, NULL);

DAQmxStopTask(digitaskHandle);
DAQmxClearTask(digitaskHandle);

 

Please help, any suggestions are welcome.

Viewing all 2183 articles
Browse latest View live


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