DAQmx trigger: start digital edge

Buongiorno a tutti.
Mi trovo a lavorare su un VI creato in precedenza da altri colleghi, quindi sto cercando di migliorarne alcuni aspetti.
Lo strumento si occupa dell'acquisizione di segnali di temperatura e pressione da svariati sensori. I colleghi hanno inserito una fonte di trigger esterna attraverso un generatore di funzione (tektronix AFG3021C). In allegato una immagine della sequenza precente al ciclo while di acquisizione ed elaborazione dei segnali.
La mia domanda è questa: "è possibile ovviare all'utilizzo del generatore esterno di funzione?"
Grazie
Luca 
Allegati:
acquisizione.jpg ‏155 KB

Ciao Luca,
strano che non ti compare niente, prova a cancellare l'intera funzione e richerla, dovrebbe almeno apparirti i vari PFI della scheda DAQ che hai collegato al PC... Sei sicuro di aver collegato qualcosa?
In ogni caso ***** vuoi come trigger una forma d'onda generate internamente, quello è un trigger software, prova a guardare questo esempo:
https://decibel.ni.com/content/docs/DOC-35941
Buon lavoro e buona giornata,
Valerio

Similar Messages

  • Why does Start Digital Edge in Start Trigger.vi do a kind of timeout?

    Hi I am doing a manual trigger on my hardwareboard by inserting a 5 volt source into the selected triggerchannel a couple of seconds after I push the start button.
    The generation never starts. But if I put the trigger signalchannel  equal to the external sampling clock the appended vi work.
    Example I use PFI7 as trigger source which is also the source of the sampling clock.
    Could somebody explain?
    Kindest regards,
    Lasse
    Solved!
    Go to Solution.
    Attachments:
    Cont Gen Voltage Wfm-Ext Clk-Dig StartA.vi ‏36 KB

    One cannot just insert a wire with a 5 V potential to PFI6 for instance if PFI6 is used as a trigger for "Start Digital Edge" daqmx -vi. The pin is floating and just inserting 5V does not guarantee a low to high edge.
    If I use a potentiometer to pull the channel low first, and then increse the voltage, the trigging happens.

  • AO output/start digital edge

    AO output中,我想用DAQmx write来写入电压信息到buffer,然后用DAQ start task开始产生电压。我的程序中用start digital edge指定每个pulse的falling edge来开始产生电压。我的问题是电压是不是只有在pulse的low edge电压才能产生,而当下一个rising edge是,产生就会停止呢? 还是说start digital edge只决定第一次电压写入的时机?望高人指点!

    可以贴程序框图看看么?
    Thomas | Xi'an China
    LabVIEW 7.1 | LabVIEW 2011
    DAQmx | CompactRIO

  • Getting error -200452 using DAQmx Base Trigger (Digital Edge).

    I'm trying to set up AI and counter output, and I'm using digital output as trigger for to start AI and counter at the same time. I get error 200452 "Specified property is not supported by the devise..." not consistently, but around 5 runs out of 100. Below the error description, the error box shows "This error code is undefined. No one has provided a description for this code..." If I "Retain Wire Values" in Block Diagram, the error first appears after 'Start Digital Edge' block in top counter output line.
    Using LabView 8.5 on MAC OS X and DAQmxBase 3.2
    The MAC I have is not Intel base, so I can't upgrade LabView and DAQmxBase to latest version
    Note: The file contains just a small portion of the program, but the rest of the program does not have any other DAQmxBase blocks accessing the channels used here in code attached.
    Attachments:
    Combined V 1.5.41_sm.vi ‏98 KB

    Hi Azotov,
    It looks like the DAQmx Base driver readme includes Mac OS X support for LabVIEW 8.5.  Could you specify what hardware you are using?
    I found one KnowledgeBase specifying that error code occurs when you try to use certain properties with certain devices.  Of course, this would most likely occur every time you run the task, not 5% of the time.
    Since I'm running Windows, it's a little difficult to see if you have DAQmx Base "Reset Device" functionality with that version of the driver.  You might check if you can run that functionality before using your device, though.
    National Instruments

  • Multiple Channels with Single Digital Edge Trigger

    I have a simple vi where two analog channels are read in and recorded simultaneously to a lvm file and plotted on a waveform graph. I need a digital edge to post trigger the data acquisition for both channels. 
    I can get this vi to work with one analog channel and the digital edge trigger just fine.
    When I remove the digital edge trigger, I can get the vi to work with both analog channels. Both signals plot on a waveform graph, and record nicely in the lvm file.
    The issue is how I am setting up the digital trigger (see attached).  The program is never entering the while loop. Where am I going wrong?
    Chassis:cDAQ-9172
    Analog Card:NI 9205 (Trigger Source PFI0)
    LabView: 8.6
    OS: Windows XP
    Solved!
    Go to Solution.
    Attachments:
    Analog Input with Digital Edge Trigger.vi ‏52 KB

    Gardma,
     I am going to take a quick guess (I'm lazy and haven't actually tested the code ), but, since it works without the trigger and given that you have it so that the read never times out (i.e. = -1), there is something going on such that the trigger is never generated on the source pin.  Just a thought.
    Cheers, Matt
    Matt Richardson
    Certified LabVIEW Developer
    MSR Consulting, LLC

  • How to trigger on Falling Edge?

    Hello,
    I could not find any example on Falling Edge trigger Acq. for 6534 or 6110. Can anybody tell me how to trigger on falling edge, or for that matter even specify which edge to trigger on?
    Dhruvish

    There are some great NI-DAQmx triggering examples that install into LabVIEW 7.0 or newer when NI-DAQ is installed (as long as you include support for your LabVIEW version when installing NI-DAQ). With the release of NI-DAQ 7.4, both of your devices are supported by NI-DAQmx, so I would definately recommend using the DAQmx API. In LabVIEW, go to Help>>Find Examples. For your analog board (6110), navigate to Hardware Input and Output>>DAQmx>>Analog Measurements and maybe take a look at Acq&Graph Voltage-Int Clk-Dig Start.vi. For your digital I/O board (6534), go to Hardware Input and Ouput>>DAQmx>>Digital Measurements and try Read Dig Chan-Int Clk-Dig Ref.vi. Both of those examples has a control on the front panel that allows the user to select whether he/she wants to trigger on the rising or falling edge of a digital signal. Hope this helps!
    -Alan A.

  • Differences in DAQmx Trigger (VI)

    I am trying to figure out why DAQmx Trigger VI works differently with different hardware.
    Case 1; using PXI-6133 and Reference Analog Edge version of VI
    Case 2; using PXIe-6368 and Reference Digital Edge version of VI
    My users have shown me that using an analog signal on an analog channel for a trigger source in both cases works.  Now, using the same trigger source conditions, I want to use a PXI-6133 and Reference Digital Edge version of VI.  This does not work.  Why?
    My goal is to create a subVI that will use the appropriate DAQmx Trigger VI, given the source trigger hardware.  My application will aquire 2 sets of data simultaneously on different hardware.  One set based on a trigger, one set continueuosly.  Does this seem unreasonable? 

    TrigConfig.png - code from main VI that create parameters for Trigger
    Setup Triggers.vi - subVI that configures Trigger
    Kevins_Triggered Fast DAQ.vi - working VI for PXI-6133 and PXI1045
    Attachments:
    TrigConfig.png ‏177 KB
    Setup Triggers.vi ‏39 KB
    Kevins_Triggered Fast DAQ.vi ‏45 KB

  • Why did Start Analog Edge stop working?

    I have been using the Start Analog Edge DAQmx function to initiate my data read (similar to the Multi-Devices Synch-Analog Input-Finite Acq-Analog Start.vi example). It has worked fine for several days, but recently stopped working. I can see the signal at the hardware test panel, I can see the trigger signal on the waveform if I route around the start trigger function. I cannot actually get the function to recognize the start trigger.
    Not sure what other sort of debugging I can do. Hopefully, someone has encountered this before and can clue me in to what I am missing.
    =Jason Hill
    New Product Engineer
    Groth Corp.

    Hi,
    I have a couple questions for you to help narrow down the issue:
    1) What device are you using?
    2) What driver are you using?
    3) What has changed in the setup (hardware and software) from when it was working to when it stopped working?
    4) You are using a multiple device VI. Is that because you have multiple devices you are trying to trigger. Please explain in more detail what you are trying to do and how you are trying to do it.
    You could use the ContACq&Graph Voltage-Int Clk-Analog Start.vi to do the same thing with just one board. This may be better suited for your needs. This example can be found in the LabVIEW example finder.
    I hope this helps. Have a Great Day!
    George

  • Configure PXI-2567 to Trigger on Rising Edge using LabWindows​/CVI

    I need some help configuring the trigger edge for a PXI-2567 using Labwindows/CVI.  I have been able to successfully create and execute a scan list using both the ni-switch and daqmx APIs.  However, currently the PXI-2567 triggers on the falling edge of an input trigger.  I need to configure it to trigger on the rising edge of an input trigger.  Every function I could find in the daqmx API for configuring the trigger edge gave a non-fatal runtime error, and I could find no such functions in the ni-switch API.
    Any help configuring the input trigger edge on the PXI-2567 using Labwindows/CVI would be appreciated.
    Thanks

    Hi JonRice,
    You can configure the scan list to execute on the rising edge of an input trigger.  Here are the Labwindows/CVI and LabVIEW functions you would want to use to retrieve, specify or verify the edge of a digital signal that advances to the next entry in a scan list.
    NI-DAQmx C Property: More >> Advance >> Digital Edge >> Edge
    You can get/set/reset this property using:
    DAQmxGetDigEdgeAdvTrigEdge
    DAQmxSetDigEdgeAdvTrigEdge
    DAQmxResetDigEdgeAdvTrigEdge
    NI-SWITCH C Attribute: NISWITCH_ATTR_TRIGGER_INPUT_POLARITY
    You can get/set/check this attribute using:
    niSwitch_GetAttributeViInt32
    niSwitch_SetAttributeViInt32
    niSwitch_CheckAttributeViInt32
    NI-DAQmx LabVIEW Property: More:Advanceigital Edge:Edge
    DAQmx Trigger Property Node
    Short Name: Adv.DigEdge.Edge
    NI-SWITCH LabVIEW Property: Trigger Input Polarity
    niSwitch Property Node
    Short Name: Trigger Input Polarity
    Hope this helps!  Let me know if you have further questions.
    Chad Erickson
    Switch Product Support Engineer
    NI - USA

  • DAQmx Trigger Property Node in NI-9235

    我使用DAQmx Trigger Property Node不會顯示Analog Edge
    請問是否有辦法設定
    DAQ設備為cDAQ-9172和NI 9235
    另外想問
    NI 9235有辦法設定量測到的數據在超過某個值後才開始紀錄數據

    http://www.labviewpro.net/forum_post_detail.php?post=2010&fid=1
    請先閱讀上面文章
    再參考下面類似方法
    http://digital.ni.com/public.nsf/allkb/4859504F14AF68DB8625721100640F26

  • USB scope triggering off wrong digital edge

    All,
     I have setup my USB scope card (5133) to trigger of a positive digital edge on the PFI input. This then captures rising analgue connected to the two channels. This normally works fine, but sometimes the scope will start to trigger off a negative edge! (digital input signal is a digital pulse). To get the scope to work correctly again I have to set the scope to trigger off an analogue edge on ch0/1, then after runing the vi once return to the digtal edge trigger on PFI1. I have attached an image of the setup of my scope.
    Attachments:
    trigger.jpg ‏290 KB

    Hello,
    I don't immediatly see anything wrong with the screenshot of your VI.  I have a few questions about your setup that will help narrow this down.
    1)  What are you using as the source of your digital trigger on PFI 1?  Have you verified that this digital signal meets the VIH and VIL levels specified in the 5133 spec sheet?  http://digital.ni.com/manuals.nsf/websearch/8D323D9E4F4B39288625737C0071E462  (Page 7)  Also make sure you are not exceeding -0.5V or +3.5V and that your pulse width is greater than 20 ns.  The easiest way to verify this would be to run the configured acquisition example VI with your digital trigger signal running into one of the analog input channels.
    2)  How are you connecting your signals to your board?  Are you using BNC cables or probes?
    3)  I am assuming that the signals you are digitizing on ch 0 and ch 1 are different than the signal you are feeding into PFI 1.  If you have a BNC splitter handy try splitting the signal you are feeding into PFI 1 so that it also runs into one of the input channels.  Leave the other analog input channel unconnected.  Then run your VI again and see if you see the same phenomena where it looks like the scope is triggering on the falling edge of PFI 1.  If the scope is triggering on the falling edge you should see the falling edge waveform captured on the analog channel.  This will help us determine if the scope is triggering on the wrong edge or if your input signal and digital rising edge are not always correlated.  If you are using probes instead of BNC cables you can do the same test, just connect both probes to the same signal.
    Regards,
    Matt

  • PXIe-4499 DAQmx Trigger

    I'd like to trigger off a rising edge on one of the analog channels, let's say AI0, on a PXIe-4499 card however I can't seem to figure out how to specify the trigger source. I'm using the "DAQmx Trigger.vi" and the documentation says the following:
    "source is the name of a virtual channel or terminal where there is an analog signal to use as the source of the trigger"
    I tried creating a virtual channel with no luck and have looked through the 4499's documentation but haven't been able to find a reference to source names.
    Can anybody offer a suggestion or point me in the direction of an example?

    Hello bww,
    The example you are looking for can be found on this page. The source you specify will be the signal that triggers the acquisition.  This signal can come through the PFIO for your device, the PXIe chassis backplane, or the Analog Input channels. For your purpose (correct me if I am wrong) you want to acquire on AIO and begin the acquisition when the analog signal (AIO) is above a certain level? Then I would recommend configuring the example to look like the item below.
    Regards,
    Izzy O.
    Applications Engineer
    National Instruments
    www.ni.com/support

  • ADAM Service cannot be started on edge server - cannot uninstall the role and ...

    Hi,
    after a storage failure, some files seemed to be damaged on exchange 2010 edge server
    it said it could not connect to DC and i realized that is because ADAM service stopped
    I tried to start it but encountered a weird error (0xc000000) some thing like that
    so i found that adamntds.dit is corrupted
    I issued this :
    C:\Program Files\Microsoft\Exchange Server\V14\TransportRoles\data\Adam>eseutil /p adamntds.dit
    it said integrity check ok but after that again ADAM does not start and says
    this service started and the stopped ... (the famous message we all know)
    1- now is there any way to fix it?
    2- is it reasonable to use the other edge server database file on this one (we have two edge servers) or it is non-sense
    3- according to this
    http://social.technet.microsoft.com/Forums/exchange/en-US/93ed667c-5a37-404c-9471-d2525621a371/adam-service-wont-start-on-edge-transport?forum=exchange2010
    and the advice of Ed my dear friend on Technet, itmay be better to reinstall it
    but it does not even let me to uninstall it and says :
    Summary: 2 item(s). 1 succeeded, 1 failed.
    Elapsed time: 00:02:58
    Configuring Prerequisites
    Completed
    Elapsed Time: 00:00:41
    Edge Transport Role Prerequisites
    Failed
    Error:
    The Active Directory Application Mode (ADAM) service must be started before Setup can continue.
    Click here for help... http://technet.microsoft.com/en-US/library/ms.exch.err.default(EXCHG.141).aspx?v=14.3.123.3&e=ms.exch.err.Ex28883C&l=0&cl=cp
    so somebody please tell MS guys if i could start it why should i uninstall it :P
    and i do not want to use manual methods to do the removal if possible
    and much better if i can fix it without even uninstall exchange
    thanks to all

    Hi,
    I would like to verify if you have a backup of ADAM directory.
    If yes, please put it on the server and try to start the ADAM service.
    If no, I recommend you recover the ADAM directory as the following steps:
    1. Use esentutl /g.
    2. If Integrity check is successful, use this cmdlet: esentutl /d.
    3. Use esentutl /r edb.
    4. If above steps fail, use esentutl /p adamntds.dit. Then delete all files in the directory except for the adamntds.dit. (Note: Before you delete the files, please take a backup for them.)
    5. Try starting ADAM service.
    Hope it helps.
    If there are any problems, please feel free to let me know.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • DAQmx vs Intermediate Digital I/O

    I would like to know the diffference between DAQmx and Intermediate Digital I/O like using DIO Write rather than DAQmx Write.
    I'm new at this. Thanks for any help.
    Dan

    Are you referring to legacy DAQ as compared to DAQmx? If so, DAQmx is the way to go. Watch this webcast to see the differences.
    Message Edited by Support on 01-10-2008 10:51 AM
    “A child of five could understand this. Send someone to fetch a child of five.”
    ― Groucho Marx

  • NI-DAQ Digital Edge Start Trigger

    Hi -
    I have a digital input line that I would like to use as a trigger in order to collect 1 data sample of 31 analog input lines.  How do I configure this task?  I have been getting all kinds of error messages and am assuming there must be a simple way to go about it.
    Thanks,
    Dave

    Hi Dave,
    I think there is a problem either with your configuration files in MAX or the driver. Try renaming the MAX Data folder located at C:\Program Files\National Instruments\MAX. Also, you can try exporting your MAX configuration to preserve what you already have and then start fresh by creating new task. This will create a new MAX configuration and new Data folder when you create a brand new task.
    I have searched for the -2147220733 error but I can't find any documentation on it even internally. Do you have another machine where you can try to create/test the task? Does the error appear in MAX or in LabView when you try to run your application? Do you have problem setting up tasks with any other cards in the computer? Does the error occur only when you have one channel in the task or all 31?
    Selecting "1 sample HW timed" should definitely work.
    Regards,
    Natasa

