NiSwitch_ConfigureScanTrigger equivalent function in DAQmx

Which function in NI-DAQmx library corresponds to the function niSwitch_ConfigureScanTrigger from NI-SWITCH?
Solved!
Go to Solution.

HI MirKoz!
As you can read in help, the niSwitch_ConfigureScanTrigger VI is used to configure the scan triggers for the scan list established with  the  niSwitch_ConfigureScanScanList VI. Not all of the switch modules supports scanning.
The niSwitch_ConfigureScanTrigger sets the location that the switch expects to receive an input trigger to advance through the scan list. This function also sets the location where it outputs a scan advanced signal after it completes an entry in the scan list.
Detalide help: http://zone.ni.com/reference/en-XX/help/375472F-01/switchviref/niswitch_configure_scan_trigger/
The Scan Delay input of the niSwitch_ConfigureScanTrigger VI Specifies the minimum amount of time the switch module waits before it asserts the scan advanced output trigger after opening or closing the switch.
The switch module always waits for debounce before asserting the trigger. 
I searched for similar behaivour, and I found the DAQmx Switch Create Scan List VI in the following palette:
This VI creates a new switch scanning task with the sequence you specify in the scan list input. This scan list uses a special syntax to specify the sequence of connections and disconnections for the task. 
If you use the ; caracter  in the list, thedevice will wait for debounce, send scan advance output signal, then wait for trigger input.
You can use SW or HW based triggering, in exmaple finder you can find the Switch Scanning-SW Trigger.vi, which uses sw trigger.
The detailed help of the VI is avaliable here: http://zone.ni.com/reference/en-XX/help/370469AA-01/lvdaqmx/mxswitchcreatescanlist/
The syntax of the scan list is here: http://zone.ni.com/reference/en-XX/help/370466V-01/mxcncpts/scansyntax/
Could you tell me more from your application? It would help me to make better suggestions, but I hope this post will be useful for you.
Please let me know if it works.
Best regards,
Balazs Nagy

