Quantcast
Channel: Multifunction DAQ topics
Viewing all 6883 articles
Browse latest View live

light intensity measurement using photodiode

$
0
0

Hi,I would like to measure light intensity from photodiode thorlabs110 which is taken from polarising microscope and control the temperature using linkam controller T95 using labview2014.can anyone suggest code for above project.


nidaqmx limit

$
0
0

Hi

 

I am trying to convert some nidaq code to nidaqmx code. As you can see in attached screendump I have a channeldefinition array and an array which defines the limits for these channels. They are put into the nidaq AIconfig vi which are perfectly happy about different limits for different channels.

Then I try to do the same in Nidaqmx using the DAQmx Create Channel and puts a list of channels into the vi. But this vi (DAQmx Create Channel) only acceps one min limit and one max limit which then are used for alle the channels.

The question is now, how do I create a tast with multiple channels which have different min and max limits??

Error -200077 USB X Series

$
0
0

I have problem with USB X Series 6343. When i try use triggering block i get following error

Nidaq to Nidaqmx

$
0
0

Hi

 

I am trying to convert some nidaq code to nidaqmx code. As you can see in attached screendump I have a channeldefinition array and an array which defines the limits for these channels. They are put into the nidaq AIconfig vi which are perfectly happy about different limits for different channels.

Then I try to do the same in Nidaqmx using the DAQmx Create Channel and puts a list of channels into the vi. But this vi (DAQmx Create Channel) only acceps one min limit and one max limit which then are used for alle the channels.

The question is now, how do I create a tast with multiple channels which have different min and max limits??

How do you do continuous analog output that is timely?

$
0
0

I have looked at all the examples both from NI and posted on the forums and they all seem to until I look at the output coming from the from the card and it can take several cycles before the output starts to reflect changes that I make to the output waveform. This is a particular problem for my current application because each cycle of the output waveform takes about 7 seconds to complete.

 

The analog out is being externally clocked and is triggered. The triggering is set to Start retriggerable because with each trigger I need to output exactly 141 datapoints and then stop until the next trigger occurs. That much is working like a champ.

 

I have the DAQmx Write set to Do Not Allow Regeneration and the hardware's (USB-6363) output buffer is set to the dataset size (141 samples). Once all the DAQ is setup I write the first cycle of the output signal (141 samples) and start the task. From there on I write another 141 samples every 7 seconds. All seemed to be working until I looked at the output with a scope. When I change the data being sent it started with a 2 cycle delay before the output data changed (which I can buy).  However, the longer I let the process run, the longer the delay gets. Right now after about 400 cycles output, the delay is about 9 cycles -- and the delay just keeps growing.

 

I can't post the code publicly, but if you PM me I will send it to you.  Any ideas/insights/castigation would be greatly appreciated. 

 

Mike...

Voltage control to control flow in MFC through USB6009

$
0
0

Hi People!!

 

Hope its going great!

 

Well I am learner in LabVIEW and been studying and researching about automating my simple situation... :smileyhappy:

My setup is really simple:

 

What I have is 2 Mass Flow Controllers from Bürkert Flow Control (Model - 8710). And they can be interfaced and controlled via simple Analog Inputs.

AlsoI have, NI USB6009 DAQ which has 2 analog outputs, which solve my purpose..

 

What I want to do, is to simply control the analog outputs into the MFC's simultaneously through two potentiometers (for instance on the front panel) to control the flow rate through MFC's.. The range in which I want to control the voltage is 0-5V..

 

Can somebody share a sample VI for reference in this regard just to get me started?? All I have reached upto is this VI which I am attaching!

 

I sincerely look forward to your support!

Thanks in advance!! :smileyhappy:

 

Regards

 

Pramit

Changing Ni scope V/div results in signal saturation

$
0
0

Hello everybody !

 

I am using a NI PXIe-5114 scope card in my PXI system and I am facing a issue ...

In the test panel of that card in NI MAX, according to the V/div settings, the signal is cut-off or not just as if a saturation was applied (even though the amplitude can definitely be displayed on the screen ...). 

 

The problem is that in my LabVIEW vi's when I call the NI scope, I always get this saturation because I haven't found any option to tune the V/div from a vi ...

 

Can anyone help me see where I am going wrong with the use of my NI scope ?

 

Thank you in advance !

NI PCI-MIO-16E-1 & NI PCI-6070E digital outputs to scb-68 to electrical circuit

$
0
0

I am currently designing a circuit and trying to interface the NI PCI-MIO-16E-1 & NI PCI-6070E DAQ's and the SCB-68 to my small circuit. The outputs are 0vdc (low) to 5vdc (High). From what I underdstand the NI PCI-MIO-16E-1 & NI PCI-6070E are the same when it comes to the 5 volt digital outputs? Also will the current be enough to turn on a LED on a PS2501-4 or a 4N38 Octocoupler? If not, what would I need to do to amplify the current. Or if you have any suggestions on resistors, capacitiors, etc. please let me know. Thanks!!


