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

How to install an USB6229BNC to be used as an IVI device under teststand?

$
0
0

I have to install an USB6229BNC on an Laptop running Win7 /64. This will have to be accessed under Teststand 14 as an IVI device. So what do I have to install in which sequence? And how will the device be accessed later in Teststand?

This is, what I tried until now:
The first part described in the help file was to install NIDAQ861. Having done that, I found the device in the Windows Device Manager. But no access in any way to the device was possible.
After installing NIDAQ1600f0 I found the device in the NIMAX, so my hope was, that I could start to setup the device as IVI. In fact I could start to edit the driver session, but on the software tab I stuck again, because the device wasn't specified in any way.
So I think, I need some help how to install which driver in which sequenceand where do I get the API to access the device after that.

 

Thanks in Advance

Regards Kai


Number of tasks created

$
0
0

I'm using C++ and creating named tasks using DAQmxCreateTask.

How do I read the number of tasks created, and each name of the tasks?

 

I'm using DAQmxCreateTask and DAQmxClearTask to test different capabilities before starting. Sometimes it seems that the task is not correct cleared, how to I test that a task is cleared correctly?

 

-cpede

Beginner bench setup for introduction to analog measurements

$
0
0

Hi everyone, 

 

I'm looking to setup a system to help take some simle measurements. This setup will be used only by me at my desk/workbench to help me better understand a few machine parts I have as well as do various other troubleshooting on equipment. Some of the most common measurements I want to be able to take are: stress/strain, vibration, temperature, force, torque, and motion.  

 

At this point this project is just small scale. I'm not running PLC's or using the data to help run a plant. This setup will be pretty much just myself, my computer, and some piece of equipment I need to test. 

 

I currently have an NI 6003 for my use which would be preferrable to use but if I need a more heavy duty DAQ then I can get that as needed.

 

My main question is whether or not I can get aqeuate results with the 6003 DAQ and if I would be able to sufficiently condition the accompanying signls or if I need to find a DAQ with higher resoluion and a sufficient signal conditioner. My concern is whether or not I will be able to properly condition signals from piezoelectric sensors when taking vibration measurements. Is there a way to do this to produce viable results or am I going to have to get a more capable DAQ? I'd like to be able to do a frequency analysis on motor shafts running typically at about 60 Hz. It would be nice if I had the capabilty to observe signals of up to 150-200 Hz at least.  For my purposes I don't need incredibly accurate results if I can get away with a more afforable setup. I think a final p value confidence level of (90 %) will be fine at this time. 

 

I'm still quite new to data aquisition and signal conditioning. My goal behind this mainly to learn how to take good measurements properly more than I am concerned with accurate results. 

 

If anyone could give me thier thoughts on this matter I would very appreciative. 

 

Thank you kindly,

 

James

How to wire two Turbidimeter Model 850 to one NI 9203 module (8 channels) ?

$
0
0

Hi all,

 

I am using NI cDAQ-9174 and NI 9203 analog current input module.  I want to use two turbidity sensor whose output are 4-20 mA.  I will wire the two negative lead of the turibidity sensors into one and connect it to the COM.  The positive lead of the turbidity sensor number 1 will goes to the AI0 and the positive lead of the turbidity sensor number 2 will goes to the AI1.  Am I correct?

 

The wiring diagram of the turbidimeter model 850 is attached below.

 

Thanks.

Data acquisition with NI 6225, .NET C# ReadMultiSample in a Loop -> ERROR