Maybe you are looking for

  • I've made a word in a paragraph a link,  I can't get the link to open in a new window

    Here's my text and how I've written the link: ("In addition to the four issues on this map, <style>a:link {color:#b8dc70;text-decoration:none;} a:visited {color:#c8c8c8;}a:hover {color:#e69400;}a:active {color:#c97777;}</style> <a href =\"http://gras

  • How do I update a contact card on multiple iCloud accounts?

    I currently have two iCloud accounts set up on my iMac.  One is mine, and the other is my wife's.  I have both set up to sync contacts over the air.  If I update a contact card that is linked to both accounts it only updates the card under my account

  • PB '12 not booting

    Hi guys it had been a while since I came to the forum, last night as I was browsing the web my PB screen went dark and the fan started working to the max, after a couple of minutes I decided to shut it down since it wasn't doing anything. When I trie

  • Recovery Hanging at Startup

    Hi, I'm a first time poster here, I usually do my own research and fix my own problems but this problem has led me to the ends of my patience. So I have an HP G60, great machine, it served all my purposes. That is until an inconsiderate aunt pulled t

  • Can someone explain Wifi to me?

    O.k. I am techno stupid. What I have: I have a 3G Wifi 64G ipad. I live in an area where there is no ATT 3G, so my ipad connects via Edge (really slow). My PC laptop connects via an ATT Aircard and also is very slow (and drops signal frequently requi