USB-TC01 gives error -201165 "firmware for this device is too new"

$
0
0

Not sure where else to post this, but the USB-TC01 uses DAQmx, so maybe somebody recognizes this.

 

I plug it in to the USB and it enumerates fine.  It runs the canned application just fine.

 

But when I try to take data under DAQmx 9.1.5 I get that curious mesage, along with the advice "Downgrade the firmware for this device"  I don't want to do that.

 

EDIT:  I see that the firmware on the device is 1.1.0f 1

 

The specs on the USB-TC01 do not say which version of DAQmx is needed, although 9.1.1 supports the device.

 

I have tried this on XP and Win7 with the same result.

 

TIA

 

Ed K

 

PCIe6323 to BNC2090A?

$
0
0

Hi,

 

I know it's a dumb question but just need to confirm-can I connect BNC 2090A to a PCIe6323 DAQ board (X series). The manual for the BNC2090A says " Do not connect the BNC-2090A to any device other than a National Instruments E Series or M Series DAQ device. " I have my 2090A connected to 6323 and seems fine so far...?

Burst Mode Data Write In PCI 6250

$
0
0

Hi,

 

I have a requirement for transfering three Digital pulse train[256 samples each] in three Digital Lines.

 

I want to burst out all the three DOUT channels atonce to the unit.

 

how can i do this in a single write function.

 

 

 

 

Thanks in advance

Bharathi

How to flush output buffer, optionally resize it, and write to it again, before starting output task

$
0
0

I'm using PyDAQmx with a USB-6363, but I think the question is generic to DAQmx.

 

I have an output buffer which I want to be able to (re)write to without starting the output task.

 

Specifically, I have a GUI and a few sliders the user can move around.  Each time the slider changes, a new set of values is loaded into the output buffer via DAQmxWriteAnalogF64.  After setting the value the user can click a button and the output task starts.

 

In some cases the slider change doesn't require a change of buffer size, only a change of the data.  In this case I get the following compalint from DAQmx while attempting the write:

The generation is not yet started, and not enough space is available in the buffer.

Configure a larger buffer, or start the generation before writing more data than will fit in the buffer.
Property: DAQmx_Write_RelativeTo
Corresponding Value: DAQmx_Val_CurrWritePos
Property: DAQmx_Write_Offset
Corresponding Value: 0
Property: DAQmx_Buf_Output_BufSize
Corresponding Value: 92

 

In other cases the slider change requires both change in buffer size and change of data.  In this case I get the following, but only after doing it a few times each time increasing the size of the write.

DAQmx Write failed, because a previous DAQmx Write automatically configured the output buffer size. The buffer size is equal to the original number of samples written per channel, so no more data can be written prior to starting the task.

Start the generation before the second DAQmx Write, or set Auto Start to true in all occurences of DAQmx Write. To incrementally write into the buffer prior to starting the task, call DAQmx Configure Output Buffer before the first DAQmx Write.
Task Name: _unnamedTask<0>

Status Code: -200547
in function DAQmxWriteAnalogF64

 

 

I've tried configuring the output buffer via DAQmxCfgOutputBuffer (in some cases configuring it down to zero or one samples, then back up again, in an attempt to clear it out) but that doesn't seem to do the trick.

 

Of course I can work around the problem by loading the data only when the user clicks the final button, but that's not what I'm asking here.

Is there any way to "redo" the output write before starting the task?

 

thanks

Michael

 

Medir Flujo

$
0
0

Hola amigos, estoy haciendo un proyecto el cual consta medir el flujo de agua con Labview y una Ni DAQ, alguien tiene algun programa para poder hacer esto? 

El sensor que uso lo anexo en una foto, el cable rojo es voltaje, el negro es tierra y el amarillo es señal.

Necesito poder visualizar los valores en un indicador numerico y en una grafica.Flu.1.png

In NI-DAQmx I renamed a task and lost all the channel settings I had just created. Is there a way to get that back?

$
0
0

I created a simulated PXI-6509. I created a NI-DAQmx task and then added 96 channels. I renamed the task and all that work was gone. I tried changing the name back, but that didn't bring my data back. Any suggestions?

Burst Mode in Digital Lines

$
0
0

Hi,

 

I want to write on three Digital Lines as follows.

 

int er=DAQmxCreateTask("GPRxTask",&gTaskHandle);

er= DAQmxCreateDOChan(gTaskHandle,"Dev1/port0/line0","clock",DAQmx_Val_ChanPerLine);
er=DAQmxCreateDOChan(gTaskHandle,"Dev1/port0/line1","Txdata",DAQmx_Val_ChanPerLine);
er=DAQmxCreateDOChan(gTaskHandle,"Dev1/port0/line2","strobe",DAQmx_Val_ChanPerLine);


