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

Controlling PI Piezostages via"non-standard" SPI on PCIe-7842R FPGA

$
0
0

I am trying to control two ultra fast piezo stages from PI via their SPI interface. However, for their protocols, their SPI interface has 6 datalines, with four of them being the "standard" SCLK, MISO, MOSI, and CS, and two extra lines being LDAT and DCLK. PI has their GCS command structure that I have used to program other non FPGA target in LabVIEW, however I'm not sure how to modify the "standard" SPI structure used in the example VI's I've found to accommodate. Any insight would be much appreciated! I've attached my basic VI I've used to start based off of example programs I've seen. 


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>

设置远程编译场服务器或编译工作站

$
0
0

Labview fpga编译时弹出与本地服务器通信不上,请问什么原因11111.jpg编译失败提示连接服务器通信问题

Connecting 36VDC to a Digital I/O device. Signal conditioning ideas

$
0
0

I'm making a test jig and I have about 32 output signals to check, they are all either 0-12VDC outputs or 0-36VDC outputs, I don't need to necessarily read their values (analog read), I just need to see that they turn on and off (digital). 

 

I thought this would be a perfect fit for a simple digital I/O device like this. 

https://www.mccdaq.com/usb-data-acquisition/USB-DIO96H-Series.aspx

 

But it has a max input voltage of 5VDC.  Some of my signals are 36VDC.

 

I found these

https://assets.omega.com/pdf/communication-and-connectivity/signal-conditioners-and-transmitters/signal-conditioners/DR-IO.pdf

 

and 

https://www.power-io.com/products/oac.htm

 

But looks like I'm stuck for the 36VDC level because they only work up to 28VDC.

 

There has got to be a cheap way to bring all these outputs down from 0-36VDC to 0-5VDC.  I'd prefer not to make a custom board, but if I have to I will.  I would also entertain a large Analog input device that could read all these inputs and their voltages, but I have a feeling that would be VERY expensive to find a 32 point analog input card (>>$2K)

 

Any ideas?

 

How to fix Garmin Vivosmart 4 that’s not syncing properly

$
0
0

Matching up issues are among the most widely recognized issues Garmin Vivosmart 4 clients have been grumbling about. Some answered to get erroneous information on their cell phones while others said their tracker never again synchronizes with their cell phone.

For this element to work, the tracker ought to be appropriately associated with the cell phone. It spins around the way that the two gadgets are associated through Bluetooth, which isn't as steady as a WiFi association. While this issue may appear to be not kidding, it's in reality quite minor and you can fix it all alone. Keep perusing as I will walk you through in investigating your Vivosmart 4 that never again adjusts appropriately.

For the individuals who are searching for an answer for an alternate issue, drop in on our Garmin Vivosmart 4 investigating page for we have effectively tended to probably the most well-known issues with this telephone. You must Ensure that you are using the free garmin gps update, Peruse through the page to discover issues that are comparable with yours and utilize the arrangements we recommended.

 

Presently, here are the things you should do if your Vivosmart 4 never again synchronizes with your telephone…

Restart Bluetooth in your cell phone.

Interface your Vivosmart 4 to a PC.

Industrial facility reset your Vivosmart 4.

First is ensure the association between the gadgets are steady. Mood killer the Bluetooth in your cell phone and it's better on the off chance that you reboot it. After which, empower the Bluetooth again and enable the gadget to restore their association. When associated appropriately, attempt to check whether the adjust is great. On the off chance that not, at that point proceed onward to the following arrangement.

Control a stepper motor using nidaqmx and digital output in Python

$
0
0

Hello,

