Syncronize to acquisition of data with the generation of signals

Hello everyone,

My request is generate pulses on the output of two different to drive two LEDs and acquire detected pulse signal amplified photodiode.

Actually pulses are generated by starting the writing on the analog output, and then start the acquisition (I need 200ms on average), stop the acquisition, turn off the driving LED and develop the acquisition and record the results.

All this in a cycle it takes about 1.5 seconds to run.

Next step would be to drive the outputs with a waveform (duty cycle of 50% of width of 250 ms) and acquire the signal of the photodiode in synchronization with the edge of the pulse.

I tried to use the trigger function, but the examples are not clear on how to do it.

I use NI 9205 or 9215 to acquire signals.

Is there a particular entry to be used as a trigger?

Thank you very much for your attention

Hello

I found that NI 9205 has inputto that one be used as trigger signal, i.e. AI0.

At latest

Eugenio

Tags: NI Hardware

Similar Questions

  • The pci configuration 6143 S series for the acquisition of data with the analog trigger level? (say to .5v)

    I am interested in buying a probe voltage signals. I use NIDAQ S-series PCI-6143. My requirement is that I need to acquire only above a certain level. I tried to use the task of triggering NIDAQmx but it fails to give error-200077 code. and the description says im allowed to select only digital edge trigger.

    Help, please.

    Thanks in advance

    HI Maria,

    in fact, the message you get is itself, as NI 6143 specifications indicates that this card supports just digital triggering. You will find the list of material of the series that supports analog triggering here: that S-Series (61xx) Support analog devices triggering?, or you can use an external circuit as comparison of analog signal.

    Kind regards

    s9ali

  • Acquisition of data using the DAQ card

    Hello everyone

    I need assistance with the acquisition of data of the generator of signals through DAQ cards. I plugged the signal to the SCB-68 generator where the analog inputs of the generator are connected to AI CH5 and AIGRND of the Terminal Board. Then the output of the block is connected to the DAQ card. The maximum sampling frequency of the card is of 250 kech. / s. The problem is for reason that I am not able to see the waveform on the labview. I looked at other examples to find the problem, I am, but I am not able to understand this. I want to be able to choose the sampling frequency. I attatched my code as an attatchment for you all to help me know what the problem is. Any suggestions will be appreciated.

    There is no task!  You have not specified any hardware (i.e. your data acquisition card) anywhere.

    Here's a suggestion.  MAX aperture.  Find your DAQ hardware.  Open a Test Panel.  Implement a continuous sample of N Points to some sampling rate.  Press Run and convince yourself that you get the data.

    Now, while remaining in MAX, to create a task, using the same settings.  Call for example something sensible ("MyFirstDAQTask" is not a good reputation).

    Now, go back to your code.  Eliminate the first two functions DAQmx.  Wire a constant task to the DAQmx Start feature.  See the little triangle down?  Click it, and it should show you the tasks he 'sees', the only one should be the task that you created in MAX.

    Note that 'Samples Visible' is now 'hard coded' in the task.  To get its value back out, you need to put a property node Timing DAQmx after the task start and pull on the quantity of the sample, samples per channel (which, for reasons that escape me, is a Dbl, you need to convert to an I32 before importing it into the while loop).

    Bob Schor

    P.S. Thank you to join your code.

  • all my data is all save on the local disk c, how to share the data with the other drive, local drive d.

    all my data records on the local disk c, how to share the data with the other drive, local drive d.

    Hi Jasonbichard,

    1. what type of drive is D? Is - this another partition on the same disk?

    2 Windows operating system you are using?

    You can change the location of the disk to save the data in the d: instead of C: and check if it helps.

    a. navigate to the location (username) C:\Users\.
    b. right click on the folder that you want to change the location, and then select Properties.
    c. click on the location tab and change the location to D: drive.

    d. click on apply and Ok.

  • Use two assistants for the acquisition of data at the same time

    Hello

    I want to read multiple data channels of analog inputs on my DAQ hardware. However, when I try to create two separate data acquisition assistants for each entry, it gives an error saying "is reserved for the specified resource. The operation could not be performed as indicated "." Can't use two assistants for the acquisition of data at the same time?

    I have to add different channels in the same assistant DAQ? I tried, but I couldn't separate the data in different graphs.

    How does this work?

    Kind regards

    Allard

    You can't have multiple tasks of the same type (in this case inputs analog) on the same device.  Just so having 1 DAQ Assistant read all your channels and separate your channels for individual transformation.

  • Foreign key constraint, not recognized during the synchronization of data with the model dictionary

    Hello

    Data Modeler is a foreign key constraints do not recognize when synchronizing data with the model dictionary, although the foreign key is there (in the database that a data dictionary is read). I can't find any criterion when a foreign key is not recognized by the Data Modeler. Are there limits to the length of the attribute, or the number of columns in a foreign key, or other limitations which may lead to this behavior not to recognize a fk by Data Modeler? I have columns more than 32 characters. I compared with the fk is recognized by DM, but I can't find anything that indicates why it is not recognized.

    I wonder if someone also has constraints of foreign keys that are not recognized in the comparison of data bases and model?

    Thank you

    Robert

    Hi Robert,.

    Thanks for the comments, I logged a bug.

    Philippe

  • Dynamic action for validation of date with the notification message plugin

    Hi all

    Someone help me please with dynamic action for validation of date with the message notification plugin. I have a form with two elements of the date picker control and message notification plugin.

    The requirement first user selects the exam is finished and then selects the date. So, if the date is greater than the date of the examination is over + 2 years then doesn't trigger the message notification plugin. I tried to create that dynamic action on the date picker date that triggers the scheduled issue notification message but I want to make conditional, I mean displays the message only if date of the selected is greater than the date of the exam is finished more than 2 years.

    In terms simple, notification is displayed only if provided is superior to (date of the exam is completed + 2 years).

    I use oracle apex 4.0 version and oracle 10g r2 database. I tried to reproduce the same requirement in my personal workspace. Here are the details. Please take a look.

    Workspace: raghu_workspace

    username: orton607

    password: orton607

    APP # 72193

    PG # 1

    Any help is appreciated.

    Thanks in advance.

    Orton.

    You can get the value of the date of entry:

    $(ele) .datePicker ('getDate');

    So what to add functions such as:

    function validateNotification (d1, d2) {}

    Date1 var = $(d1) .datepicker ('getDate');

    date2 var = $(d2) .datepicker ('getDate');

    if(date1 && date2) {}

    return ((date2.getTime()-date1.getTime())/(1000*24*60*60))>(365*2);

    } else {}

    Returns false;

    }

    }

    The logic based on setting (I have two years from years of 365 days preceding)

    Then in the D.A. specify a JavaScript expression as:

    validateNotification ('P2_REVIEW_COMPLETED', this.triggeringElement.id)

    Refer to page 2 for example.

  • What is always "stay up to date with the latest innovations in the field of photography from Adobe"?

    Hello

    I am considering buying stand-alone version 6 of Lightroom, but I wonder what does that "Always stay up to date with the latest innovations in photography from Adobe" is not available?

    Will be the updated standalone for free with the new camera support?

    Will be free updated standalone version with correction of defects?

    If there are new features (minor version of lightroom), will not be available for the stand-alone version before the next major release?

    Thanks for your help

    My understanding is that LR6 will continue to receive bug fixes and new camera support updates, but not feature/news which receives from the CRD. See question 2 below on this post: CC Lightroom / Camera Raw FAQ

  • How can I check the voltage values on the acquisition of data with a data acquisition assistant and the custom scale?

    I use a custom scale and the DAQ assistant to acquire data from a USB DAQ device.  How can I display voltage gross values at the same time?

    Thank you

    David

    Do not use the ladder custom, but read the raw data using the daq assistant and adapts the data later. Or the scale of the data using the inverse of the custom scale.

  • Writing data to extend the acquisition of data for the sampling rate high file

    These are the tasks that I have to do to take noise measurements:

    (1) take continuous data to USB 6281 Office, in a sample of 500 k (50 k samples at a time) rate.

    (2) save data continuously for 3 to 6 hours in any file (any format is OK but I need to save in a series of files rather than the single file). I want to start writing again file after every 2 min.

    I enclose my VI and pictures of my setup of the task. I can measure and write data to the file continuously for 15 minutes. After that, I see these errors:

    (1) acquisition of equipment can't keep up with the software (something like that, also with a proposal to increase the size of the buffer...)

    (2) memory is full.

    Please help make my VI effective and correct. I suggest to remove him "write in the action file" loop of consumption because it takes a long time to open and close a file in a loop. You can suggest me to open the file outside the loop and write inside the loop. But I want to save my data in the new file, after every 2 min or some samples. If this can be done efficiently without using Scripture in the measurement file then please let me know.

    Thank you in advance.

    This example here is for a single file and a channel, you should be able to loop over that automatically. The background commentary should be the name of the channel, no group namede the name of the channel in the control.

  • Oscilloscope for the acquisition of data from the usb-6009 or - example of temporal division for 5 seconds, 10 seconds

    Hey Hey everyone

    I was looking for an example for two-channel oscilloscope virtual using e/s all-in-one of the 14 bits of NI DAQ USB 6009. I tried to research for example BOF time division or s/div for 1 second, 5 seconds, 10 seconds.  but was shocked to find that there is no reference for it. The range of oscilloscoper virtual

    Minimum - 10 micro s / div maximum -10milli second div but there is no example for 1 second / div or 5 seconds / div...  If anyone can guide me. I'm new to labview environment.

    This is the oscilloscope two sample obtained from google search. is there material limitations. ?

    I'm working on continuous 4-channel data acquisition data acquisition using niusb 6009

    The sampling frequency is sufficient for any desired s/div. The sample rate is 12 ksamples / s per channel, so if that meets the Nyquist criteria for the input signal, you can capture it. The number of samples has no effect on that with the exception of the amount of the signal you acquire. Your chart is not stable, if you do not trigger the acquisition. Even as real significance, therefore your emulation seems actually successful.

  • Acquisition of vibration with the NI USB-9234 using the NIDaqMxBase library

    I have a NI USB-9162 linked to a NOR-9234 properly configured and installed under OpenSUSE 11.3. It's the output of ldaq:

    >lsdaq
    --------------------------------
    Detecting National Instruments DAQ Devices
    Found the following DAQ Devices:
    NI USB-9234: "Dev1"    (USB0::0x3923::0x72B5::0164852A::RAW)
    --------------------------------
    

    I'm developing a simple application to acquire the values of vibration of a project connected with an accelerometer.
    We start from the example of acquireNScans - AnlgStart.c of NIDaqMxBase 3.4.5 documentation.

    Unfortunately, the program fails and generates the following error:

    "DAQmxBase Error -200428: Value passed to the Task/Channels In control is invalid."
    

    Then I realize that the NI9234 doesn't support analog and digital triggers so I have decided to try with the acquire1Scan.c (a scan without triggering):

    int main(int argc, char *argv[])
    {
        // Task parameters
        int32       error = 0;
        TaskHandle  taskHandle = 0;
        char        errBuff[2048]={'\0'};
    
        // Channel parameters
        char        chan[] = "Dev1/ai0";
        float64     min = -10.0;
        float64     max = 10.0;
    
        // Timing parameters
        uInt64      samplesPerChan = 1;
    
        // Data read parameters
        float64     data;
        int32       pointsToRead = 1;
        int32       pointsRead;
        float64     timeout = 10.0;
    
        DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));
        DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_Cfg_Default,min,max,DAQmx_Val_Volts,NULL));
        DAQmxErrChk (DAQmxBaseStartTask(taskHandle));
        DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByChannel,&data,samplesPerChan,&pointsRead,NULL));
    
    printf ("Acquired reading: %f\n", data);
    

    Also this program fails and gives this error:

    DAQmxBase Error -200077: Requested value is not a supported value for this property. (Timing Mode)
    

    How can I get at least a single data value of the accelerometer of the device using the NIDaqMxBase API?

    Hi giaulo,

    The examples that you have tried to run are not compatible with your device.

    The 9234 does not support analog triggering, so examples of "acquireNScans" - AnlgStart.c do not work.

    He is also unable to make an acquisition of single point because is based on the architecture of delta-sigma ADC. Here is a knowledge base article explaining the limitation:

    KB 4SU94SH7: DSA Hardware Support a Point Acquisition?

    This is the reason why the "acquire1Scan.c" does not work.

    You will need run one example making an acquisition in the buffer. "acquireNScans.c" would be a good to watch. Be aware of all these examples, the default is +/-10V input range. The 9234 can only input +/-5V, so it will take a few changes. Also as you try to read an accelerometer, IEPE excitement is probably necessary. I've attached an example which is based on the example of "contAcquireNChan.c" that defines the range and allows the excitement for the device correctly.

  • Calendar for the acquisition of data on the USB-6212

    I am putting together a sound teaching laboratory.  The basic idea is to send a pulse signal that powers a speaker, and then the acoustic signal travels down a waveguide where it is measured with a microphone and sent to a data acquisition.  One of the important things here is that it is possible to measure the time of propagation of sound waves, so I need for data collection to occur at a time determined with reference to the sound output pulse.  I tried with a sound card, but there are number of milliseconds of random jitter between the writing and the reading of the sound card.

    So, I was watching the USB-6212.  On paper it seems ideal: 2 outputs and lots of inputs.  What I understand, it is possible to trigger analog outputs and data entered so that there is no jitter synchronization between them.  The only question is this: I was thinking about using 2 analog inputs: a reference which collects through a microphone/speaker system to serve a normalization to the second chain that collects through waveguide (see diagram).  The thing is that I need the "timing" on the 2 analog to be consistent and a jitter free so that it is possible to compare the phase of the signals that I collect.  This will be possible using this data acquisition system, given that the ADC is multiplexed between the channels?  There will be a delay between channels 2 and if so it will be known and deterministic?

    Thanks for your help...

    Ben

    Hi Ben,

    Cool application!  To answer your question-Yes, there is a delay, and it is deterministic. Something to note about the 6212 is that your rate of multiplexing will be determined by the clock to convert.  The clock to convert will operate at the faster pace of the device more 10us *.  In the case of the 6212, with Max sampling rate of 400kS/s (aggregation), your pulse will produce each ((1/400,000) 12.5us + 10).

    * 12.5us converts to 80 kHz, so at that point there, convert clock it simply runs at 1 /(aggregate rate). So to sum this up:

    From 0 to 80 kHz: there is a lag multiplexing 12.5us

    From 80 to 400: there is a shift of /(aggregate rate) 1

    In addition, you can also set this rate through the DAQmx driver.  "You can just use a property DAQmx Timing node' more' converted ' rate (or rate Maximum to determine the max).

    If it's a problem, I advise to use a device with simultaneous sampling - let me know if you have any other questions.  Take care!

  • connection problem of data with the support of mobistar (Belgium)

    WiFi works. Data connection isn't.

    The signal 'H' or 'E' is highlighted. I tried with the parameters of android and iphone Mobistar Belgium Web site and with all types of authentication. But it is impossible to connect.

    I will try with a sim card from another carrier and let you know.

    In the meantime, does anyone know if there are any specific APN settings for mobistar.be?

    Hi yellowtrolley,

    Thank you for reporting this issue. Please try the following to the APN settings I found on this site nd make sure your specific device supports the following frequencies:

    • GSM 900/1800 (2G GSM) net
    • W CDMA 2100 (3 G UMTS)

    The APN settings:

    • username: mobistar
    • password: mobistar
    • Name of the APN: web.pro.be

    You can also try this page if you need more specific parameters.

    Please let us know if this solves your problem, or if you have other questions about your Firefox OS device.

    Thank you!! =)

    -Ralph

  • Recover data with the Diadem 11.0 PDM and Labview 8.6

    I have a VI in Labview 8.6, which generates an TDMS containing 5 channels of population data.  I did have problems with the VI until today when 4 out of the 30 TDMS files I generated could not be loaded in Diadem 11.0.  I got a Diadem declarant could not impoart all channels or channel data from this data source.  26 other loaded fine TDMS files and was able to run one of my VB scripts on the set of data without any problem.  TDMS repair tool requires at least Labview 2009 must be installed.  Is it possible to recover data from the 4 files, or is there a different tool I can try all the previous advice, I read on the various positions have not managed to provide an operational solution.  Any additional suggestions or help would be greatly appreciated.

    Thank you

    Mike

    I added an attachment of the error dialog box and one of TDMS files.


Maybe you are looking for

  • 5s iPhone battery has been exaggerated

    My iphone 5s battary inflated and lightning socket have load problems. I live in Turkey and I bought this phone from the United States. I went to the Apple store and told my problems to them they Turkey Apple cannot fix products of Hong Kong and the

  • Add screws to LLBs - is there an easy way?

    Hi all I have a question on the use of the LLB Manager to make a LLB file.  Currently, I have a bunch of screws in a LabVIEW project and want to add to a Bachelor's degree in LAW (or new).  The only way I found to do this is by entering each VI and p

  • DV6 1330et: HP dv6 1330et networ update map

    I want to upgrade the standard n wireless network card (maybe 5 GHz) in my laptop, which are supported? I know it is old laptop but I love her and to watch movies is pretty good. Any suggestions?

  • How to Ifix"appdata\local\playto-1\updater.dll" error I get

    same as title.  running vista 32 bit

  • Q140060 Center Solutions Windows 7

    Having the problem on two disks with files error maessage: disk is not formatted. In notebook have Windows xp professional and internal disk and in the Windows 7 home Premium desktop player, I use external floppy drive. Please try to help me how to o