er=DAQmxWriteDigitalLines(gTaskHandle,256,0,-1,DAQmx_Val_GroupByChannel,Clck,NULL,NULL);
er=DAQmxWriteDigitalLines(gTaskHandle,256,0,-1,DAQmx_Val_GroupByChannel,Strobe,NULL,NULL);
er=DAQmxWriteDigitalLines(gTaskHandle,512,0,-1,DAQmx_Val_GroupByChannel,TxData,NULL,NULL);

i have a requiremnt to burst all the three lines together at the same time .

Please let me know , how it can be acheived (above code write the lines one after other)

 

Thanks

IVI

 

 


NI 9237 to RVDT R30A

$
0
0

Dear All,

 

I'm a new user of NI systems and I really appreciate and need your help.

 

I want to connect NI 9237 to RVDT R30A ASSY (the input voltage is 3VRMS). However, I have one load cell connected to my NI which needs 10v excitation and I need (or have?) to use 10v for all of the inputs. I talked to a guy in MEASSPEC (the company that we bought our rvdt from them), and he said we can use 10v excitation if our signal conditioner can support 30mA. I searched the datasheet, but I couldn't figure it out what is what! Can you make some clarification for me? Can NI 9237 support this mA?

 

I appreciate your help if you introduce me to some books or web pages that can help me to improve my understanding of the modules and knowledge of electricity.

 

Best Regards,

Bardiya

 

P.S: I'm not sure that I used the correct forum for this question or not. I really appreciate your help.

Dispatch multiple digital input to different VIs in different projects

$
0
0

I have a USB-6259 DAQ, and I would like to acquire several digital voltage inputs from different independent VIs.

 

According to what I read it is not possible to acquire data from multiple digital input channels using mutiple daqmx tasks (even using software timing). As a result I am looking into building a VI which would acquire data from multiple channels using a single task, and into controlling this VI from other VIs using VI server.

 

Has someone done this before ? Is there a better way to achieve the functionality I need ? Thank you very much for your advice.

digital bits acquition using one sample on hardware timed mode in pxie6535

$
0
0

I want to acquire 12 bits digital data.for that i am using pxie 6535.When i am configuring daqmx in one sample on hardware time mode error occurs like this :

Error -200077 occurred at DAQ Assistant.Possible reason(s):Requested value is not supported value for this property.The property value may be invalid because it conflicts with another property.

I am using pxi 1071 chasis with pxie8820 embedded controller.

How can i acquire the digital bits properly.

Error Code 88709 Reading NI USB-6225 OEM

$
0
0

We have an issue that exists on one of two nearly identical systems that use NI USB-6225 OEM cards.  We are reading 75 channels at 1 kHz once per second.  On one of two systems the Error Code -88079 occurs intermittantly and when this happens the DAQ measurements stop though the code does not freeze.  We do not write to the 6225 card, the only thing we are doing is reading the AI channels.

 

Our LabVIEW version is 2013 SP1 f2 and NI-DAQmx is version 14.1.  NI MAX is v14.0.0f0.

 

The first system runs on a Windows 7 desktop workstation and has serial mass flow controller software with timers to change flow and concentrations based on a control file as well as a MODBUS TCP NDIR interface.  This system is complex but works perfectly.

 

The second system runs on a Windows 8 laptop.  The mass flow software, timers, and NDIR interface were removed from the code of the first system to simplify the software for the second system.

 

It is only the second system that produces the Error Code -88079.  This can happen once a month or several times a day.

 

I've removed all the 'bloatware' from the Windows 8 laptop and ensured that nothing is set to hybernate or sleep and also turned off the Windows and other automatic updates because these systems must run 24/7 for a year.

 

So, what is the best resolution for the Error Code -88079 problem with the second system?

  1. The DAQ card was calibrated and tested ISO-17025 through NI by an independant agency so it is not likely to be faulty but we could replace it with another (not ISO-17025) card we have on hand for diagnosis
  2. The USB cable is a possibility.  We could obtain a high quality USB cable and make sure the ends fit tightly.  Disconnecting the USB cable when the code is running produces Error Code -88079...

Any other suggestions?

 

Warm Regards,

Lloyd

How can I synchronize multidevice tasks?

$
0
0

Hello, 

 

my setup features two NI DAQ boards, a PCI 6110 (Dev1, S series) and a PCIe 6323 (Dev2, X series). I would like to create a task which generates synchronized outputs (and inputs) across both devices.

 

In order to test this, I created a task in "Ni Max" with two 'ao' channels, one on Dev1 and one on Dev2. When running this simple test script, I get the following error : 

--------------

Error -201426 occurred at DAQ Assistant


Possible Reason(s):

One or more devices do not support multidevice tasks.

Device: Dev1

 

-----------------

 

The answer here (http://digital.ni.com/public.nsf/allkb/3E79C9FAB91012A186257941000AD076) suggests however that X-series (my PCIe 6323) and S-series (my PCI 6110) devices support multidevice tasks. 

 

Both cards are connected through a RTSI cable and the cable is added in 'Ni Max' with both devices added.

 

Thank you very much for any help.

 

Cheers,
Michael

 

 

Viewing all 6883 articles
Browse latest View live


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