DAQmx: With relaxing break pulse blocking

I have a NI 9401 module in a chassis 9171 and stand at the door of the output of a counter with the release of another counter. 1 meter (the signal to be blocked) generates a 3 Mhz signal and meter from 0 (the door) generates a 10 Hz signal that is sent outside to door pin of 1 meter. I expect this would be counter 1 door signal to produce the 3 Mhz flashes only when the counter 0 is high, but the wiring had no effect on the output of the 1 meter, it has always generated a continuous pulse train of 3 Mhz.  I found that a code is necessary to get a counter to pay attention to the signal to his door pin (this message was particularly useful) and it can be done with the node property relaxing break. After you have configured the node, however, I fell into this error:

Error-20124 occurred at DAQmx start Task.vi:2
Lines 4 to 7 of this port are configured for the entry. Cannot configure these lines for output at this time.

I'm quite puzzled by the present.  The problem seems to come try it designate 5 PFI ('CTR 1 door' on the 9401) as the source of relaxing break.  If anything, I think the error would be that lines 4-7 are configured for output, since these lines are grouped under CTR 1, which is configured as a channel of CO to generate the 3 Mhz pulse train, and the definition of line 5 as the break source changes the configuration on an entry.  Looking for this error in the forums OR and Google isn't pulling up of troubleshooting information.  I tried to create a task to configure line 5 as a separate digital input channel, but then I get the error saying (error-200125) opposite that lines 4-7 are configured for output and cannot be configured at the entrance, to make things more confusing.

Any thoughts would be appreciated.  I'm afraid I'm missing something obvious about blocking the impulses or CO channel configuration as I continue to read that one of the benefits of DAQmx on Legacy DAQ, is that it makes easier routing signal.  I'm using LabVIEW 2012 (32 bit) with DAQmx 9.5.5 installed.

Hi agoncalves,

I took a glance at your VI and I see two immediate problems:

1. it is not guaranteed that the two tasks will be reserve before the start of each one.  This explains your error and why it seems confusing.  The 9401 is configurable nibble, but you cannot change the direction while the device is being used (why the reserves are important).  The module starts with two nibbles the input value.  Your first task causes an exit so it switches direction on one of them.  When your task is committed (started), it hangs in this configuration.  The second task then also try an output drive, but on the other nibble that is entered and can not be activated because the first task is currently running.  The solution is to use the thread of the error to force the order of execution (or use a flat sequence structure).

2. you won't run out of problems with your trigger signal unless that connected you to a separate entrance (and put the two trains of pulses on the nibble even).  You can change that by setting the property of canal CO. Pulse.Term. that's if you want to spend your signal through a few circuits external and back in.  If you use the signal directly, you can just use it internally.  By example/cDAQ1Mod1/ctr0InternalOutput

Tags: NI Software