I have a problem using nidaqmx digital output to control a stepper motor in Python. I have read through the Python documentation (http://nidaqmx-python.readthedocs.io/en/latest/index.html ) and this example (https://github.com/ni/nidaqmx-python/blob/master/nidaqmx_examples/do_sw_timed.py) already, but I am running into issues getting the stepper motor to rotate. So far it seems like the digital output is being sent to the motor, but the motor is only vibrating and not rotating.

 

System:

Windows 7, Python 3.7, NI USB-6009

 

The code:

import nidaqmx
import time
from nidaqmx.constants import (
    LineGrouping)

with nidaqmx.Task() as task:
	task.do_channels.add_do_chan('Dev1/port1/line0:3')
	task.start()
	while True:
		task.write([8,0,0,0])
		time.sleep(.002)
		task.write([0,8,0,0])
		time.sleep(.002)
		task.write([0,0,8,0])
		time.sleep(.002)
		task.write([0,0,0,8])
		time.sleep(.002)

 When I run the code, the stepper motor will vibrate but it will not rotate like I want it to. Any suggestions to fix this problem? I have already tried changing the length of the pause from .002 to .02 to .2 (and values in between). I have also tried writing different values of bits such as [8,0,8,0] and [0,8,0,8]. Changing the length of the pause will change how frequently it vibrates, but I cannot get the motor to actually rotate. I assume it is an issue with what bits I am writing to the task, because the digital output works.

 

For reference, here is a version of the code in matlab that works like it is supposed to on the same computer/system:

 

clear all
close all
clc
pt=2/100;
s=daq.createSession('ni')
%%
addDigitalChannel(s,'Dev1','Port1/Line0','OutputOnly');
addDigitalChannel(s,'Dev1','Port1/Line1','OutputOnly');
addDigitalChannel(s,'Dev1','Port1/Line2','OutputOnly');
addDigitalChannel(s,'Dev1','Port1/Line3','OutputOnly');
n=0
while(n<100)
outputSingleScan(s,[1 0 0 0]);
pause(pt)
outputSingleScan(s,[0 1 0 0]);
pause(pt)
outputSingleScan(s,[0 0 1 0]);
pause(pt)
outputSingleScan(s,[0 0 0 1]);
pause(pt)
n=n+1
str='loop'
end
clear all
close all

Thanks in advance, any advice is appreciated.

NI USB-6525 Windows 10 compatability issues

$
0
0

Hello im just wondering if anyone has been having connection issues with the following i/o device. This has been previously used in a PC with windows 7 however the same PC has been upgraded to windows 10 and ever since then it feels like signals are not being sent via this module at times or not being sent at all.

 

I'm new to this form just wondering what everyone opinion is on this issue thanks

Continuously update a Digital Output in DAQmx Error -200946

$
0
0

Hello,

 

I am using a USB-6361 interfaced with a BNC-2110 connector shield block. I am attempting to use DAQmx to use a hardware timed digital output (port 0) so that I can continuously output a digital pulse to a motor based on a changeable square wave that I am reading in. 

 

Every time that I attempt to run the run the code, I get error -200946:

 

Possible reason(s):

Task could not be started, because the driver could not write enough data to the device. This was due to system and/or bus-bandwidth limitations.

Reduce the number of programs your computer is executing concurrently. If possible, perform operations with heavy bus usage sequentially instead of in parallel. If you can't eliminate the problem, contact National Instruments support at ni.com/support.

Task Name: _unnamedTask<A>

 

Does this mean that I cannot use the USB 6361 to do what I am trying to do? It does not seem to me that I am using that much bandwidth, that it would overwhelm my computer or the USB device. I tried to model my code over the "Voltage (Non-Regeneration) Continuous Output.vi", replacing things that I needed to make it a digital output. I am relatively new to LabVIEW so there could be something that I am missing. 

 

Thanks


DAQ PROBLEM

$
0
0

Hello,

I tried to use DAQ Assistant to generate a digital output (1 sample on demand) and at the same time acquire an analog input from loadcell (continuous sample at 10K), but the analog input causes my while loop to slow down.

Generally, I want to turn on a valve with digital output at 10ms and keep it on to 600ms then turn it off for 400ms and repeat it ten times. Also, I want to read my loadcell data during this time at 10k. When I tried to put both DAQ assistant in the same while loop and count the time, the analog input DAQ slows down my loop time counter and when I try to run then in two parallel loops, the analog input DAQ cannot run.

Would you please help me find the problem.

 

Thanks,

Mahsa

 

PCIe-6536B

$
0
0

Hi,

 

I have a problem with PCIe-6536B. It is detected on computer and also i test on self Test software it`s working fine. But i reality it doesn`t, 

what is the problem?

can anyone help me about this?

PXI-6541 HSDIO trigger setup delay

$
0
0

Hi,

I am currently using the PXI-6541 HSDIO to receive and log a data stream coming from an external device. This data stream is synchronized to the sample clock of the HSDIO which is exported on the CLK OUT channel and set to 5MHz. The data is sent in "packets", as shown below. Each packet has a start bit which is used to trigger a sampling on the HSDIO card.

 

LabviewDataStream.png

 

Below is the VI used to capture and log the data in Labview. The loop in the VI first waits for a start bit, which is indicated with a "0". Once this happens, it logs 30 samples, which are then recorded and stored in an array. The process then starts again with the trigger waiting for a new start bit.

 

LabviewDataAquisition.png

 

My problem is that the time it takes for data to be recorded and stored in the array and the trigger reset i lose several packets. For instance i might only log Packet 0 and Packet 4, while the remaining packets are lost. This is from what i can see because of the time to read the previous sample and setup the trigger again, which then the loop is timed appears to be around 0.1ms - 2ms, which is far to long when we are talking about a 20us delay between packets.

 

My question is if its possible to somehow perform this trigger setup operation faster, perhaps controlling hardware directly or some other method. Or is 20us too fast in general for Labview applications? One method would be to just read 1000 samples and then try to extract the packets afterward from this sample array, but the problem then is that i risk losing packets because they are either cut off or they are lost once a new set of samples are set to be recorded.

 

Best Regards,

Ole Kristian

 

 

Bend Labs Digital Flex Sensor - 1-Axis

$
0
0

Hello All
I want to hook up the Bend Labs Digital Flex Sensor - 1-Axis to myRIO, but based on it has two pins, nRST and nDRDY, and I do not know which pins of myRIO are these?
Can anyone help me with the wiring it to myRIO?
picture of it is attached.
Thanks

NI9477 Wiring

$
0
0

I'm able to wire the NI9477 so that it lights up 1 led using LabVIEW controls. However, I need to wire the DO channels of NI9477 to a flying leads on a board connector--in other words, I only have access to one VDC pin, one RTN pin, and ten input VDC pins. How can I achieve the sinking output set up shown in the user manual with the input VDC pins?

 

 

NI USB 6251

$
0
0

One question, can NI USB 6251 card communicate with I²C protocol directly or  an intermediary is needed ?

NI 9401 undesired digital input level

$
0
0

Hi NI community,

 

I am using NI 9401 on cRIO-9074. According to the datasheet of NI 9401, the Low level and High level are 0.8V max and 2V min, respectively. It means it should work well in conditions of noise tolerate about 500mV (peak-peak of noise is 500mV max). After incorrectly reading pulses from a motor driver, I tried to set up a NI 9263 (analog output) to check the input levels of NI 9401. It resulted that the state was ON at 1.4V and OFF at 1.3V. Could you please explain why I got the result and how can I mitigate it. 


General PFI / GPIO on PXI-6570?

$
0
0

Hi,

 

we are going to buy a PXI-6570 soon and I have some questions:

  1. Is it possible to use the a few of the 32 Channels as General PFI / GPIO?
  2. Is it possible to have a Interrupt detection with one of the channels?

 

USB-6501

$
0
0

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000004BK0SAM&l=ja-JP

にありますように

問題
制御するデバイスは5Vの電圧を必要としているが、USB DAQデバイスの供給電圧は5V以下です。
低インピーダンスの回路に対して電圧と電流を増加させるにはどうしたらいいでしょうか。 

解決策
電圧と電流をさらに制御する方法は、下図のようにDAQデバイスと負荷で電圧フォロワを使用することです。これにより、負荷回路へ外部電力を供給できるため、DAQデバイスによる電流/電圧の制限はありません。

→初心者の質問で恐縮です。

これにお奨めの製品を教えて頂けないでしょうか

できましたら TTLで4系統を制御したいのですが

何を購入してどういうことをすれば良いのか 図面をみても良く分かりません。

Deadtime of Ni9402 input / output module

$
0
0

Hello,

 

Im using a NI system where the digital output from a photomultiplyer tube is collected by a Ni9402 input / output module.

 

The photomoltiplyer tube itself has a deadtime but what I want to know is, if I can expect any deadtime from the NI components of this system. Does the Ni9402 has a deadtime for example ?. 

 

Best regards,

Erik Jørgensen

NI USB-TC01 Error code -225306

$
0
0

Hi All,

 

We have 2 NI USB-TC01 try safe test for the first one operate normally but the second device  but error code -225306 and reply massage The driver failed to communication.

Read 12 bit signal from amplifier using NI USB-6501

$
0
0

Hi there, 

I am new to LabView. I have been watching tutorials, but they didn't help me. I want to read a 12 bit Digital signal from . I have USB-6501 and I connected it to ground and connected [port0 line 0] to 5 volts. I used DAQ assistant>acquire signal>digital input> 1 line input>port 0 line 0. I set the acquisition mode to 1 sample. Then I created an indicator for the DAQ assistant. Now whenever I hit "Run", the indicator light goes on, so my DAQ system is fine. Now I am not sure how to receive the 12 bit messages from the CN-0350 amp/ADC. can anyone help me?

 

Viewing all 2183 articles
Browse latest View live


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