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

analogic dbs9900

$
0
0

Does anyone have the soft front panel for the DBS9900? Or perhaps a copy of the ATEScope software from analogic?

 

I am trying to veryify my dbs9900 units, but i cannot find this software.

 

Any help would be greatly appreciated!

 

Thanks!


Can I connect more then one cDAQ-9188 in the same network?

$
0
0

Hi, I have one question for you.

 

Can I connect more then one cDAQ-9188 to moxa EDS-G205-T for querying simultaneously in the same PC?

 

thanks in advance foranyresponse.

NIDAQmxBase calls on MAC OSX crashes UI application

$
0
0

It appears that using the NIDAQmxBase drivers’ v14.0 on a MAC OSX causes GUI applications to crash.

A simplified version of a GUI reproducing this issue is attached.

 

Essentially the problem seems to be that NIDAQmxBase driver needs to be called on the main thread before any initialization of the GUI application. This is a severe limitation because the initialization of the GUI application requires the setting of some custom app delegates. Unfortunately setting up the custom app delegates in the UI initialization and then calling the driver leads to a segmentation violation crash in NIDAQmxBase that also brings down the calling application.

 

QUESTION 1: Is it possible to call the NIDAQmxBase library without needing to run it on the main thread (i.e. can I make all my calls from a secondary thread)?

QUESTION 2: We also noticed that calls to the NIDAQmxBase library before GUI initialization changes the app delegates. Is there any workaround for this?

 

A full GUI application and project are attached to reproduce this bug (Note, we removed the nidaqmxbase.framework and nidaqmxbaselv.framework from the project due to size limitation on the upload. You will need to re-add those files from the /Library/Frameworks/ directory to the project to prevent linker errors).

 

Below are a few code snippets where the issues are arising.

 

MAIN.M: This is the main file for the GUI application. (See ISSUE 1, in code below)

 

//
//  main.m
//  NI_Library_Crash
//

#import <Cocoa/Cocoa.h>
#import "Utility.h"
int main(int argc, const char * argv[]) {
    NSLog(@"At first, App delegate: %@",[NSApp delegate]);

    // ISSUE 1:
    // Calling the NI Libraries before starting up the GUI is an unacceptable work around as it blocks the main thread
    // Additionally, my application has a number of customizations based on the application delegate. These appear to be stomped on by calling the following function on the main thread.
    // Please see ISSUE 2 in AppDelegate.m

    // callNiLibs();
    // NSLog(@"After calling NI Libraries, App delegate: %@",[NSApp delegate]);
    return NSApplicationMain(argc, argv);
}

 

APPDELEGATE.M: This file handles the button click for the UI. (See ISSUE 2 in the code below.)

 

//
//  AppDelegate.m
//  NI_Library_Crash
//

#import "AppDelegate.h"
#import "Utility.h"
@interface AppDelegate ()

@property (weak) IBOutlet NSWindow *window;
@end

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    // Insert code here to initialize your application
}

- (void)applicationWillTerminate:(NSNotification *)aNotification {
    // Insert code here to tear down your application
}

// Button click callback
- (IBAction)callNILibraries:(id)sender {
    // Attempt to get NI device number
    // ISSUE 2:
    // Calling this function causes the Cocoa application to crash
    callNiLibs();
}
@end

Regards,

    Wael Hemdan

    MathWorks

 

 

Data acquisitio: Reset by press save

$
0
0

Hello everybody,

I'm about to acquire Data with DAQmx.As the attached Vi shows. the data muss be acquired continuously in the loop since save pressed. once save pressed the data will be acquired and saved til the stop-condtion is verified.
Setting-parameter for the Acquisition are sample frequency: 12500 Hz, number of Sample: 2048, Timing for the save 2 min, meaning after 732 Iteration. my question is: how could i set the loop condition so that by pressing save the iteration reset and start to count from 1 to 732 and store data over that elapsed time.

 I thank you so much for the suggestions

Multiple accessors to digital inputs and outputs on NI-9375 DIO module

$
0
0

I have an application that requires intermittent access to digital inputs and outputs. I'm accomplishing this with a cDAQ-9178 chassis and an NI-9375 DIO module. These inputs and outputs will be used to control relays and read the on/off status of several pieces of machinery. These needs are not time-critical, and every usage of this module is a single point read or write.

 

My problem is that I want to avoid race conditions since it seems that I can only have one timing operation happening on this device at any given time. My worry is that two different parts of my main code will attempt to read or wright two different ports at the same time, and error out.

 

