PCI 6251 ConfigureAnalogEdgeTrigger

Hello,
I try to start a measurement on a analog signal. This signal is a positive pulse. When it arrives, i start to count until the signal on "ctr0" arrives.
So i try to configure a analogTrigger on APFI0. But the following error occurs :
"Specified property is not supported by the device or is not applicable to the task
Property : CNiDAQmxStartTrigger::type
Task Name : BancDeTest
Status Code : -200452
Any one can help me ?
Thank you.
I've attached two files
Attachments:
DAQmxTaskTempsDetection.cpp ‏6 KB
DAQmxTaskTempsDetection.h ‏7 KB

Hi everybody,
This is a tricky one so I just wanted to post so there isn't any confusion here.  What you have described would not be possible on any of our Multiplexed boards.  It is a bit difficult to find, but page 11-3 of the M Series User Manual actually mentions the restriction:
When you use an analog reference or pause trigger, and the analog channel is the source of the trigger, there can be only one channel in the channel list.
We can explain the restriction by looking at the triggering circuitry (page 11-2 of M Series User Manual):
When using a reference trigger, the hardware is actively sampling data the entire time in order to create a pre-trigger buffer (i.e. the data is being MUX'ed into the ADC).  The routing of the ai channels to the triggering circuitry is after the multiplexer.  So, we have the multiplexed version of the ai lines going into the triggering circuitry MUX.  We do not allow the user to configure an AI line to be used for a reference trigger in this case since there is no way to isolate the single AI line to be fed into the triggering circuitry (e.g. we might trigger on a transition between ai channels even though both lines are DC signals).
The best workaround use the APFI lines as your trigger source.  Looking at the above image, they do not have the same restrictions as the AI input lines when used for Analog triggering since they may be directly rotued to the triggering circuitry.
If you have any questions about this don't hesitate to post back!
Best Regards,
John Passiak

Similar Messages

  • Data acquisition and frequency generation togather with PCI-6251 and LV8.2

    Hi friends,
    I am a new user of Labview. I am using LB8.2 with PCI-6251 .
    I have to generate frequency and then measure the data and then for next frequency and so on.
    i know that for this i have to use looping and that is not a problem. The real problem for measurement is to identify whether the frequency is been generated. if yes then measurements starts otherwise it should wait until it started. then after finishing the measurements send a signal to generator for changing the frequency and amplitude.
    Now these two things {generation and measurement} togather are not working correctly for me. so i make 2 diff file, one for generation and other for measurements <by modifying the examples>. I can run both file togather and it works. But it need lots off effort and time. I have to measure from 10Hz to 1000Hz in 2Hz frequency step and i cannt leave in between .
    can anyone help me how to syncronize these two togather .
    Trying to attatch. both the files here ..
    main_v1.1.vi --> for Measuring
    Oscilloscope.vi --> for waveform generation
    Attachments:
    main_v1.1.vi ‏150 KB
    Oscilloscope.vi ‏37 KB

    Hay thnx dude..
    I found the example and now it works
    once again thanks a lot

  • How to generate a pulse of 5 V -ve polarity in synchronis​ation with a 10 v input using PCI 6251 DAQ board

    HI
    I want to generate a 5V -ve polarity pulse to trigger my IEEE 1394 camera using an PCI 6251 (scb68 pin E) device, furthermore I am reading a standard Vsync signal from a SVGA port which is 10 v.
    Now I want to synchronise the image capture of an IEEE 1394 camera with the Vsync signal so that camera is triggered to capture at every 4th Vsync signal (which is 50HZ.). Presently I am able to read the Vsync signal and also generate the -5 v signal But the Daq board generates a continues -5v signal while I want a 1 ms pulse (for every 4th Vsync).
    Also this 5 v signal is generated even if the vi is stopped running.
    Can anybody guide me so this problem can be solved.
    Thanks a lot in advance
    Shri

    You can use the Write function, that is you can use the 10 volt signal as a trigger for the task, and when you get this trigger, the task starts and generate (writes) a waveform you defined in an array ("data", in the example).
    Something like this..
    DAQmxCreateTask("",&taskHandle);
    DAQmxCreateAOVoltageChan (taskHandle, clokSource, your_sampling_freq, -10.0, 10.0,
    DAQmx_Val_Volts, "");
    DAQmxCfgSampClkTiming (taskHandle, clockSource, SAMPLING_RATE,
    DAQmx_Val_Rising, DAQmx_Val_FiniteSamps,
    samp_to_read);
    DAQmxCfgAnlgEdgeStartTrig (taskHandle, input_channel, DAQmx_Val_RisingSlope, 9.0);
    DAQmxWriteAnalogF64 (taskHandle, 1000, 0, 10.0,
    DAQmx_Val_GroupByChannel, data, //data contain a pulse
    &samp_per_channel, 0);
    DAQmxStartTask(taskHandle);
    // and then you create a loop....
    For example you can specify data to be like this:
    data[0] = -5;
    for(i=1;i<1000; i++){
    data[i] = 0;
    Tell me if you need more help.....
    bye

  • NI pci 6251 position control

    Hi
    Im new to this forum and new to Labview and NI pci 6251 as well ;(
    I'm using NI-PCI-6251 (DC Motor ) with Labview to control the position of a DC motor  we developed the program that reads the encoder and display the position of the DC motor shaft
    but the problem is that the counter 0 (cnt0) always increases whether the disc rotating clockwise or anticlockwise??!! and when the desired position is reached the controller does nothing to stop the motor ?
    i don't know what is the problem or why its happening.

    Hi,
    I am also doing something similar.
    The problem is the motor is the DC motor from Quanser. (DCMCT).
    I know the encoder channel of the motor is ctr0 and when I test from "Measurement and Automation Explorer" (Labview>>Tools) I can only read the PFI8 channel.
    The motor read 4096 pulses per revolution and no reading is available from PFI10. As per Quanser the motor should be about to do position control. I have seen lab tutorials for position control in internet.
     I tested both the vi is mentioned above. The "Example" vi reads the motor position in terms of pulses. But when I rotate the motor in the other direction the count increment not decrement.
    Also the quadratureencoderMseries vi did not read the angle position when I set the channel values.
    I have attached the parameters that I set.
    Can any one please check..
    Thanks.
    Attachments:
    encoder issue.JPG ‏357 KB

  • How to trigger 5v -ve polarity from pci 6251 to sincronise the image capture

    Hello!
    I want to synchronise the image capture of an IEE 1394 firewire camera with an 50hz input signal (acquired from Vsync of VGA port ). I want to accomplish this using PCI 6251 (SCB 68 E series) device. The IEE 1394 camera can be triggered using a 5V –ve polarity signal but have no idea how it is achieved, some examples about the application would be helpful
    shri

    This example illustrates how an application might be constructed in order to trigger an analog acquisition as well as an external system concurrently with an E-Series board. The analog component has been made retriggerable by tying a counter pulse train to its sample clock. Due to the complexities of the DAQ STC, an analog output line is employed in order to generate a hardware-timed, regular, pulse used to trigger both the analog acquisition, and potentially an external system. This type of architecture could be used for "stimulous - response" testing.
    Attachments:
    Timing_with_AO.vi ‏123 KB

  • Brushless DC motor control using NI PCI 6251

    am doing my project Speed control of a sensored Brushless DC motor. am using NI pCI 6251 daq. now my motor is running.but i dont know how to calculate the speed. in BLDC motor, hall sensor is attached. can you send me the sample program for calculating the speed and to give as a feedbackk

    Will you please sent me VI model of BLDC ?
    my mail id: [email protected]

  • Closed loop control of DC motor drive using PCI 6251

    Hi
    i am using NI PCI 6251 for closed loop control of dc drive.(shunt motor,220v, 0.5HP, 2.5A rated, 1500RPM)
    the dc motor is fed from a bidirectional dc-dc converter. this converter works in boost mode(forword motoring) and buck mode(braking mode/battery charging)
    the converter is built using mitsubishi IGBT module. at low voltage side of the converter a battery bank of 48V is connected and high voltage side the motor is connected.
    An IR sensor is developed to measure the speed of the motor and a hall current sensor is used to sense the converter current.
    in the control part i have an inner current control loop(PWM controller) and a outer speed control loop.both controllers are PI controller. To measure the speed i have used counter of the DAQ assistant, then frequency. then this frequency is converted to RPM using labview.after giving the speed and current signals  to the controllers , then i started  tunning the PI gain, but at the starting the duty cycles was 100%, so the IGBT got damaged immediately. now how to tune the controllers during the closed loop operation.  the switching frequency of the converter is 20KHz.   
    can any body suggest me how to run the dc drive in closed loop ?
    thanking you.

    Hi Premenanda
    The freq data receiverd from the daq assistant has the units of Hz, or in terms of motor speed, rps (rotations per second). I can see that you are trying to convert that to rpm (rotation per minute). which can be done by dividing the rps speed by 60. Instead, you are multiplying it by 60 and also comparing with 2000. the resultant multiplied value is displayed in your program only if it is smaller than 2000.which is causing the problem here.( as seen in file 'original code.png)
    I have attached a file named 'modified code.png' that shows how the conversion from rps to rpm is done. Please do the required changes in your code and let me know if it works.
    Attachments:
    modified code.png ‏18 KB
    Original code.png ‏15 KB

  • Running LabView 7.1 with PCI-6251 in Windows 7

    I am very new to Labview, and would appreciate any assistance on this issue.  I was tasked with solving it and while I have made some progress I have now hit a wall.
    A computer with a PCI-6251 data capture card, some custom built (external) hardware and LabView 7.1 has been used for many years for a single, specific task, to do verification testing in a manufacturing environment.  The system works well and no additional features or functionality is required.
    The computer failed and a new one with a PCI card slot was purchased to replace it.  Of course as a new PC it has Windows 7 and hardware drivers for XP don’t exist.  I therefore need to run LabView 7.1 on Windows 7 with a NI-DAQ card.
    I installed the NI-DAQmx 9.5.1 driver and then installed LabView 7.1 (as discussed here).  The driver would not install if LabView was already installed since it gave the “unsupported on this version of windows error”.  MAX recognized the card, which it couldn’t when trying to use the 7.5 NI-DAQ driver.
    Now LabView opens but when I try to run the .vi used for testing it complains of 19 missing sub .vis which I cannot locate and I can’t find on the old computer to try to point LabView towards.
    I think something weird is occurring with trying to use the 9.5.1 driver with LabView 7.1.  Are there any suggestion or is there any advice on getting a PCI-6251 working with Labview 7.1 on a Windows 7 machine?   
    Solved!
    Go to Solution.

    After much greif and trying a half dozen various drivers with various settings and other ideas the following procedure based on Caraval's advice worked first time with no errors and seemingly no functional issues.  The system so far appears to be running in Windows 7 just as it was on Windows XP.
    1.  Install LabView from original install CDs, by opening the folder and right-clicking 'setup.exe' and clicking 'run as administrator'.  Selected 'do not install drivers' during the install procedure.  Rebooted computer.
    2.  Installed NI-DAQmx 8.9 from the self-extracting .zip file available here.  Shutdown computer.
    3.  Removed power, pressed power button to completely discharge power supply.  Installed PCI-6251 card.
    4.  Booted computer, and logged in.  Waited a long time, Windows eventually saw new hardware and installed drivers.  Verified MAX could see card.
    5.  Opened LabView and everything worked.
    Looks like we bought the system a few more years.  Will probably have to upgrade everything next time around though.  Many thanks to everyone who commented on this thread. 

  • Using PCI-6251 with Labview 6.1

    I recently purchased a PCI-6251 multifucntion DAQ board to get a higher sampling rate than my old PCI-MIO-16E-4 board.  However I have existing software that I want to run on the new board.  The board came with NI-DAQmx which will only work with Labview 7 or above.  I am currently running NI-DAQ 6.9.3 and the Measurement and Automation program does not recognize the new PCI-6251 board.  Is there anyway to get Labview 6.1/NI-DAQ 6.9.3 to recognize and configure the new board?  Or will I be forced to upgrade my Labview?

    The M-series boards (PCI-62xx are M-series) require NI-DAQmx driver. The NI-DAQmx driver requires a newer Labview. No way around it.
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • Pci-6251 soprta tiempo real

    Buen día:
    Quiero implementar un control de velocidad de un motor de cd en tiempo real, cuento con una tarjeta PCI-6251, el sensado de la velocidad es un encoger incremental.
    Preguntas:
    ¿La tarjeta PCI-6251 soporta el tiempo real?
    ¿Existe algun ejemplo para estudiar su implementación?
    Cuento con LabVIEW 8.0 y tengo instalado el modulo Real-Time.
    Tengo algunos problemas con el tutorial Real-Time.
    Gracias de antemano.

    Estimado itlcarlos
    Gracias por utilizar los foros de National Instruments.
    En primera instancia quisiera entender a lo que te refieres con "Tiempo real", ya que tiempo real indica que estarías trabajando bajo un sistema operativo determinístico con el cual te asegurarías que existe confiabilidad total en el sistema, de ser así no podrías trabajar en Windows ya que no es determinístico. Si intentas ver la tarjeta como un dispositivo RT no va a ser esto posible en el proyecto de LabVIEW.
    Ahora si te refieres con Tiempo Real a que la tarjeta trabaje de manera confiable y envíe la información en tiempo y forma al sistema operativo, te sugiero revises la hoja de especificaciones para que determines si la precisión y el reloj son suficientes para tu aplicación
    Me gustaría me aclararas si esa era tu pregunta o me detalles un poco más que es lo que intentas hacer y con todo gusto te ayudaré.
    También dime que problemas tuviste con el tutorial de Real Time para ver en que te podemos ayudar.
    Que tengas un excelente día.
    NI 625x Specifications
    http://www.ni.com/pdf/manuals/371291h.pdf
    Coamín Cruz
    Ae México

  • Programar con labview una pci-6251 para que ésta me genere una señal

    Hola a todos. Veréis tengo un problema; hemos adquirido una pci-6251 y necesito programarla  con labview 8.0 para que me genere una señal (en concreto, una chirp o un pulso), podría alguien como puedo hacerlo???

    Muchas gracias!!!! Ya he conseguido generar mi chirp. Ahora tengo otro problema necesito poner tres controles, uno para poner la chirp a la frecuencia que yo quiera, otro para indicar su longitud y otro para indicar su ancho de banda.
    Adjunto el programa para ver si vosotros sabeis cómo puedo añadirle estos controles. Gracias por vuestra ayuda!!!!
    Adjuntos:
    generacionchirp1.vi ‏62 KB
    generacionchirp11.vi ‏62 KB

  • DAQ PCIe-6259 vs. PCI-6251

    Should I buy a PCIe-6259 or PCI-6251 ? ( I think that PCIe-6251 is not delivered in the Netherlands)
    Is the software for both cards the same?
    What slot do I need with PCIe-6259 in my motherboard, PCI-express x1 or x4 ?
    Can I use the terminal block BNC-2110 with a PCIe-6259 ?
    Thanks a lot for any help.

    Hello,
    The PCIe-6259 is a x1 lane PCI express board. Basicly, the driver software is the same for both boards (DAQmx) and programming is not different for these boards. Yes, a BNC-2110 can be used allong with this board. Last, this board should be orderable in the Neterlands without any problems. For more order information you could contact the dutch office and ask for the sales department.
    Kind regards,
    RikP
    National Instruments
    Rik Prins, CLD
    Applications Engineering Specialist Northern Europe, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Synchronous UART using PCI-6251

    Hello
    I am a beginner using LabVIEW and I need to create a synchronous UART using the PCI-6251, meaning, using one digital I/O to generate clock while another one shifts the data bit-by-bit. It has to work as a master in a half duplex mode. (LabVIEW always providing the clock but data flowing in one direction at a time).
    Could someone help me?
    Thanks!

    Hello, 
    It looks like your application is similar to the one in this forum. However the hardware in the forum is an X-Series in which the digital I/O has a dedicated sample clock and the PCI-6251 is an M-Series which requires you to provide the sample clock.  In order to accomplish what you are describing you will need to create a counter output task to use as your sample clock for the digital output and also to export on a PFI line.  An example of using a counter to correlate the digital output can be found by opening LabVIEW and navigating to Help»Find Examples»Hardware Input and Output»DAQmx»Digital Generation and selecting the Correlated Dig Write With Counter.vi.
    Thank you,
    Justin P 
    Justin
    National Instruments
    Product Support Engineer - Conditioned Measurements

  • WLS-9219 and PCI-6251

    Hi,
    We have PCI-6251 card for voltage acquisition at 200 sample/sec at 14bit. Now I see NI has new product for wi-fi wireless measurement. I see WLS-9219 (4-channel, 100 S/s/ch, 24-bit, ±60 V, ±25 mA universal input) may meet my requirement. But I am now sure and want ask NI expert, Does WLS-9219 can transfer 200S/sec at 14 bit???
    Thanks
    Liming

    Hey Liming,
    The 9219 does not have a flexible resolution and the max sampling rate is 100 S/s/ch. You will not be able to achieve 200 S/s/ch with this device.
    What is the voltage range of the signal you are measuring? If it is within ±10 V then you may be able to use the WLS-9215, which is 16-bit and has a sampling rate of 100 kS/s/ch.
    Regards,
    Chris Delvizis
    National Instruments

  • PI controller with PCI 6251

    Hi all,
    I am using DAQ PCI6251. Can I use this card for creating PI controller ?
    Basically, I think that we can analyze a PI controller into two phases, including the proportional and integral phases. I could do this easily with Labview library. But I am facing a difficulty how to build the saturation block for PI controller ?
    Pls give me the solution.
    Thanks so much for your helps and supports.
    Best regards,
    Duy

    Dear Jochen,
    Thank you very much for your reply.
    I can describe what I am doing as follows:
    I would like to control the induction motor drive system with vector control approach.
    The equipments in my system include the induction motor drive system, inverter, PCI 6251 Labview card, block connector BNC2110. I am using Labview 7.1.
    I will gather the stator currents and voltages from the induction motor under analog signals. Then I will make some calculations on Labview with available Labview library. After that I will output two analog signals. PCI 6251 has two analog signals. I will use two analog signals from PCI6251 Labview card as input signals for PWM generating board which I could bulid. This PWM generating board will create signals to trigger IGBTs of inverter. And the inverter will create signals to control the induction motor drive system.
    In this drive system, we need to use two PI controller as the requirement of vector control approach.
    I hope that my description is clear.
    The expected sample rate is 10 kHz.
    I am using XP Window OS.
    I attach the diagram what I need to do as well.  
    Thanks so much for your great ideas.
    Best regards,
    Duy
    Attachments:
    Practical_diagram_Labview_NI.pdf ‏27 KB

Maybe you are looking for