Use PFI0 on Compact DAQ chasis 9178 as Input Event

Hi,
I have a Compact DAQ Chasis 9178, and I have connect a 5V Input signal to it.
From a detector Sensor.
I want do use the Signal in Labview. It possible to convert this signal to a Boolean true or False?
I want to read this signal directly from my VI.
Thank You
Solved!
Go to Solution.

So you have assigned your counter indicator in the SubVI to the connector pane?
If you do not know, what the connector pane is, then look for "connector panes, assigning terminals" in the LabVIEW help or look here.
http://zone.ni.com/reference/en-XX/help/371361J-01/lvconcepts/creating_subvis/
If this is not your Problem - you have to be a little more specific. How do you expect the Main VI to "receive" the data, how did you programm it to do so?

Similar Messages

  • Compact DAQ Data Acquisition

    Hello,
    I am working on data acquisition project using Compact DAQ - NI 9178, in the I have C series module NI 9213, NI 9207, NI 9205 (Thermocouple, current& Voltage and Voltage measurement units respectively).
    I have created tasks in MAX and using these tasks to read data in my LabVIEW VI.[ I use AI read VI only]
    Task settings , Acqusition mode - N samples, Samples to read -2 , Rate(Hz) -100m
    the above settings is same for all the three cards,.
    WHen I try to read 1 device data say data from NI 9207- I can read 200 samples per minute. WHen I try to read data from all the 3 units I see delay,
    Basically to complete 1 acqusition iteration it takes 1.4-1.5 seconds.
    Is there any better way to increase the speed of acquisition ?
    Thanks
    Solved!
    Go to Solution.

    My bad. Got confused with Frequency conversion. All good now. Sorry
    Was looking for 10 samples every 100ms, and I had programmed 10 samples every 2 seconds

  • Using PFI0 as a trigger and PFI1 as an input on PCI-5114

    Hi,
    I have a NI-5114, and I'm currently using PFI0 as the trigger, and reading out the two analog channels.  I'd like to add a second digital input through the other PFI so I can simply test if something is on or off (already a digital signal).  So, when PFI0 triggers, it digitizes the two inputs and reads whether or not PFI1 is on or off (no timing necessary).  Is there a trick to get this done?
    Thanks,
    Karl 

    Hello Karl,
    Since the PFI lines are generally used as triggers, we cannot read a PFI line unless you are specifically triggering off it. What you could do is as soon as you receive a trigger you can export a trigger of PFI1 which you could connect to one input of an external AND gate and second one is the signal you want to monitor. or can use another DIO DAQ device like USB-6501 to monitor the status of external digital signal. 
    Good Luck
    NI-khil

  • Compact DAQ 9215 BNC module -- Error code -200278 occured at DAQmx read

    Hi,
    I am trying to read data from a sensor giving an output between +/- 300mv. It is connected to the 9215 BNC module on the Compact DAQ chassis. When i try to acquire any number of samples at any frequency it comes up with an error message at the end (-200278). I have attached the screenshot of the error message.
    The program displays information in realtime in a waveform chart on the front panel as the  samples are acquired and also writes them onto a lvm file. I have also attached the vi of the program.
    Please help me as i cannot solve this problem. All help will be appreciated.
    Thanks
    Harshil
    Attachments:
    Error Message.jpg ‏29 KB
    Compact DAQ 9215 BNC.vi ‏74 KB

    Hi,
    Thanks for the help. I have tried to use arrays to
    store the data before i write to the file. The problem is when it writes at the
    end, the format changes and i do not get the channel name and the dt
    value (time interval between samples).
    Also if i select more than two channels than i do not get two colums in
    the output file but one column with both the values of the channels one after the other and thus becomes very hard to make where one channel ends the other begins.
    Please help on how to get round this.
    Harshil
    Attachments:
    Compact DAQ 9215 BNC.vi ‏93 KB

  • Compact DAQ Acquisitio​n sur plusieurs modules

    Bonjour,
    Nous devons réaliser une petit enregistreur sur la base de matériel Compact
    DAQ.
    L’enregistreur doit pouvoir enregistrer les voies de plusieurs modules
    (température (USB 9213), tension (USB 9215))...
    Dans le petit programme en pièce jointe je pense ne pas utiliser la meilleure
    méthode pour acquérir les voies et mesures.
    trois problèmes sont rencontrés
    1- une même tâche ne peut contenir l'acquisition de voies de modules
    distincts, ce qui m'oblige à créer deux tâches en acquisition, une pour les
    voies "tension" une autre pour les voies "température".
    Cela reste possible à faire mais complique le diagramme et ne facilite pas
    l'ajout ou le retrait de modules et l'acquisition de voies (diagramme impacté).
    2- dans le programme écrit la fréquence d'acquisition doit être unique pour
    l'ensemble des modules. Il suffit de mettre la fréquence une à 1Hz et la deux à
    10Hz pour constater que la fréquence pour les deux tâches sera forcée à 1 Hz la
    fréquence possible est ici limitée par le module le plus lent (thermocouple).
    Une acquisition rapide des voies "tension" n'est alors pas
    réalisable.
     3- avec la configuration pénalisante de l'acquisition de l'ensemble
    des voies thermocouple du module USB 9213 la fréquence Max est fixée à 75Hzen
    utilisant en fréquence 1 50Hz et en deux 1Hz pour tester la robustesse du
    programme on obtient rapidement L'erreur -200279:Tentative de lecture
    d'échantillons qui ne sont plus disponibles. L'échantillon demandé était
    auparavant disponible, mais il a été écrasé depuis.
    Je pense que la technique globale pour acquérir les voies des modules
    n'est certainement pas adaptée. Une aide salutaire sur ce pb nous sera dès plus
    utile...
    Merci d'avance
    CS
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    ENREGISTREUR_USB_DAQ.zip ‏68 KB

    je dispose d'un chassis cDAQ-9178, CompactDAQ chassis (8 slot USB)
    la configuration du matériel est récupérable à l'adresssuivante: 
    http://ohm.ni.com/advisors/compactdaq?configid=CD1​720585&elq=c067d1165fac4266bfced875dfa57429
    Un élément de réponse pour réaliser l'acquisition multifréquences, est de modifier le mode de relecture des voies Daqmx. La solution est fonctionnelle, reste que la méthode n'est pas très souple car en cas d'ajout de voies et de modules il faut obligatoirement modifier le diagramme.
    CS
    Pièces jointes :
    ENREGISTREUR_USB_DAQ.zip ‏69 KB

  • Compact daq multiple power supplies into analog input

    I'm trying to read several values from different sensors into a 9205 voltage input module using a compact DAQ.  My sensors use different power supplies, they all output voltage between 0-10Vdc.  I can read the value off of any one sensor fine, but once I hook up another both values start to shift and osscillate, however either one by themselves gives me a steady DC value.  I am taking differential measurements from the sensor's outputs... I'm not sure if it would be ok to tie the grounds of the two power supplies together and feed them to my ground reference input of the module, if I take a voltage measurement between the two power supply grounds I see about 1Volt difference.
    Any ides/suggestions would be appreciated.
    Thanks,
    M. 

    Hi,
    I have been looking at the sensors you are using and the pins seem to be correct so I just want to make sure that we are on the same page with the connections you are making.  This is assuming you have a spring terminal on your daq card rather than a DSUB.
    Humidity Sensor - Pin 3 or 4 (CHn+) to AI0 (Pin 1) and Pin 6 (SGND) to AI8 (19)
    CO2 Sensor - V to AI1 (pin 2) and 0 to AI9 (Pin 20).
    In your software you should then be taking a differential voltage reading on AI0 and AI1.
    Assuming that is all correct then this is very strange.  The wiring diagrams suggest that the signals are ground referenced so this should be sufficient however the 1V difference in the ground lines is perculiar if they are plugged into the similar place.  although the differential reading will eliminate error due to this one consideration is that if they are floating you may need to add bias resistors.  You can find out more about this here.  As I said it doesn't appear that this should be required but is worth a go if you have the kit to try it.
    Otherwise it might be useful if you can send me some screenshots of the behavior on the graphs and perhaps your code and we can see if that helps.  Also if you are able to verify the functioning of your sensors some other way would also be useful i.e. with a multimeter.
    Regards,
    James Mc
    ========
    CLA and cRIO Fanatic
    wiresmithtech.com/blog

  • Using PFI0 (or anything else than AI/SampleC​lock) as SampleCloc​kTimebaseS​ource for analog out task timebase

    Hello all!
    Is there another way to use an external trigger as ao_task.timing.SampleClockTimebaseSource other than creating an analog in task with pfi as signal source and use AI/SampleClock?
    I would like to use the SampleClockTimebaseDivisor property to divide an external timebase (preferably for different external timebases for both AI and AO).
    I have no idea how this division stuff is handled by the daq-card/driver. Is daqmx automatically assigning a counter in the background when I use this technique, or how is the division done?
    I'm using a PCIe-6321 DAQ-Card.
    Thanks for your help!
    Cheers Oli

     Hello Oli,
    I´m sorry that my example could not help you. I was looking for an replacement of the labview code for vb.net, but unfortunately could not find anything worthy.
    If you use VB.net, do you also use Visual Studio and Measuerment Studio?
    If you use it, this following example list may help you to find a better solution:
    http://zone.ni.com/reference/en-XX/help/370473H-01​/mstudiowebhelp/html/daqmxexamplesnet2008/
    Maybe you should set the whole path in "ao_task.Timing.SampleClockTimebaseSource = build_line_path("PFI0")" like in the following example I found:
    Configuring Task Timing in .NET
    To set the source of the sample clock, the rate of the sample clock, and the number of samples to acquire or generate use the Channel.Timing.ConfigureSampleClock() function. The following code snippet creates a continuous acquisition based on an external sample clock connected to PFI 0 on the device.
    analogInTask = new Task();
    analogInTask.AIChannels.CreateVoltageChannel( ... );
    analogInTask.Timing.ConfigureSampleClock(
    "/Dev1/PFI0", // external clock source line or use "" for internal clock
    10000, // expected rate of external clock or actual rate of internal clock
    SampleClockActiveEdge.Rising, // acquire on rising or falling edge of ticks
    SampleQuantityMode.ContinuousSamples, // continuous or finite samples
    1000 // number of finite samples to acquire or used for buffer size if continuous
    You could give it a try.
    Kind regards,
    Janina

  • Compact daq frequency measurement

    hello,
    I am considering using the compact DAQ NI cDAQ-9172 for my measurement and I want it to acquire frequency measurement. I have some analogue input, they are signal with noise. (A example is a measurement of a magnetic pick up)
    I want to have a counter, I wuold use  the internal counter (5 / 6 slot) of the chassis ) NI cDAQ-917.
    I am considering using the NI 9201, but I can utilize the internal counter with a analogue input module?
    THANKS!!!!!!!!!!!!
     chiara.

    thanks for your reply.  maybe i explained my situation incorrectly.
    From the that sample freq program you showed me, i'm just using the numberic indicator for frequency only and not the other graphical displays (like the voltage and frequency spectrum).
    In my original program, i already have a bunch of graphical displays measuring physical channel ai8 to ai12.
    I wanted to see what frequency my ai12 channel as well as measure/display the voltage graphically.  I believe your saying that i can't measure both frequency and graphing at the same time on 1 channel?
    What i did was I connect ai12 channel to ai13 and basically copied the the sample freq measure vi program to my original program to indicate frequency.
    my orignal program has set the DAQmx reading ai8:ai12  to a analog 2D DBL multiple sampling.
    but i noticed that the sample frequency measure program requires the DAXmx read.vi set to 1D waveform to measure frequency not 2D DBL like the rest of my program.  I think it is where this part i'm having problems with sampling all my inputs ai8 to ai13.
    so when i copied the sample frequency measure program into my original program, it only runs one physical channel. Only the sample frequency program (ai13) or my other ai8 to ai12 graphs will work but not both at the same time.  It can't do all ai8:ai12 2D including the ai13 1D measurement continuously.
    i dont think its possible to read in analog 1D and 2D measurements at the same time?
    Thanks again.
    Message Edited by immortalc on 01-04-2008 10:02 AM

  • Compact daq (Error for long time measurement)

    I have a trouble when I use the NI9215 (analog input module of the compact DAQ).
    When it was kept sampling for more than 20 seconds, I got a error message from labview.
    For example, it is operated at the sampling frequency, 10 kHz, and try to get more than 200 kS, namely it takes 20 s, error messagy popped up in the labview program. In the labview program, I use a DAQ assistant, which is connected to DAQ mx read.
    Please give me some advice. Thanks.

    Post the message will be helpful, this can help determine if it is a buffer overflow, timeout, improper property memory leak...
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Im using a pci-6221 daq-card.I want to know the difference(use)of a line output and a port output.

    Im using a pci-6221 daq-card.I want to know the difference(use)of a line output and a port output.

    Hello Hellraiser24,
    This question has actually been discussed in another thread here:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=95895&requireLogin=False
    I hope this helps,
    E.Lee
    Eric
    DE For Life!

  • How to use Mulitple DAQs with a single triggered event on only one of the DAQs

    I have three PXI6115 and would like to tie all these to a single triggered event on one of the DAQs. I've scaned the examples and any assistance would be greatly appreciated....

    TCjr,
    Please refer to your other post:
    How to use Multiple DAQs with a single triggered event on only one of the DAQs

  • Can you daisy chain two Compact DAQ systems together?

    Greetings everyone,
    I have a signal conditioning application and I have been looking at the Compact DAQ Platform as a solution.
    I have a total of 16 TC's channels, a few DIO and a few Analog Out requirements.
    I can basicly meet these needs with a single cDAQ system but I would like to have room to expand more in the future.
    Does anyone know if it is possible daisy chain more than one cDAQ system together or if it woudl be very difficult to program and run two seperate DAQ systems from my computer.
    Any help would be greatly appreciated.
    Thanks,
    Thomas

    alkaline3mc wrote:
    NI, the home of dead links.... 
    You probably noticed that these posts were written 9 years ago...
    LabVIEW Champion . Do more with less code and in less time .

  • Acquisition de données avec un compact daq

    Bonjour,
    Débutante en labview, je dois faire une acquisition de données de mesure avec un compact daq.
    J'ai fait des recherches pour me permettre de commencer.
    Mais le VI que je fais ne me fais pas les mesures en continu...
    Pouvez vous m'aider ?
    Cordialement

    Hello, 
    Concernant ton vi, il y aurai pas mal de commentaires...., désolé je ne peux pas rentrer dans détail.
    Les réponses précédentes te dirigent vers les exemples, pour être encore plus précis, je te conseil l'exemple "Cont Acq Thermocouple Samples-Int Clk.vi."
    dans: 
    E/S materielles/DAQmx/Mesures analogiques/temperature/Cont Acq Thermocouple Samples-Int Clk.vi.
    Tu y verra comment utiliser correctement la fonction de cadencement dont ont parle ci dessus.
    Un autre point fondamental : dans ta config de voie, tu n'a pas câblé ni le type de thermocoule, ni la compensation de soudure froide.... C'est vital si tu veux que tes mesures de températures soient justes...
    Quel module pour thermocoupe utilises tu dans ton châssis cDaq9181? Selon le hardware, les fréquences d'échantillonnages doivent  parfois être contraintes à certaines valeurs (sous multiple de l'horloge, f maxi etc).
    Bon courage
    antoine

  • Using traditiona​l NI-DAQ with NI-DAQPAD6​016

    Hi,
    Can the NI-DAQPad6016 controlled using the Traditional NI-DAQ driver, or is it only possible with the NI-DAQmx?
    Thanx

    Duplicate of This Link

  • Drive dc motor using NI ELVIS II DAQ

    Hi I would like to use NI ELVIS II Analog output pins to drive a DC motor. From the specification I think NI ELVIS II can supply just 5 mA while I need 0.2 A to drive this motor. I can also drive this motor using variable power supply pins on NI ELVIS II but I get nothing when I start to generate somthing in LabVIEW using DAQmx functions and AO 0 andO 1 pins. Would you please help me can I use NI ELVIS II DAQ to manualy generate DC voltage? 

    Hi Jim,
    Mant thanks for your reply
    Do u mean I can't use analoge output pins of the NI ELVIS II to drive this motor!  Unfortunately I can't use any power transistor. This DC motor is used to a rotate disc of an optosensor. I need to programmatically supply this DC motor using LabVIEW DAQmx blocks and NI ELVIS II. I have attached the spec form of this DC moto
     to this email. I would really appreciate if you have a look at it. 
    Attachments:
    DcmotorSpec.pdf ‏106 KB

Maybe you are looking for