$
0
0
Hi, We are trying to acquire data from analog input channel in a loop. We are using ReadMultiSample function. But when we increase the loop count then system hangs. ... analogInTask.AIChannels.CreateVoltageChannel("/Dev1/ai0", "ICh1", AITerminalConfiguration.Rse, -10, 10, AIVoltageUnits.Volts); AnalogSingleChannelReader reader = new AnalogSingleChannelReader(analogInTask.Stream); analogInTask.Timing.ConfigureSampleClock("", frequency, SampleClockActiveEdge.Falling, SampleQuantityMode.FiniteSamples, samples); ... for (int i = 0; i < loopCount; ++i) { lock (lockIt) { stopwatch.Start(); results = reader.ReadMultiSample(samples); stopwatch.Stop(); } ... We want to prepare statistics of elapsed time. Is it allowed to do such an operation? If no then how we can do that in .net? We are using .NET 4.5.2. -Arati

NI 9203 current sensing module

$
0
0

Hi I have a 9203 module that's is a current sensing module and it's an 8 channel module, I am measuring a 4-20 ma pressure transducer from a compressor which is in this module and works perfectly in Labview, and I would like to have a different device, measure that same current and effectively Y splitting the cable. How can I do that?

DAQ Access on Android

$
0
0

I'm moving an existing USB-6002 application from Windows to Android.  The plan is to use C# under Xamarin, in addition to external USB support.

 

From searching around here, it seems that there is no android binding for the NationalInstruments.Common and NationalInstruments.DAQmx assemblies.  Is there any documentation on lower level messages being send to the device?

 

 

Simultaneous AO and AI with NI PCI-6229 MATLAB DAQ toolbox

$
0
0

Hi, All.

 

I need a help, an example of code in MATLAB how to make real-time generator for Analog Output channels and simultaneously and synchronously acquire the data from Analog Input channels for NI DAQ PCI-6229 board. For example: on 1st AO channel I set the sinus wave, on 2nd AO channel I set cosinus wave. On 1st and 2nd AI channels I need to get the input data with the same rate synchronously. And draw all the data (2 AO channels and 2 AI channels) on the same one plot in real-time.

How can I do it?

 

Thank you.


Error -50103 at DAQmx start task on cDAQ-9174 with 9361

$
0
0

Hopefully this is the appropriate forum. I'm trying to sample data from an angular encoder and photoswitch on a 9361 module. When I run the sub-VI (RR velocity+slip tasks) that creates and configures the tasks there are no issues but when I try to run it in my larger program I get the dreaded error -50103. I've tried un-reserving the one task before starting the other but that only seems to work the first time the program executes. I've reviewed this knowledgebase article and believe I'm not running into those issues unless I'm missing some sort of implicit overlap in devices or routes.

 

Snippet and VIs attached. The "counters+loop" VI is a simplified top-level VI where I can get the error to occur. I'd greatly appreciate anyone being able to point out my stupidity.

 Tasks+loop snippet.png

 

Grounding NI USB 6343 DAQ device with chasis ground lug

$
0
0

1. With reference to X series user manual (Page # 17); I want to connect chasis of NI 6343 DAQ device with building ground as mentioned in the user manual.

 

2. There is a potential difference of 5V between neutral and building earth, idealy it has to be zero.

 

3. Is it electrically safe for NI USB 6343 DAQ device to be connected with that building earth which has a potential difference of 5V with respect to neutral input?

 

4. How much Potential difference between neutral input and building earth is acceptable by National Instruments, which will not cause any demage to DAQ device?

 

Kind Regards

 

Jamal

 

DAQ Assistant is not in LabView

$
0
0

Hi all,

 

I use NI cDAQ 9174 and NI 9203.  I have already installed the driver for the NI cDAQ 9174 which is NI-DAQmx 9.8.0.  I can see the device when I open NI MAX. However, when I open LabView 2015, I can't find DAQ Assistant in the Function Palette. I noticed that on the chassis the "ACTIVE" indicator light is not on whereas two other light "POWER" and "READY" is on.  I did look at in the NI forums but I can't find the solution.

 

Any suggestion, please help !!!!

 

Thanks!

USB-6210 - erratic reading

$
0
0

I am working on a simple temperature data logging with USB-6210. I am getting unstable temperature reading on my chart only on AI0, other 7 temperature channel is fine. The temperature temperature fluctuation on AI0 is as much as 40 C. on other channel it's only 2~3 C, which is fine.

 

Taking the measurement using multimeter from ground to AI0 showing consistent reading, No fluctuation. I tried other channel as well AI15 as such. same results. Anybody has explation?

Excuse my english

Générer un signal carré à fréquence variable

$
0
0

EDIT : I didn't post my message on the French Forum as I wanted to do, sorry for that. I've asked a moderator to delete this message.

Bonjour,
Cela fait deux jours que je bloque sur un problème, je me tourne donc vers le forum pour trouver une solution.

Contexte : J’utilise un châssis cDAQ-9188, avec un module d’écriture analogique (AO) NI-9264, et un module de Communication CAN XNET NI-9862. Le module d’écriture analogique est câblé vers un calculateur embarqué (ECU), pour le commander, à l’aide d’un signal carré 0-5 V qui varie en fréquence (signal PWM).
L’ECU lis le signal carré, et extrait sa fréquence. Cette fréquence lue par l’ECU est ensuite transmise par l’ECU sur le BUS CAN.
J’utilise LabView 2014, et DAQmx v14.

Mon problème : Je veux générer le signal carré avec une fréquence que je pourrai contrôler en face avant de mon VI. La gamme de fréquence s’étend de 0 Hz à 1600 Hz.
J’utilise donc le VI DAQmx Write, sur une tâche AO Tension, dans une boucle while, avec le VI Générateur de fonction élémentaire qui me génère mon signal à chaque itération.
En guise d’indicateur, je lis le signal sur le bus CAN et je l’affiche sur un Graphe XY qui défile avec le temps (voir VI ci-joint).

Comme vous pourrez le voir sur le screenshot n°1, mes points de mesure de la fréquence varient entre deux valeurs, alors que ma commande de fréquence est fixe … A noter que plus on se rapproche d’une commande en fréquence haute, plus l’écart est grand.
Je précise que l'ECU lis parfaitement la fréquence et retourne une seule valeur de fréquence constante quand j'utilise un GBF pour générer mon signal carré.

 

Je pense que ceci vient du fait de l’échantillonnage : certaines fréquences ne peuvent pas être échantillonnées correctement suivant la fréquence d’échantillonnage.
Exemple : Echantillonnage à 10 Khz donc chaque échantillon sera séparé par un temps dt = 0.1 ms. Pour un signal à 1.6 Khz, donc de période T = 0.625 ms, j’aurais 6 échantillons par période (3 échantillon à 5 V et 3 à 0 V), et j’aurais donc 0.025 ms qui « ne seront pas échantillonnés ».

Est-ce que c’est bien la source de mon problème ici ?

En première solution, je me suis dit que j’allais échantillonner à une fréquence d’échantillonnage Fe = 10 * f, avec f la fréquence voulue de mon signal carré, ce qui m’assurera toujours un échantillonnage parfait. En appliquant ce principe je réduis très significativement l’écart de fréquence lu sur mon graphe (voir screenshot 2).
Evidemment, faire varier ma fréquence d’échantillonnage me pose un autre problème : quand je dois générer une fréquence basse, ma fréquence d’échantillonnage devient également basse, et la génération prend du temps. Ainsi je perds en réactivité, il faut attendre plusieurs secondes pour qu’une nouvelle commande de fréquence soit prise en compte, et ceci ne sera pas compatible pour la suite de mon projet.

Avez vous des piste à me proposer pour corriger la génération du signal carré tout en gardant un temps de réponse < 0.5 seconde ?
 

Merci d'avance.

Possible to use FPGA clock as Master Time Base Source for NI 9234 ?

$
0
0

Hi,

 

I am running a NI 9234 and a NI 9222 module on a cRIO-9114 chassis with a 9022 real time controller, aquiring Data on all 8 channels on full sampling speed, using the FPGA. 

My problem is the synchronization of the Data, where the NI9234 usually has a delayed aquisition, compared to the NI9222. I've tried manually delaying the NI9222 from taking the first samples but to no avail so far. 

To solve this problem, and also to ensure a more comparable Data rates on both cards, I was wondering wheter it is possible to create a Master Time Base Source for the NI9234 WITH THE FPGA (opposed to importing it from another NI9234 or similar module)? The NI9222 I already supply with sampling pulses from the FPGA (as intended with this module). 

Another question would be the exact timing characteristics of both modules, especially concerning timing between start of the aquisition and the first data samples. I couldn't find any information to that regard...

 

Thank you in advance,

O Hoppe

DAQ6363 capabilities

$
0
0

I have a few basic questions about the PXIe-6363 DAQ which I haven’t been able to find an answer to.

At this point I’m laying out a PCB, so mostly the answers I need at this point are concerned with capabilities, so I don’t connect things up incorrectly.

 

  • What is the difference in functionality between P0/P1/P2 and the PFI functionality allowed on P1/P2?
  • Using DAQmx (C interface) what API functions should I look at for selecting the functionality PFI or non-PFI?  I don’t need a lot of detail, just where to look.
  • For a given port, such as P0, can some IO pins be configured as static outputs, others as waveform outputs, and others as inputs, simultaneously, assigned presumably to different tasks in DAQmx?
  • For a given port, such as P0, can some pins be configured as PFI and others as non-PFI?
  • Do I need PFI to generate a pulse waveform output on a given pin, such as 240 Hz, with 10% duty cycle?

 

I’d like to configure the pins as follows:

P0.0

Static digital output

These can be grouped together into a 4-bit nibble

P0.1

Static digital output

P0.2

Static digital output

P0.3

Static digital output

P0.4

Waveform output, 240 Hz, 10% duty cycle

Must be independent

P0.5

Waveform output, 240 Hz, 10% duty cycle

Must be independent

P0.6

Not defined yet, probably input

Could be analog sample clock or trigger

P0.7

Not defined yet, probably input

Could be analog sample clock or trigger

P0.8:31

Static digital output

These can be grouped together into a 24-bit word

P1.0:7, P2.0:7, or PFI.0:15

Not defined yet

Will use these if necessary

 

In short, do I need to break up the types of functionality into different ports like P0, P1, P2 or can I mix and match individual pins?

 

Thanks


New to LabView and need help!

$
0
0

I'm probably in the wrong forum but didn't know where to start.  I'm very new to all of this, but want to learn - this will probably be very easy to most of you.  I have a 2 wire electromagent and want to write a program to turn on and off.  What hardware do I need?

USB-6225- Connector 0 adds offset to GND

$
0
0

Hello,

 

I encountered odd bhaviour of USB 6225 using mass termination cables which I connected to PCB Icreated.

I have 80 AIs measuring ~0.01V signals at low frequncy. 

When both connector 0 and connector 1 plugged in, UI have  offset of 0.06mV in my measruments.

When I dissconnect Connector 0 from my board, the measruments are OK.

DGND and AGND are dissconnected on my PCB (different plans).

Do you have an idea how to fix this?

cDAQ-9188XT Watchdog Expiration State

$
0
0

I have a cDAQ 9188XT with NI 9263 analog card that I am not able to properly set the watchdog expiration state's output voltage. I've used the DAQmx Configure Watchdog Expiration States vi to configure the expiration state output voltage to 0V as shown in the attached file, but I measure 3.3V at the output when the watchdog timer times out. Am I missing some other setting?

cDAQ 9188XT network disconnection error timeout

$
0
0

When I unplug the network cable from the cDAQ 9188XT chassis and monitor the error outputs of all of the DAQmx vi's that interface with the cDAQ (polled at 5Hz), it takes about 10 sec for one of them to report an error. I've looked for a value that I can set for the timeout but haven't been able to find one. Does anyone know if there is a setting that I can change for this? I'd like to have it report the network disconnect almost immediately ideally.

Change the sampling rate for digital signal generation

$
0
0

I have a question about changing the sampling clock rate when using the digital output
lines to generate signals. 

I'm using DAQmxCfgSampClkTiming (TaskHandle taskHandle, const char source[],
float64 rate, int32 activeEdge, int32 sampleMode, uInt64
sampsPerChanToAcquire); to set the sampling clock source for digital signal
generation.

But I found out the parameter float64 rate doesn't really change the sampling
frequency. For example, if I use "100kHzTimebase" for the const char
source[] clock source parameter, no matter what number I specify for  float64
rate, the sampling rate is always 100kHz.

I don't understand where I did wrong, and I was wondering what's the easiest
way to change the sampling frequency to an arbitrary number I want.

Viewing all 6878 articles
Browse latest View live


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