Using counter and output at the same time

Hi all,
I'm using a NI 9401 high speed digital IO module (with a cDAQ 9174 chassis) that has 8 digital IO channels, to perform two tasks at once in Labview. I can get both of them to work independantly, but when I put them together to run simultaniousy in parallel, it does not work. My two tasks are simple: 1. Generate a continious pulse train square wave output using one of the counters linked to one of the output channels (PFI7) and 2. Output a 'high' (5V) with one of the other channels (PFI1)  when a certain logic condition is met.
When I run my code (attached), the pulse train output works, but the output on the other channel doesn't work when the logic condition is met. I should note that the logic condition is that when RMS current exceeds 3A, I want to output a 'true'. I am measuring current using another analog input card connected to the same chassis and this part is all working well. I think the problem is that there is some sort of interference between the pulse train output which is linked to PFI7 and the other output which is PFI1.
I know there is a limitation with the 9401 card that if the channels are in two groups, 0-3 and 4-7, and you must use a whole group as either all inputs or all outputs, but I don't think this should affect me, as I am using both my channels as outputs anyway, plus I am using channels 1 and 7 anyway.
If anybody has any ideas as to what could be wrong with my code, I would greatly appreciate it.
Attachments:
DSDBI Vegetation testing program.vi ‏115 KB

OK, you've shot yourself in the foot.
It is a very bad idea to modify the shipping examples.  Like testing bungee cords by juming off a cliff-  sometimes you only get to try it once.
Now why on earth did you not add the DI code following the example's method of wiring the error chain and closing the task after the loop?  You have duplicated code in both cases of your case structure the only difference.........(wait for it..........) There is a true constant in the true case where the false case contains a false constant.  A wait for task complete is unnecessary for a 1 sample DI task-  really the write just completes and the task stops all by itself.  the only needed thing here is a DI Write 1 Ch 1 Sample no case structure, and wire the compare output to data to write.
You should probably add a control task vi with a "Reserve" input prior to each start task on the CO and  AI Tasks and after the Create Task on the DO.  Its a bit technical but the result is like taking vitamins- you'll just get better performance.
Jeff