I've tried simulating this event using a simulated cDAQ device (as I don't have the hardware in-hand at the moment). I have a simple VI running that reads data at 5 Hz for 10 seconds (hardware timed). I then have a button that, when pressed, will trigger a software-timed write of a single data point. I had hoped that it would sense the resource was unavailable, then wait up to my specified timeout to trigger the write; instead, I *immediately* get error 201105 telling me that a specified resource was unavailable.

 

I'm pretty sure I understand how all the timing stuff needs to happen, and I'm pretty sure that the unspecified, unavailable resource was a timer. What I'd like to do is to be able to poll the system to see if a timer is available, and if not, wait until one IS available.

 

My other option is to use a semaphore or a queued system to only allow one part of my code to write to the module at a time, but I'd rather be able to just ask the module if it was ready to accept another data transfer. Is there a clean option for doing that?

use BNC2140 with pci 4461

$
0
0

Hello,

 

 

The old system is a IEPE mic, BNC 2140, and a PCI 4452.

To build a new sound measuring system i use a pci 4461.

 

I would like to use the one mic and connect the PCI-4461 parallel to the BNC 2140.

In this way i can verify the data with the same signal.

 

Like this:

 

              - BNC 2140 -- PCI 4452

              |

mic-------|

              |

              - PCI 4461

 

 

The point of  asking is that the BNC2140 is giving a 4 mA signal, and this wil also go to the PCI-4461 and i do not know if this would damage the card.

I hope somebody has some experise on this.

 

Greetings

USB-6009, mac OS 10.6.8 and python

$
0
0

Hello!

I am using USB-6009 under mac OS 10.6.8 and python.

I am trying to run the following commmand:

analogOutputTask = nidaqmx.AnalogOutputTask(name='MyAOTask')

 

I get the following message

 

File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/nidaqmx/libnidaqmx.py", line 180, in CALL

AttributeError: 'NoneType' object has no attribute 'DAQmxCreateTask'

 

Any help would be very mch appreciated,

Thanks 

j.

 

Hardware board for PID controller implementation?

$
0
0

I am looking for a NI hardware/fpga/RIO solution for PID controller

 

Basically, I want to implement a PID controller algorithm in a standalone hardware. The input of the H/W should be a reference voltage, and a measured (feedback voltage), and the output should be a analog voltage which the PID controller algorithm calculates

 

Could I use N 783x R series or any NI FPGA/RIO module? The PID controller should be implemented and run in H/W, not on the PC


Maximum/Minimum input range parameters for DAQmx Create Channel (AI-Bridge) VI

$
0
0

I have a question regarding the max/min input range in DAQmx Create Channel (AI-Bridge) VI.

 

I have the PXIe-4330 card and it's maximum input signal range, without custom scaling, is ±25 mV/V.

In the DAQmx Create Channel (AI-Bridge) VI, I specify the unit as mV/V.

 

If I want to configure the max/min input range for this channel = 10 mV/V, what should be the value entered in for these parameters – Is it ±10 or ±0.010 (since the unit is already specified as mV/V in the VI)?

 

  

I attach the snapshot of the VI for reference.

Thanks for your help,

   

Pham

Ni-USB-6009 digital imput for Monarch optical sensor

installing daqmx

$
0
0

I am using Windows 8, installed Labview 2014 Student Edition, then downloaded NI-DAQmx, however do not have any icons I expected to see in a YouTube video.  My question is, how/where to obtain the respective DAQmx sub-icons?

quadrature encoder based triggering

$
0
0

I'd like to use a position encoder to trigger a line scan camera.  I have a NI X Series PCIe board that I am using for AO, so if possible I am hoping to use it for triggering from the quadrature signal. 

 

Following tutorials online, I can easily read the position of the encoder with the X series.  However, less clear to me is if I can feed the position data to another counter such that every X net distance I get trigger that can be routed to the camera?  Obviously I could just read one phase and trigger from that, but I'd be sensitive to false counts while the device was stopped or dithering.  If this is possible, could someone suggest the approximate way to do it or provide an example?


Thanks!

Mike

 

ni usrp 6351. Acquire/generate analog voltage

$
0
0

Hi all,I am trying to acquire the analog voltage of a signal and I'm wondering how I can use the source input of the DAQmx Timing (Sample clock) VI to get a high sample rate considering that the maximum sampling rate of the NI-USRP 6351 is 1.25 MHz. In my application I need to have more samples/bit

 

I'm also wondering how (if possible) I can generate a differential signal using this DAQ. I know it is possible to acquire a differential signal but not sure if the generation can also be done.

 

Thanks a lot in advance

 

 

Angular velocity measurement in continuous mode with NI-9401 card

$
0
0

