Interruptions when I use "Write" and "Read" in the same vi.

When I use "Port Write" and "Port Read" together in the same vi and I set the output to be high level, the signal becomes oscillatory. I have read one anterior message about similar problem (using "Write to Digital Line" and "Read from Digital Line" instead of "Port Write" and "Port Read") and I proceeded as the solution suggested in the answer. However, it didn´t work.
Attached, I am sending the vi I used to test the solution.
How can I fix this problem?
Attachments:
IO.vi ‏35 KB

Hi Spencer!
The device I am using is a PCI6024-E board. I have contacted the NI Suport and now I see what I was doing wrong: in fact, I was calling a DIO Port Config.vi for each of the ports ("Port Read" and "Port "Write"), but it was done inside of a While loop (usually, most of the applications here in the lab are recursive, so it´s common for us to use big while loops for the whole program). Putting them outside (as you said, at the beginning of the program), it worked! Actually, I can´t see any reason for the program to work when the calling is outside the loop, but the important is that now it´s running properly.
Thanks a lot, Spencer!

Similar Messages

  • 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

  • Use AO and AI in the same program

    Hello,
    I like write a program to use AO and AI in the same program.
    In this program write a timer a voltage to a AO port and after then it should read a voltage.
    I know how I write voltage to a AO port and read a voltage on a AI port, but not in a the same program.
    The read- and the write-Task, should work as soon as possible (<=1ms). 
    (My timer have 100us ticks) 
    what should I inilize for the PCI6229 card, to use AO and AI and in which order?
    Can I have a example or pseudocode?
    Best regards
    Heiko Mayer 

    Hi Heiko-
    There is very little overlap between the AO and AI examples, so you should be able to piece the code together pretty easily.  I would offer these suggestions:
    1.  These lines should only be executed once, and they should be done before any AI or AO specific initialization is done:
    configureTimebase (board);
    pllReset (board);
    analogTriggerReset (board); 2.  It does not matter which order you perform the AI or AO initialization, but I would recommend waiting to unground the AO reference (by   board->AO_Calibration.writeAO_RefGround (kFalse) until all of the AI and AO init is done.  This will help to avoid any glitching on the AO lines.  The only steps that should be saved until after ungrounding the reference are the Start operations for AI and AO (depending on the AO mode you use, there may not be a specific Start operation to call.  Consult the MHDDK examples for more info about the required steps).
    Hopefully this helps-
    Tom W
    National Instruments

  • 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

  • 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

  • HT1338 How can i use my data on windows or mac when i use one of them in the same time?

    Hi,
    i have a Mac book with 2 operating system, ( Windows& mac). How can i use my data on windows or mac when i use one of them in the same time?
    Thank you

    The following article(s) may help you.
    Resolving duplicate calendars
    Resolving duplicate contacts

  • 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.

  • 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

  • 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.

  • How to use ActionListener and ItemListener in the same class

    Why can't I use both ActionListener and ItemListener in the same Class?
    I want to use a drop down list and an entry box on the same form.
    How? I'm having trouble compling......
    Thanks!
    CODE:
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Disp extends Applet implements ActionListener, ItemListener
    { TextField entry=new TextField(7);
    Button Enter=new Button("Enter");
    public void init()
    add(entry);
    add(Enter);
    entry.addActionListener(this);
    entry.requestFocus();
    Enter.addActionListener(this);
    public void actionPerformed(ActionEvent thisEvent)
    String answer=entry.getText();

    Simply get your Applet to implement both ActionListener and ItemListener.
    public class MyApplet extends Applet implements ActionListener, ItemListener
      public void init()
        itemWidget.addItemListener(this):
        actionWidget.addActionListener(this);
      public void actionPerformed(ActionEvent e)
        System.out.println("ACTION PERFORMED!");
      public void itemStateChanged(ItemEvent e)
        System.out.println("ITEM STATE CHANGED!");
    }Hope this helps.

  • 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.

  • 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 a PCI-6534 card, how does one write and read from the board simultaneously after being triggered on the StartTrig input ?

    I've copied two NI-developed VI's into a single VI. The first VI is the LV 'Buffered Pattern Input-Trig VI' under examples/daq/digital/653x. Using an external data generator, I send it a pulse on StartTrig, a clock on REQ1 and data on DIOA0. The start pulse is negative going so I set the front panel input to trigger on "falling edge" with clock set to 'external'. This VI is configured as Port 0 and Group 0. Once this VI is triggered I need to then start another VI which is simply the Buffered Pattern Output VI that also ships with LV. This VI is configured on Port 2, Group 1. This VI is used to simply send out a previously d
    efined array of data on DIO C0, C1 and C2.
    So, I receive a Start Trig, then clock in data, and then immediatly want to send out data. My problem is that I can't figure out when my receiving VI gets triggered on the StartTrig input. If I know when the trigger occurs, then I can wire this condition to a case statement and activate the second, or write VI. Without having the Trigger condition be met to enable the output VI, the problem is that it always outputs without even be triggered. So, where or how do I tap to find out when the StartTrig happens ? In other words, how do I know when the receiving VI has received a StartTrig pulse. There's got to be a way to do this, and I need to run in continious mode, so I can keep receiving and sending out data over and over again. Any ideas ? If your answer is to look at the examples, please tell me exact and specific examples, because I have not been able to find any examples directly related to my goal. thanks.
    Kirk

    Nestor-
    I tried your first suggestion of connecting ACK1 to ACK2. But, I get Error 10010 at Digital Buffer Control when I run the VI. I've added an array of 32 ones and zeros to the output VI so that I have some data to write. What's really interesting is when I have a scope probe on ACK1 and ACK2 which are now common, the voltage level is less than 5 volts, around 4.7, but there is something wrong with the signal, a few spikes, I've seen this before, like 2 signals are trying to drive the same output or something. When I remove the connection between ACK1 and ACK2 the signal looks perfect since ACK1 is being driven by my data generator. This leads me to believe that you can't connect ACK1 to ACK2, or atleast you can't do it with the way I have the VI'
    s configured. Also, I have a scope probe monitoring DIOC0 (since I'm writing to Port 2,which is Port C) and I don't see any data coming out, which makes sense since I get the error mentioned above.
    In terms of my configuration, I have 2 VI's on the block diagram. I have Buffered Pattern Input-Trig.VI with the following settings:
    Group: 0
    Device: 1
    Port List: 0
    Buffer Size: 1000
    Clk Soruce: External
    Trigger Type: Start Trigger
    Trigger Condition: Trigger off Falling Edge
    # of pretrigger points: 0
    For the 'writing VI' I copied the Buffered Pattern output-Trig.VI with the following setup:
    Device: 1
    Group: 1
    Port List: 2
    #of updates: 1000
    Clock Source: Internal
    Trigger Condition: Trigger on falling edge
    So, do you have any ideas on what might be wrong ? Just realized that I can attach files, so my VI is attached.
    thanks.
    Kirk
    Attachments:
    input_output_at_the_same_time.vi ‏164 KB

  • My i mac isnt finding my sd card when i use the slot, or when i use a card reader via the useb ports, however it works on other i macs, can anyone help?

    my i mac isnt finding my sd card, when i use the slot or even when I use usb port via card rader. I have tried on anothe r machine and it works fine. can you help?
    thanks

    First thing to check if go to Finder Menu/Preferences/General
    Make sure External disks is checked

  • 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

Maybe you are looking for

  • IPad and iPhone Syncing

    Our family has three iPhones with the latest OS4 software. I am thinking of buying an iPad and I was curious if the three iPhones can be synced with the iPad if it is installed with the latest iTunes version. My intent is to eventually migrate comple

  • Songs double up in Library

    It's as simple as this. I have an album in the library. Why is it when I double click one of those songs in the finder it re-enters itself in the Library, under the already existing song? Thanks, Steve

  • Transaction Control

    Hi all, in order to use the transaction control in SAP which Active X control needs to be checked in Visual Basic. If any one worked on Transaction control pls let me know any literature which can be useful for me. have a nice weekend. Martin.

  • Import pages in portal

    i have used the on line to gain information on how i can export and import pages and application. i have done exactly what it says although the pages nor the application is being migrated. Does any body have any idea where i can find out more on this

  • Google Chrome Users and Not Supported method

    Google Chrome users are getting the intermittent message Not Supported Method while trying to login or browser the verizon.com site. We are aware of the issue and are working towards a permanent fix to prevent this from happening in the future. I wil