Similar Questions

  • How to generate a single Point (On-Demand) edge counting with relaxing break

    I have problem when creating a Labview program to generate a single Point (On-Demand) edge counting with relaxing break illustrated in FIGURE 1 below. I only know how to build counter edge without relaxing break and my program is illustrated in FIG. 2 and gaskets also. Should what changes I make on my program? The DAQ card that I use is 6259 PCI/USB.

    FIG1. Single edge counting with break Point (on request)

    Fig.2 my program to generate the edge without relaxing break

    It is resolved

  • How to build a single Point (On-Demand) edge counting with relaxing break

    Hi, I am building a clock as shown below. It is also called 'Single Point (On-Demand) Edge Counting with relaxing break'.

    "

    I have problem to find the code example. So far, I can only build a counter edge without a controller trigger like below. Could someone help me?


  • Multichannel relaxing break

    Hello world

    I am a beginner with LabView. I'm able to acquire several analog signal of my PCI 6221 using DAQ Assistant, but my requirement is to measure only all my entries with relaxing break for example I need to acquire data only when my example PFI10 is Hawaii. Whenever the PFI10 is Lo, the break of the measure.

    I found an example to reach the break here. However, it is only for 1 channel unfortunately. I do not understand about the flow, but I tried several times to add another channel to my purchase, but without success. Maybe my knowledge is limited and only able to start the project of the DAQ Assistant, but not this type of project.

    I tried to add another channel to DAQmx create Virtual Channel.vi but he couldn't accept two inputs. Maybe I need some kind of multiplexer?

    If the question above can be done, how do I add another measure DAQx Read.vi inside the while loop?

    Can someone tell me how to add channels (I need at least another 2 analog channels) on this vi? I think, any other user who are in the early phase like me will all benefit your respons.

    Sincere greetings,

    Hague

    Hello

    Found the solution (vi attached). But it is only from 2 channels.

    Kind regards

    Hague

  • DAQmx how to control the level of tension AO paused for a relaxing break?

    I have an application where I need to generate a waveform of a fixed frequency (~ 200 kHz) and the amplitude, but for differing them burst lengths and different lengths of time between bursts. These bursts and these delays are controlled by a line of DIO to generate the relaxing break. I also need to have the output voltage analog voltage controlled between bursts of waveform. I explored using various trigger options, the break seems to be the best solution, but I'm difficult to control the particular point of the end of the waveform during the break occurs to make sure that the break is at the same specific voltage when the wave is hidden. I try to adjust the position of the example 'Analog output Pause for the periodic Signal with regeneration on specimen' but cannot get regular tension during the break I'm after. I use a card Series DAQ. X is there a simple way to pre-set the tension that will be broadcast during the paused state when using a relaxing break? I was not able to find it in the examples or documents. I can't use the code of reference AO set example because it is a software-driven and does not fit into the model of schedule I need to generate.

    Hello

    I don't think there is a way to establish a certain level on the analog output, based on a relaxing break.  I watch using a redeclenchables task analog output and do every hour of beginning to the required voltage.

  • Sync to external trigger in conjunction with a nearest pulse frequency device fixed...

    I am writing an application running a scan frame. One axis of the scanner runs at a fixed frequency. I use a scanner high speed 5105 to get the data. The slow axis of the scanner is controlled by a servo with an analog input. I have will probably use an M-series card for analog control, but can also go with a 6713 (output only) or another Board. Fixed frequency Analyzer provides a clock line, I want to use to drive the 5105. In addition, the analog card must be synchronized in this. The entire system should be able to accept a trigger external devices, as it starts scanning at the edge of clock on next line.

    I'm not quite sure about what would be the best way to do it. External triggering from other devices will be an indeterminate pulse width, so I can not just use it as a portal for the line clock. I am reluctant to do it in software (IE via the detection of changes on a digital line) because I want to be reliable started the next clock pulse. I have taken into account things like a counter/timer with a relaxing break, but which could lead to drift between the narcotics control and frequency scanner fixed. It seems just more complex that I think it should be, and it feels like I'm missing a simple way to do it.

    Any suggestions?

    Hi cshl,.

    Good to know - the 5105 has a duty cycle of tolerance of 45-55% (mentioned on the page of the form), so that is why you cannot change clock speed from 3 to 12 MHz on-the-fly (though if you make small incremental updates over time, it would be theoretically possible).

    With the additional information in mind, you might want to try the following on the 5105:

    Use the external trigger as a trigger of departure (arm of acquisition).

    Use the line as a signal reference clock (with a position of 0 samples for reference ~ 7500 are after initiation).

    The problem with this is that you will have to re - trigger on each line - 5105 has a 2.4 rearm us time (also mentioned in the page on record).  If this is unacceptable, another way that I can think of is to use a clock to external reference in PLL internal clocks of the bezel to.  If you can provide a stable, a clock accuracy 50 ppm which is synchronized with your scanner within reach, would solve the problem of drift over time without having to re - trigger on each line (only acquire data continuously).  This clock frequency must be between 1 MHz and 20 MHz in steps of 1 MHz.

    We have no Council can take in an external variable clock up to 12 MHz (on-the-fly), but if you wanted to compromise a little bit the 6115 can enjoy up to 10 MHz, and has no obligation to cycle to 45-55% so it's maybe interesting look in.

    As far as AO goes, I assumed that the clock line is declared after the quick scanner has completed his turnaround (ideally you do not update the zone of OCCUPATION during the lead time).  If you have a signal Analyzer that you can use instead probably easier.  If not, our peripheral series M and X series (but not the series AO 67xx) offer reference clock feature so if you go with the idea of reference mentioned above clock it may be easier to simply PLL the clocks together.  These cards in a PXI chassis or are they PCI form factor?

    I don't know what you mean by the sticking point about the need for two triggers.  I think the idea is that we use the external trigger to arm the 5105 and clock line to trigger each record.  However, if you do not need to generate a pulse double based on the clock of your line then you can use counters to do (our counters are redeclenchables with time to rearm in the ns range).

    Best regards

    John

  • LUN iSCSI with 4096 bytes logical block cannot be formatted

    Anyone using Freenas to disseminate to ESXi 5.1 iSCSI LUNS?

    Can you use LUNS which are presented with 4 096 blocksize bytes?

    Here a Lun iSCSI with 4096 bytes logical block cannot be formatted with a VMFS volume
    Same logical unit number presented with works by 512 bytes

    I have enclosed two copies, one before that I did anything and the second after that I tried to add the data store.

    So I first created the LUN and presented to the host;

    You get a nice warning;

    I see this new LUN;

    Pending;

    If you wait long enough;

    In the next step, it breaks;

  • In v31.0, I can view is more 'raw' XML files with line breaks and ' < ' and ' / > ' characters. Is there a setting that will give me this option?

    Until a few days ago when I opened a file XML with Firefox, I see the content of the file appears with line breaks and ' < ' and ' / > ' and elements. Like this:

    fixed image in < typeOfResource > < / typeOfResource >

     <genre authority="marcgt">picture</genre>
     <genre authority="nmc">Print, Photographic</genre>
     <originInfo>
       <dateIssued encoding="marc">1884</dateIssued>
       <dateIssued encoding="marc">1884</dateIssued>
       <issuance>monographic</issuance>
     </originInfo>
     <language>
    

    Now, it will display like this:

     still image picture Print, Photographic 1884 1884 monographic eng electronic
    

    No tags or line breaks. I need to see the entire XML file. How can I configure FireFox to display this for me? One of my colleagues uses v31.0 and XML views with tags and the line breaks for him.

    For example, I was looking at files sitemap.xml (search Google for inurl:sitemap.xml). For those who have not declared a style sheet, you should always see the classic "source highlight: presentation

    Example: http://www.website.com/sitemap.xml

    Are the files that don't appear as similar planned by not declaring a style sheet?

    As a temporary workaround, you can view the source to see the original. Either:

    • CTRL + u
    • Right click > view Page Source
  • Redeclenchee HW with line Enable Pulse Train

    I am using the 'Multi-multifunction-Ctr Retrigg Train generation of impulses for the Clock.vi sample' in the Finder for example LabVIEW to sample a waveform. It worked great, but now I need to sync my purchase with another piece of equipment. The material defines a "Enable" high TTL line when it is ready to acquire and I need to start my purchase at the pulse of available next synchronization. The option "Activate" is low and I have to stop acquiring after than the gust / the current image is complete. I tried to use a line of 'Pause' and a 'Digital Plan' trigger but doesn't seem to work with a finite pulse train. Since it kinda is diffficult to explain in the text, I have attached a waveform.

    Any suggestions? I use an inLabVIEW DAQPad 6016 8.5.

    I would treat differently the digital. If you watch the digital parallel and just read single points, then you will have a quick way to signal to the loop to HAVE the enable option has been low. I added an untested VI which should give you the idea. There is probably a better way to manage stopping both loops, I just did a quick and dirty method. After watching your VI it dawned on me that you could build a machine of the State where he's just looking for available samples then actually starts reading, and once there are no samples available after a certain period of time you would stop. You would still need the door AND but would not need to worry monitors the enable line. This would be probably as fast that monitors the line to activate it if.

    For a door AND every door TTL AND must accept a 5 V power supply. If I remember just a 74LS08 should work - if you only need the one you may be able to get a free sample.

    see you soon,

    Andrew S

  • As a router WRT54GS cascading with IP fixed address block

    Hello

    I read several threads on the routers in cascade and the Knowledge Base, but none seems to fix my script with a router with fixed IP address block.

    My current setup is an ADSL circuit with a block of 8 fixed IP addresses. Of them the first xx.xx.xx.137 is assigned to interface the router, the second xx.xx.xx.138 for the router itself WAN xx.xx.xx.139/140/141/142/143 leaving as usable IP addresses. Connected to the ADSL circuit is that a D-Link DSL-G604T router with NAT disabled to allow IP addresses to be assigned to my web servers and ftp. Of course, DHCP is disabled on the LAN interface.

    Unfortunately, the transmitter wireless on this router is defective so I would my Linksys WRT54GS (Firmware v1.50.6) D-Link router cascade so that I can use it (with active DHCP) as a point of access for multiple wireless devices.

    This thought through to logically I've named WAN 54GS with one of the xx.xx.xx.140 to static IP address available, a subnet mask 255.255.255.248 and the door entry xx.xx.xx.138. I left the LAN settings like the beach 192.168.1.xxx and DHCP active. I then connected the interface WAN of the 54GS to one of the LAN connections on the D-Link with a straight ethernet cable.

    I can connect to the admin 54GS via a direct ethernet connection and wireless interface but not to the internet.

    I can ping that is the xx.xx.xx.140 of the interface wan of the 54GS since a laptop computer connected wireless but not the IP address of the gateway of the network xx.xx.xx.138. D-Link router.

    Am I missing some other settings in the router. Especially in the routing section advanced? I guess that the device must be set to a router rather than the bridge, but if there are parameters of dynamic routing?

    Any help would be appreciated

    Thanks Brickmonkey,

    Just thought I would update this post. I tried from you suggestions, but to no avail. The frustration I did a hard reset of the router D-Link and set it up again from scratch and... Hey presto it now works.

    I can only think that there may have been some settings left from when the router has been initially implemented for Nat and I had configured port forwarding. In any case it now works OK then thank you very much for your answer.

    Fozzie

  • Muse CSS output with line breaks?

    Is it possible to go back to the way Adobe Muse written CSS in how it used to, with line breaks and not one long stream?

    I use Muse to build quickly to the HTML and elements CSS that I take in a custom CMS that I built for my client basically build, modify and maintains its Web site. It works really well, but now I've upgraded to a newer version of Muse the CSS seems to appear as a constant stream no line breaks. I guess this is to draw down the size of the file, but it is extremely difficult to isolate and alter some elements. Y at - it an option to export the CSS with line breaks?

    {{I could use a search and replace in a code editor to replace the} to} \n, but I like Adobe Media and it doesn't support \n apparently.

    Thanks in advance

    A

    Disable this

  • Button - ranging from relaxing break time

    Captivate 8.0.1.242 - Windows 7 64 bit - format swf


    I add a button that runs a term action advanced exactly like this post (CP8 - add a replay on a slide button for). I have a 1 minute video CPVC. Now, I want this to exist always replay button, but not pause the slide. I have other buttons on the slide that takes care of pause before dragging the output. But this BACK button comes with a break. Anyway, like any other button, I'm trying to move the break in the timeline using the mouse slip and fall at the end of the timeline around 59 seconds. But whenever I drag beyond the current view threshold line time including 17 seconds when captivate is maxed out, the break dates back to about 3 or 4 seconds in the timeline panel. It's so weird. I don't even need this break and if I try at least to go beyond the length of the video, I am facing this problem.

    problem.PNG

    CP8 stupid Newbie UI! The suspension and the duration are more in the properties panel, but in this Panel of timing:

    I never use the Newbie UI where everything is controlled by CP (I don't like be). Maybe you will see it in the docking station right when you select the button? Or he must go to the window menu, and then select properties for synchronization?

  • Replace the hyphen with line break

    Hello
    In my application, I want to replace the hyphen with line break
    . I use APEX4.0
    I use the following javascript code:

    < html >
    < script type = "text/javascript" >
    function test().
    {
    var visitorName = "< br / > ';
    var myOldString = "& P2_SI.";
    var myNewString = myOldString.replace (/-/ g, visitorName);
    }
    < /script >
    < / html >

    I have no idea how the get executed and make javascript work... can anyone help?

    Suzi,

    I changed the code for page 1:
    I don't know that is what you want, but it works :)
    That's what I did

    1. deleted tags
    2 P1_RESULTS element created to keep results
    3. $x_Value ("P1_RESULTS", myNewString) occasion; to fill a new element

    You cannot set the value P1_S2I in dynamic Action (onchange) - it looks like the code calls herself and kills the browser

    Lev

    Published by: the on August 27, 2010 11:49

    Published by: the on August 27, 2010 11:53

  • In the drop-down list and cfif len CFIF not can you help me to break this block of code

    can you help me to break this block of code. sense

    < table >
    < b >
    Type of device < td > < table >
    < td >
    < SELECT name = "Hardware" size = "1" >

    < OPTION Value = 'EL' > please select < / OPTION >
    < OPTION Value = 'Ca' < cfif material is 'Ca' > selected < / cfif > > Cell < / OPTION >
    < OPTION Value = 'EL' < cfif material is 'EL' > selected < / cfif > > Email only < / OPTION >
    < OPTION Value = "pE" < cfif material is "PE" > selected < / cfif > > Pager < / OPTION >

    < / select > <!-->
    < table >
    < /tr >

    What is the cfif for. for example
    < cfif material is 'Ca' > selected < / cfif >?


    -----------
    What does this block of code?


    < b >
    Cell < td > < table >
    < td > < cfoutput >
    < cfif NOT len (trim (Dev_email)) > < cfset Dev_email = "@verizon.com ' > < / cfif >
    < input type = "Text" name = "Dev_email" value = "" #Dev_email # "size ="40"maxlength ="40"> < table >"
    < td >
    < b > < police = "Verdana, Arial, Helvetica, sans-serif" size = "2" > WorkEmail < / police > < / b > < br >
    < cfif not len (trim (D_email)) > < cfset D_email = "@meekeedees.com" > < / cfif >
    < input type = "text" name = "D_email" Value = "" #D_email # "size ="40"> < br > < br >"
    < / cfoutput >
    < table >
    < /tr >

    What is the cfif for. for example
    selected?

    If the variable material has the value 'Ca', this option is selected when you load the page.

    What does this block of code?


    Cell

    If the dev_email variable is an empty string, it gets the value "@verizon.com.

  • binary file with line break

    Hello

    Today, I need to import data from a binary file / mixed text. The structure is

    CH1 octet1 Ch1 Ch2 Ch2 octet2 CrLf octet1 octet2

    CH1 octet1 Ch1 Ch2 Ch2 octet2 CrLf octet1 octet2

    CH1 octet1 Ch1 Ch2 Ch2 octet2 CrLf octet1 octet2

    My first attempt was a DataPluginExample3.VBS updated the

    Void ReadStore (File)

    Sun block: SetBlock = File.GetBinaryBlock)

    Dim Channel1: Set channel 1 = Block.Channels.Add ("Low-Timer", eU16)

    Canal2 Dim: Set Canal2 = Block.Channels.Add ("High-Timer", Ue16)

    Dim canal3: Canal3 Set = Block.Channels.Add ("CrLf", Ue16)

    Dim ChannelGroup: Set ChannelGroup = Root.Channelgroups.Add ("ESR_Timing")

    ChannelGroup.Channels.AddDirectAccessChannel (Channel1)

    ChannelGroup.Channels.AddDirectAccessChannel (Channel2)

    ChannelGroup.Channels.AddDirectAccessChannel (Channel3)
    "(Kanal 3 ist nur $OD$ OA CrLf)"

    End Sub

    Unfortunately, each odd sample, the data are corrupted and then become misaligned. And the beginning of data entry does not exactly start a new line.

    So I would use the CrLF to re-sync.

    How can I mix the approach of the ASCII-readline with binary data?

    The following does not work: I try to tell the trainer to use vbNewLine (= CrLf = $0D $0) to separate lines and use the channels of direct access with the data type of U16. But when you use the line break, apparently the import filter also expects the delimiters instead of raw binary values.

    Void ReadStore (File)

    File.Formatter.LineFeeds = vbNewLine

    File.SkipLine () ' Sicherstellen, dass erste wird ignoriert line unvollstandige

    Sun block: SetBlock = File.GetStringBlock()

    Dim Channel1: Set channel 1 = Block.Channels.Add ("Low-Timer", eU16)

    Canal2 Dim: Set Canal2 = Block.Channels.Add ("High-Timer", Ue16)

    ' Dim canal3: canal3 Set = Block.Channels.Add ("CrLf", Ue16)

    Dim ChannelGroup: Set ChannelGroup = Root.Channelgroups.Add ("ESR_Timing")

    ChannelGroup.Channels.AddDirectAccessChannel (Channel1)

    ChannelGroup.Channels.AddDirectAccessChannel (Channel2)

    End Sub

    Thank you for your comments.

    Michael

    Hi Michael,

    I think this use made the rounds.  I had to ignore all partial to the first row of values in order to keep the correspondence of the line of the high and low timer values.  Also note that by default the U16s are read with LittleEndian byte order - you can change that with File.Formatter.ByteOrder = eBigEndian.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

Maybe you are looking for