I have a ni cdaq-9178 chassis and SIX NI-9215 and ONE  NI-9401 and ONE NI-9237 cards. I want to measure angular velocity in continuous mode with NI-9401 card. In addition I need to measure 6 currents and 6 voltages and one force signal and synchronize all of the measurements together with the same data points and sampling rate. Now, my main question is about measuring the angular velocity in continuous mode with NI-9401 card.
As far as I know, if I want to use NI-9401 in continous mode I have to define an external clock source for it. How can I measure angular velocity with the previously mentioned settings and Card in Labview? I will give more details if needed.  

PCI 4472 external trigger source

$
0
0

Dear All,

 

I have a PCI-4472B which I want to program in order to acquire a signal from channel 0 whenever it recives a TTL signal throw the External Trigger input.

I'm using a modified example but I don't know which is the name of the external trigger source. I always recive this kind of error (for example if I connect a string containing "EXT_TRIG"):

code: "-200265"

"DAQmx Start Task.vi:1<append>
<B>Property: </B>Start.AnlgEdge.Src
<B>Corresponding Value: </B>EXT_TRIG

<B>Task Name: </B>_unnamedTask<DB>"

 

The program I'm using is of this form:

Untitled.png

 

First of all, does this error mean that I didn't input the right external trigger source name?

If so, which is the right name of the external trigger source for NI4472B?

 

Thank you for help


I want to download VI logger 2.0.1 to duplicate an existing system.

$
0
0

Hello,

 

I'm looking to download VI logger 2.0.1. The NI download site doesn't have a link to download it. Please share where I can download this application. 

 

DM

USB 6008 input/output test failing

$
0
0

OK I am posting this for third time but everytime I go back to forum homepage, I am not able to find my post. If by any chance I am creating duplicates than my apologies.

 

Iam trying to test the USB-6008 I just got, and decided to hook up the analog out to analog input and see it using labview VI.the wiring were done as:

 

http://i284.photobucket.com/albums/ll5/bigdawg6/usb%206008%20wiring_zpss2b7hql9.jpg

 

the problem is that the labview VI wasnt doing anything, so I go to NI Max and try and see it in test panels. But I keep getting 1.4V consistently as my analog input value even when I am changing my analog out value:

 

http://i284.photobucket.com/albums/ll5/bigdawg6/aio%20screenshot_zps9beiimbj.png

 

the analog output is working fine since I hooked it up to my multimeter and I can see the voltage I see on this test panel:

 

http://i284.photobucket.com/albums/ll5/bigdawg6/ao0%20screenshot_zpsqpei37bw.png

 

I created an input/output tasks; the screenshots of them are:

 

http://i284.photobucket.com/albums/ll5/bigdawg6/task_ao_zpsykmvczew.png

 

 http://i284.photobucket.com/albums/ll5/bigdawg6/task_ai_zpsix5se9yg.png

 

I am pretty fustrated by all this since I am unable to get to my actaul project. I know that 1.4 V value is coming from the device itself; since in the manual it says "internal resistor divider may cause the terminal to float to approximately 1.4 V when the analog input terminal is configured as RSE" but the funny thing is I am using this in differential mode so I dont know what to do and any help is appreciated.

 

BTW, I did a google search, and there are other tutorials onlune which seem to be doing exactly what I am doing and they seem to making it work fine; so I dont know what else to do.

 

usb 6008

$
0
0

Hi,

    I want to use USB 6008 to put a voltage into pizeoelectric device to move. Could anyone help with vi for this task.

 

regards

 

chandra

PXIe-6345 X-Series RLP

$
0
0

Seems I chose one of the cards that is not listed.

 

Can someone tell me what the settings are for the devices.cpp file for this card in the X-Series NIMHDDK package.

I'm assuming this will get me acess to the card from the RLP.

 

Thanks

Should pins be grounded when self-calibrating a PCI-6052E using MAX or Traditional NI-DAQ?

$
0
0

I have looked through several posts and the manuals but I am getting conflicting information on my question.  For example, the post on Self-calibration in Linux indicates that there should be no connections to the DAQ.  However, the example program Calibrate_Eseries.c which came with the DAQ contains the following comments:

/*

* Pin Connection Information:
*    Ground the inputs to AI channel 1.  If the device is in
*     differential mode, tie both the + and - inputs to AIGND. If the
*     device is in single-ended mode, tie the input to AIGND.

*/

 

Also, does the channel setup (e.g. unipolar vs bipolar, voltage range) matter when self-calibrating using MAX?

 

Any help would be greatly appreciated.

Viewing all 6883 articles
Browse latest View live


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