Similar Messages

  • My Ipad mini does not see my printer. my wife's ipad2 does. We both use IOS8 and upgraded at the same time. How can I remedy this?

    My Ipad mini does not see my printer. my wife's ipad2 does. We both use IOS8 and upgraded at the same time. How can I remedy this?

    OK great info!
    I found 2 possible ethernet to USB adapters:
    By "Plugable":  USB 2.0 to ethernet LAN wired network adapter - seems this will work, but I'll contact Plugable.
    2. Apple USB Ethernet Adapter
    Easily connect your MacBook Air computer to an Ethernet network with the Apple USB Ethernet Adapter. Small and light, it connects to the USB 2.0 port of your MacBook Air and provides an RJ-45 connector that supports 10/100BASE-T performance.  BUT NOT SURE IF THIS WILL WORK ON ANYTHING BUT a MacBook Air…
    One person commented: 
    This little gem used to be the device of choice for adding a second Ethernet interface to a Mac Mini Server and I'd been using one that way for about a year. After doing a software update to 10.6.6 it stopped working. Forewarned is forearmed – it appears that Apple is finally enforcing the MacBook Air system requirement.
    Thanks for any additional comments.
    Best regards,
    Steve Schulte
    Sunday 6 January 2013

  • I cannot use data and voice at the same time.

    I cannot use data and voice at the same time.
    I am on Wifi (connected) and at the same time I am on a voice call. when I switch to my RSS feed reader it does not sync it comes out with a message cannot connect to internet, I thought it is a problem with the feed reader application, IE 10 behaves the same I cannot browse when I am on a voice call.
    This is a very basic issue, am I missing something? Please help.
    My Model is lumia 820 with the latest portico update.
    TIA
    Sandeep

    I am aware that packet data via EDGE and voice cannot happen at the same time, surprisingly when I am on voice call I cannot connect to internet via Wifi too

  • Can we use exceptions and conditions at the same time?

    can we use exceptions and conditions at the same time? Are there any dependencies between exceptions an conditions?

    Exceptions are used when there are some mistakes , or exceeds the supposed values, we can highligt that in different colours for enabling the validator to notice easily. In this we are giving conditions for considering the value as exceptions. suppose, if the values is out of the range -1 to +1 then exception.
    But conditions can be considered as the restrictions given in measure level also. So please elaborate what you meant by conditions

  • How to get the sine wave sample of the input and output in the same time?

    I discovered that the samples were acquired did not in the same time in my vi.Could you tell me how to get the sine wave sample of the input and output in the same time?
    Output:9263;
    Input:9201
    Attachments:
    singal requency.vi ‏104 KB

    Hello Yun_Zhu,
    Your VI looks like you started from an example, and you are on the right track. 
    To clarify are you trying to synchronize the input and the output waveforms?  If you you will need to share a time base and a start trigger.  Check out the synchronization examples from LabVIEW
    Anthony F.
    Product Marketing Engineer
    National Instruments
    Attachments:
    HIODAQmxSyncMultiDev.png ‏70 KB

  • My SB Audigy 2 card can't use headset and musicamplifier at the same time

    Hi, i just bought a SB Audigy 2 [D400] and i have downloaded drivers and programs. I run Windows XP SP2.
    The soundcard works fine but it is very very annoying that i physically have to change the jack in the green=line out jack from headset to musicamplifier when i want to use my musicamplifier and change back the jack in the green=line out from musicamplifier to headset when i just want to use the headset/headphones .
    In the shop they told my that i can connect both amplifier and headset at the same time and then with creative software control whether there is sound in the headset or in the amplifier. But i can't simple get it work.
    I tried to use the green to the amplifier and the headset/speakers in the black (line out 2) and then with creative speaker settings softeware choose headphones but still the ampliefier receive the sound and no sound in the headphones. Why? In fact no matter what configuration i try the headphones doesn't work.
    But if i change the jacks so headset is in the green line out then only headset is working and the amplifier doesn't work no matter i put it in sort=line out 2 jack or orange=line out 3 jack.
    Can somebody here tell me if it is possible or not to connect both headset and external amplifier and control by software which to play? and how?
    please help, thx.
    Michael

    If you can have an ASIO compatible music playing system, then it might be possible to have system like you wish when using Creative Audigy 2 card. Since ASIO bypasses Windows Audio System, you can use both 'drivers' (ASIO - WDM/MME/DS) side by side.
    Say you want to play a game (using headset /w mic) and someone other like to listen music at the same time. With ASIO capable system you can output your music for example to "center L/R (stereo) channels" and same time output sounds from other source (using MME/DS/WDM drivers) to normal output channel (Front L/R). Only thing is, you need to set your speakersystem to 4 or 6 (depending which other channel you're using) (and for better 'balance' to adjust "angle" on THX console. You get the THX console by installing Audigy 2 Zs software).
    Try for example http://img332.imageshack.us/img332/463/djs9mo.jpg[/img] width="406" alt="Image Hosted by ImageShack.us" >
    Another option:
    Say you want to play music through external amplifier and play game online with your headset + microphone (eg. others but you listen the music, you play games)
    --> try free http://img332.imageshack.us/img332/4589/tbp7rz.jpg[/img] width="406" alt="Image Hosted by ImageShack.us" >
    If you use ASIO on BeatPort Player you can select L/R individually from the list(s). Same rules as described earlier.
    = You can play from 2 different sources simultaoneusly (ASIO + WDM/MME/DS) to two different outputs without disturbance. The other (WDM/MME/DS) source is set 'automatically' output to (Audigy) "green" port, and the other (ASIO) to "black" or "orange" port (as set).
    .jtpMessage Edited by jutapa on 09-5-2005 05:30 AM

  • Ipod nano (5th generation) - want to use headphones and charge at the same time

    I have an ipod nano (5th generation).  Do I need a special set of headphones to use the headphone jack and charge the ipod at the same time?

    The iPod nanos have a 30 pin dock connector and a headphone jack. When you charge the iPod you use the dock connector therefore you can use and charge at the same time. You cannot use and charge the iPod shuffle at the same time. You might have the two mixed up.

  • Can WRT54G use WPA and WEP at the same time?

    I used to have a smc 802.11b wireless router and a dlink 802.11b wireless print server.
    In order to have WPA and a firewall, I replaced the wireless router with a linksys WRT54G.
    Then I realize the dlink print server, even though it has the "g" keyword in the model name, does not do WPA (DP-G321).
    Do I have to buy a 802.11g wireless print server? Or is there another solution?
    I don't supposed the linksys router can do both WPA and WEP at the same time?
    Connecting the print server to the router with a cable is not feasible. They are on different floors.

    both of your devices are has a wireless b technology settings, just set a wep encryption on your network rather than wpa because some wireless b devices don;t work with wpa. with regards to your query if wep and wpa can be used at the same time, the answer is no.

  • I have an iPad 2 (wifi 3G). Is it correct to use wifi and 3G at the same time ? Or one at time depending on connectivity? Thanks.

    I have an iPad 2 (Wifi + 3G). Is it correct to use the Wifi and 3G at the same time, or one at a time, depending on connectivity? Thanks in advance.

    Your iPad will use wifi first if available. If wifi is not available, it will use 3G.
     Cheers, Tom

  • Using LIKE and IN at the same time

    Is it possible to use both LIKE and IN at the same time such as:
    select first_name from emp where user_id LIKE IN('1%','2%')
    Thanks in advance
    --Joshua                                                                                                                                                                                                                                                                                                                                   

    Or consider the IN - parameters as a string. Then you can do the following:
    SQL> SELECT ename
      FROM emp
    WHERE EXISTS (
              SELECT NULL
                FROM (SELECT RTRIM (SUBSTR (nums,
                                            INSTR (nums, ',', 1, iter.pos) + 1,
                                              INSTR (nums, ',', 1, iter.pos + 1)
                                            - INSTR (nums, ',', 1, iter.pos)
                                   ) nums
                        FROM (SELECT ',' || 'SCO,BLA,CLA' || ',' nums
                                FROM DUAL) csv,
                             (SELECT ROWNUM pos
                                FROM all_objects
                               WHERE ROWNUM < 50) iter
                       WHERE iter.pos <=
                                  (  (  LENGTH (csv.nums)
                                      - LENGTH (REPLACE (csv.nums, ','))
                                   / LENGTH (',')
                                - 1)
               WHERE ename LIKE '%' || nums || '%')
    ENAME    
    BLAKE    
    CLARK    
    SCOTT    
    3 rows selected.

  • CFP-DIO-550 open multiple input and output at the same time

    I am trying to read and write at different times with the cFP-DIO-550.  I cant figure out how to read all the inputs at the same time.
    In the Create Tag.vi, I cant figure what to wire to the Item Name input.  I have tried Input 0, and that works, but it is only one input, I need to read all 8.  I have also tried Input All, All, Input 0:8. input 0-8, input 0: Input 8, Input 0 - Input 8, and I always get an error.
    I cant find anything on it in the manual.
    Thanks,
    Kenny

    Normally I would select 'All' using a FP IO point function instead of create tag ( LV 7.0 and up ).   I have noticed that the 'All' is only available if the module is all inputs or all outputs.  It may be that since your module is an IO, 'All' is not available by default. 
    I think you need to create an item in MAX in the Data Neighborhood under the DIO-550 Module and configure it to use all the IO on the module.

  • Use headset and Mic at the same time

    The latest MacBook Pro does not come with Mic port. How can I use my professional Mic for audio recording and my editor can listen the recording through headset at the same time.

    Oh, but the Retina was irresistible....  The regulars have digital and analog audio input and output.
    So, ample pocketed Mac users get to choose between audio input/output adapters that plug into the USB or the Thunderbolt ports.

  • Audio input and output at the same time

    Hello mac users.
    I have one simple question: since the new macbook has one single audio port for both input and output, how could I, for example, play my guitar AND listen to the headphones at the same time?
    I KNOW (because I've tried) that with the iPhone headphones with microphone the port CAN physically work at the same time for input and output, so the question is: what can I use to do that? Will a simple splitter do or do I have to use different tricks?
    (I know there is a thread on this already, but it doesn't provide a definitive answer)
    Thank you!

    One of the first questions to ask...
    Is the audio input stereo or mono?
    When using a headset mic you're dealing with a mono input so you at least know the Mac is capable of that.
    If it's mono, and I suspect it is, should be easy to either make or purchase a custom cable that has two female input connectors, one mono input and a stereo headphone input.
    However, I'd probably just purchase a USB audio interface, the sound, both recording and playback will be head and shoulders above the Macbooks built in internal audio.
    pancenter-

  • Can we use CS6 and CC at the same time on different machines?

    We have a Creative Cloud subscription and have software downloaded to an iMac and also to a PC. I understand that we can't use the applications on both machines at the same time, but could one of my colleagues use the CS6 versions at the same time on the PC?

    Hi Carol
    A subscription to Creative Cloud gives you access to the CC version and the CS6 version of the software.  From the original question, it seemed to me that they were asking if they can share the subscription between 2 colleagues if one used the CC version and the other used the CS6 version.  That is not permitted as the subscription is licensed to one user.
    If you have a Creative Cloud subscription and a perpetual license for CS6 then you can use them concurrently on 2 machines as they are separate licenses.
    Does this help clarify?
    Thanks
    Bev

  • Using gps and phone at the same time

    I am using the S6, great phone however I noticed today that I cannot use GPS (Waze app) and be on the phone at the same time.
    Is this really the case or am I missing something? I previously had the Galaxy S3 and I did not have an issue with this.
    Please tell me this is just a setting issue not an issue with the phone.
    Thank you

    This is standard for iPhone 5S on Verizon or Sprint (CDMA) carriers.  iPhone 6 can do simultaneous voice and data on Verizon, but not 5S. 

Maybe you are looking for

  • BRtools table space creation error

    hi, Iam trying to create new table space in my R/3 system. When i went to brtools - space management sytem throwing error owner failed.I tried with all users to login like ( <SID>adm,administrator etc ...)even then same problem.Could you please sugge

  • Module compiles but no .swf produced

    I am using Flash Builder 4.5. One of the modules that compiles without error is still not being bound into the runtime image (in this case debug). There are no compiler errors (auto build is switched ON) but a swf file is not being generated. I  have

  • Acrobat Reader Permissions

    There are several people in my organization that receive an email with 2 pdf attachments. Two of these people are not able to open one of the pdf's. When they try they get the following error: "Cannot create file: (filename). Right-click the folder y

  • Can't Upgrade to Camera Raw 6.3 in LR 3.3

    I can't upgrade to Camera Raw 6.3 because - althought I run Lightroom 3.3 - I'm only running the CS4 version of Photoshop. This means that Lightroom won't process my Canon S95 RAW files. Have I misunderstood something? By the way, I KNOW I can use Ca

  • Photoshop CS5 UI - Minor File Menu Timing Irritation

    Photoshop CS5 on Windows 7: I've noticed that for a brief period after starting Photoshop the main menus become clickable, but most or all of the submenus are grayed out (disabled).  For example: 1.  Start Photoshop. 2.  As soon as you see the UI, cl