Similar Messages

  • What is the equivalent function of NIDAQYield in NI-DAQmx?

    I have to migrate from traditional NI-DAQ to NI-DAQmx for Window 7 64bits system.  I like to find the equivalent function of NIDAQYield in NI-DAQmx?

    As far as I can see here, NIDAQYield is simply a way to process system events, so I suppose calling ProcessSystemEvents () will be equivalent to calling it.I do not know of a native DAQmx function that does the same. It is to be said, though, that DAQmx way of handling acquisition process is different from Traditional DAQ one and direct translation is not always possible, so depending on how you migrate your code, calling those functions may be unnecessary.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • DAQ Monitor Equivalent function in NIDAQmx

    Hello,
    What is the equivalent function of DAQ_Monitor() in the NIDAQmx.
    I want to read the ADCs into a buffer and perform DAQ_Monitor operation upon the buffer at regular interval.
    Any suggestions??
    regards,
    Dwivedi

    There isn't really a one-to-one mapping between Traditional Legacy VIs
    and NI-DAQmx VIs. So can you explain a little more what you are trying
    to accomplish? By "perform DAQ_Monitor()" do you mean reading (grabbing
    samples from) the buffer at regular interval or just seeing what is in
    the buffer? In the latter case, are you interested in just the number
    of samples or the actual samples?

  • Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Not a lot of details here, but my guess is this isn't working for you because you are wiring in the task to the Active Channels Property and not the actual Channel Name. I have attatched a screenshot of what I believe you are trying to do. The Task has 2 channels in it, so I need to index off one of the channels and wire it into the active channels input of the Channel Property node. Then I can read information about that channel
    Attachments:
    channel_name.JPG ‏69 KB

  • @RELATIVE() equivalent function in Financial Reporting Studio?

    All,
    Is there an FR equivalent function to the @RELATIVE() function in Essbase?
    Specifically, I'm trying to select Level 0 descendants of a particular member.
    e.g. @RELATIVE(MEMBER,0) would be the equivalent function in Essbase.
    I've tried to use the RelativeMember function, but that does not appear to do the same thing.
    I also tried to union two selections, but that just returns an MDX error.
    e.g. assume I want to return child 2 and 3
    Dimension
    Parent A
    Child 1
    Parent B
    Child 2
    Child 3
    Lev0,Dimension NOT Descendant Parent A (this is not the actual syntax, but an explanation of what I tried). This returns an MDX error to do with "NOT".
    Any help is appreciated...

    That was extremely helpful. I was able to get it working with the following syntax
    Descendants of <Member> AND System-defined member list Lev0,<Dimension>
    Thanks again for your help.

  • PCI6602 functions in DAQmx

    I have been using PCI6602 in NI-DAQ for a long time. Recently I upgraded to DAQmx. The standard tasks such as frequency measurement is very simple in DAQmx. But for special needs, I can't find the corresponding functions as in NI-DAQ such as selecting source and gate signal. Furthermore, I can't find the detail explanations of DAQmx functions in DAQmx Help, such DAQmxCfgSampClkTiming() in the ANSI C examples.

    I am glad that you decided to upgrade to DAQmx!  You will be very happy about it once you get used to the new functions available.  The C reference help is located in:
    Start>>Programs>>National Instruments>>NI-DAQ>>NI-DAQmx C Reference Help
    This is where you can find all the information on the functions and properties in DAQmx.  Also, there are C examples for DAQmx located in:
    C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C
    Regards,
    Jordan F
    National Instruments

  • Equivalent function for box3d which available in Postgis

    I have a road_network data I am trying to
    obtain all the values within a bounding box formed by lat long values,
    i tried below example but it compiled and produces some error 
    declare @exmp varchar;
    set @exmp = 'POLYGON(81.959545899804 25.243612186501,81.985879306176 25.2726072490010)'
    DECLARE @box geography = geography::STLineFromText(@exmp, 4326)
    SELECT source,target,geog4326.STAsText()
    FROM road_network
    WHERE geog4326.STIntersects(@box) = 1;
    in PostGIS theres a box3d, i like to know is there any equivalent function available in MS SQL Server ?

    a few problems here:
    1.
    run this- what do you see?
    declare @exmp varchar;
    set @exmp
    = 'POLYGON(81.959545899804 25.243612186501,81.985879306176 25.2726072490010)'
    print @exmp
    a varchar initialised without a size defaults to varchar(1)
    so set varchar to the required value or set it to varchar(max)
    2. A polygon requires at least 3 distinct points and the start and end points need to be the same. I'm assuming you just want to draw a line between the 1st & 3rd points of your bounding box and have the db engine draw the box around them. So you should
    be declaring it as a LINESTRING, not a polygon. Unfortunately geography doesn't have a .STEnvelope() function, so you'll need to convert the line to geometry, get the envelope, then convert back
    declare @exmp varchar(max);
    set @exmp = 'LINESTRING(81.959545899804 25.243612186501, 81.985879306176 25.2726072490010)'
    DECLARE @box geography = geography::STLineFromText(@exmp, 4326)
    -- Work out bounding box by converting to geometry via WKB, then using STEnvelope()
    DECLARE @boundingbox geometry = geometry::STGeomFromWKB(@box.STAsBinary(), @box.STSrid).STEnvelope();
    -- Convert result back to geography via WKB
    SET @box = geography::STGeomFromWKB(@boundingbox.STAsBinary(), @boundingbox.STSrid);
    (from
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/453d2fe8-bbe6-4047-90ce-556015c17e64/how-to-get-the-bounding-rectangle-of-a-geography)
    now you can intersect your @box.
    If this were geometry you could've just used .STFilter() on your linestring directly.. I'm not sure how .Filter() works with geography but investigate it as it'll be faster if your road_network table has correct spatial indexes.
    Jakub @ Adelaide, Australia

  • PCI-4472 not functioning with DAQmx Linux 8.0

    We have multiple systems with PCI-4472 cards in them running SUSE Linux, and all but one of them function properly.  On the particular system in question (which has identical hardware and software to the functioning systems), nilsdev lists no devices.  Further investigation revealed the following excerpt from dmesg:
    allocation failed: out of vmalloc space - use
    vmalloc=<size> to increase size.
    Unable to handle kernel NULL pointer dereference at virtual address
    000002fc
     printing eip:
    f9ede608
    *pde = 00000000
    Oops: 0002 [#1]
    SMP
    Modules linked in: nidsark nistcrk nicdrk nistc2k nimru2k nimxpk ipt_pkttype
    ipt_LOG ipt_limit nipxirmk nidimk nimsdrk nidmxfk nimxdfk nimstsk nimdbgk
    niorbk speedstep_lib freq_table nipalk nikal snd_pcm_oss snd_mixer_oss snd_seq
    snd_seq_device button battery ac af_packet video1394 raw1394 edd ide_cd cdrom
    sk98lin ohci1394 ieee1394 snd_intel8x0 snd_ac97_codec snd_ac97_bus snd_pcm
    snd_timer snd soundcore snd_page_alloc i2c_i801 i2c_core hw_random generic
    ehci_hcd intel_agp agpgart uhci_hcd usbcore shpchp pci_hotplug ip6t_REJECT
    ipt_REJECT ipt_state iptable_mangle iptable_nat iptable_filter ip6table_mangle
    ip_conntrack ip_tables ip6table_filter ip6_tables ipv6 parport_pc lp parport
    nls_iso8859_1 nls_cp437 vfat fat nls_utf8 ntfs dm_mod ext3 jbd sg fan thermal
    processor ata_piix libata piix sd_mod scsi_mod ide_disk ide_core
    CPU:    1
    EIP:    0060:[<f9ede608>]    Tainted: PF    U VLI
    EFLAGS: 00010246   (2.6.13-15-smp)
    EIP is at nidsark-unversioned0004550+0x70/0x11e4 [nidsark]
    eax: 00000000   ebx: f6be1d68   ecx: 00000000   edx: 00000000
    esi: f6514770   edi: f6514760   ebp: f6be1964   esp: f6be1958
    ds: 007b   es: 007b   ss: 0068
    Process nipalsm (pid: 6952, threadinfo=f6be0000 task=c2344540)
    Stack: f6be1d68 f6514b68 f6be1d68 f6be197c f9efb4d0 f6514760 f6be1d68 f6514b68
           f6b82690 f6be1a1c f9e93409
    f6514b68 f6be1d68 f6514760 f6be1d68 00000004
           f6be1d6c 00000100 f6be19b8
    f95bbf19 f6be1bd0 f6be1d6c f6be1d6c f6be1b98
    Assuming that the NULL pointer deference was caused by the preceding failed vmalloc, I attempted to increase the vmalloc size to 512MB (which is certainly overkill).  This did nothing to clear the error.  One final detail is that this computer dual boots Windows, while the others have only ever run Linux.  It shouldn't matter, but I feel it is worth mentioning in the event that DAQmx for Windows somehow mangles the configuration of the card to a point where it no longer functions with DAQmx for Linux.  It should be noted that the card works just fine under Windows.
    I have the output from niSystemReport available in the event that it will help in diagnosing the problem, but am unable to attach it due to the size restriction of this forum.  The call trace from dmesg is in the attached file.  Any help would be greatly appreciated.
    -Peter Lisherness
    Message Edited by PeterLisherness on 07-10-2006 12:36 PM
    Attachments:
    dmesg.txt ‏5 KB

    Peter,
    I have a couple of other questions which might help us narrow this down.
    1.  You said both the working and non working machines have identical hardware and software.  I'm assuming this means both machines are Pentium 4 3.2 GHz SMP machines 2 GB of RAM, have the same motherboards etc.  I also assume that this means that they also are both running SUSE 10.0 and have the same updates, and kernel versions.  Is this correct?  A system report from the working machine could also help us confirm this.
    2.  Can you easily reproduce the Oops?  When does it occur?  Does it happen when the machine first boots up, or do you have to run nilsdev first?
    Thanks,
    Shawn B.
    Use NI products on Linux? Come join the NI Linux Users Community

  • "Extract" filter or equivalent function

    Where do I find the "Extract" filter or equivalent function found on earlier versions of Photoshop?

    Norm, you'll have noticed the video is one of those super easy images they used to demo Refine Edge when it was first available?  I struggled with the tool for ages back then, finding a far from intuitive tool to use in real world situations, which is why I often use the Martin Evening tutorial on this forum, because he demos a difficult image, plus he shows how best you use it in the target image.  But I decided to make it look easy in my post above

  • Java Equivalent Function to Obfuscation DES3 Procedures

    I've read all of the notes and reports that I could find on both OTN and MetaLink, but I can't find a solution anywhere. Just hints, particularly in Note 232000.1 and Note 225214.1. I've been trying all of the variations that I can think of in test code with no success. I've also searched the net extensively.
    What I need is a code sample IN JAVA that provides equivalent functionality to the des3encrypt and des3decrypt procedures using raw values in the obfuscation toolkit.
    We have a number of huge databases in which we would like to use the obfuscation toolkit with DES3 3-key (192-bit) keys to manage encrypting
    confidential data. We need to be able to read this data from Java applications. Those applications must be able to decrypt the values encrypted using the toolkit. We must also be able to do the reverse, encrypt data in Java, store the encrypted values, the decrypt and access the data in PL/SQL using the toolkit.
    I've searched high and low, but I cannot find sample code anywhere for performing this functionality in an equivalent fashion.
    Thanks!
    Mark Scarton
    [email protected]

    Hi Mark,
    I encountered a similar challenge, were you able to figure out the solution for this problem?
    Thanks,
    Srikanth

  • Equivalent function of DAQ_VScale in Daqmx

    Hi
    I would like to know the equivqlent function of DAQ_VScale of traditional Daq
    in Daqmx.
    My application is to measure DC volatge.
    My DAQmxReadAnalogF64() function is acquiring but,
    i am getting the data in the raw format.
    In the Daqmx  series, how is the scaling or transform data to voltage
    is taken care.
    or
    do i get the voltage directly from the DAQmxReadAnalogF64() function.
    do let me know
    regards
    rags

    Hello Rags,
    The value returned by your analog input (AI) function (such as AI_Read) is an array of integers that represents the analog to digital (A/D) conversion of your data. The DAQ_VScale and AI_VScale functions convert the integer values to an actual voltage reading (LabVIEW does the conversion automatically).
    If you look at page B-8 of the NI-DAQ Function Reference Manual, you will see that the formula is listed there. What you could do is read the raw data using DAQmx and then just apply that formula to your readings. In DAQmx the scaling is automatically taken care of for you. Are you sure you are using the DAQmxReadAnalogF64 function and not the DAQmxReadAnalogScalarF64 function?
    Also refer to What Does the DAQ_VScale Function Do?
    Best Regards,
    Raajit L
    Raajit L
    National Instruments

  • What is the equivalent function or combination of functions for the following ASYST code

    I'm translating a program from AYSYT (very old out-of-date language)to LABVIEW. Thanks to the help from you guys. I have done 99% of my work. But I still have a small question to ask for help. Dose any body know what function or combination of functions in LABVIEW is equivalent to the folowing ASYST code: 0.5 set cut off frequency MOB(array used in the program) smooth.
    After reading the ASYST MANUAL, I know "smooth" is to apply some kind window(e.g. BALCKMAN).but LABVIEW doesn't have the "smooth"function

    I got strange result after using balckman window.
    the xy-graphs of my data before and after using blackman
    window are posted here. the magnitude and the peaks all changed after using blackman window.the peaks magnitude decreased more than ten times. The original ASYST code gives only a little bit lower peak after smoothing(4.2e-6 is the highest peak before smoothing, while 3.6e-6 is the smoothed highest peak).
    Attachments:
    before_blackman_windowed.bmp ‏1747 KB
    blackman_windowed.bmp ‏1747 KB

  • What is the equivalent function of this...

    the following codes are in awt form, what are the equivalent swt form of the following function? thank you for your help
    ActionListener listener = new MenuItemActionListener(panel);
    *MenuItemActionListener(panel); is the awt
    Component parent; (Component is the awt)
    and using Color.<what_color>
    Again thank you!

    if you're planning on coming here getting the forum to re-write all your awt code in swt bit by bit, forget it. as far as I know, there's only 2 or 3 people who post here that know swt, and nobody's in the business of rewriting code on other people's behalf anyway. the swt documentation that comes with eclipse, plus the javadocs for swt, are more than good enough for you to manage this

  • Looking for struts bean:write   Equivalent function/ tag in jsf??

    Hi to all,
    I am quite new to jsf. Soi might be asking a stupid question.
    I just wanna to know is there an equivalent tag or simple scriplet that can provide the same function as strut <bean:write>?
    Thanks and regards,
    Chin Tat

    ok i am not a struts programmer but from a quick search i am assuming <bean:write> outputs in html the value of a property in your java bean?
    if this is the case then you simply use
    #{beanName.propertyName}
    i.e
    <h:outputText value="#{beanName.propertyName}"/>
    note your bean will have to be registered in you facesContext as a managed bean to do this (where beanName is the name of your managedBean)
    if bean:write doesn't do this sorry :) forget my answer

  • Char Input and kbhit() equivalent function injava

    May be its very simple question.
    But can anyone please suggest me how to get char as input from keyboard and store it into char primitive type.
    and also suggest equivalent kbhit() function in java.
    please be more elabotative so that noviece can easily get.

    j_adroit wrote:
    Please tell how to do it.This is where it gets complicated. You will have to create a JNI wrapper for kbhit() .
    I would suggest you find a different way of getting input to your program.

Maybe you are looking for

  • How can i insert picture in table

    how can i instert picture id in table table name emp emp id number(12); emp_pi blop; now how can i instert picture in that emp_pi field and how i retrive plz help me argent plz give me code here thanks

  • Google search, gmail, most web pages are suddenly much smaller - Why?

    Suddenly, almost all web pages are now smaller. I have not changed monitors or reset the resolution on my monitor. I use the "control +" but the size reverts if I move off the original page. I cannot read most of the Google search results. I am havin

  • How to split n merged waveforms coming in one AI

    I have one AI channel that Im useing to recieve n waveforms on. How would I got about splitting up these waveforms so I can look at they're indiviual attributes? They will be square waves with unique duty cycles, pulse widths, periods, and amplitudes

  • Windows 8.1 Failed capture process (0x80070BC2)

    I am running into a bit of an issue trying to capture my custom windows 8.1 machine. I am running a standard capture TS and it works on a blank version of windows, but when all the apps are installed it doesn't run correctly. In the past I have just

  • I do not have 'mailto' in my applications folder. How do I install it?

    I cannot send a link as there is no default mail setting in firefox. I have reloaded the software and checked the applications list but it does not contain the 'mailto' so I cannot adjust. I have set Thunderbird as the deafult mail in windows and thi