Write to serial port and digital port at the same time

hello,
I need to write to the digital port and the serial port at the same time. Right now I have the two vi's (to write to the serial port, write to the digital port) in the sequence structure. First I write the digital port, then write the serial port. Using the oscilloscope, the interval between these two executions is 10 ms; and I need to reduce this interval to as small as possible. I would appreciate help in any way. Thank you.

Hello;
This is a little tricky. Since the transition from one sequence to another is completely Software timed, and windows manages all tasks that are running at one given time, there isn't a method to reduce that transition time.
The most you can do is try to optimize your code so all the time expent on the transition is due only to the task management.
Hope this helps.
Filipe A.
Applications Engineer
National Instruments

Similar Messages

  • Digital input and digital output at the same time

    Hi all
    I have a PCI-6503 board. I have done 2 task that run simultaneously: the first one is port0_16 output and the second one is port2 input.
    I get sometimes (not every times...this is strange...) error-200587 saying:
    'Requested operation could not be performed, because the specified digital lines are either reserved or the device is not present in NI-DAQmx.
    It is possible that these lines are reserved by another task, the device is being used through the Traditional NI-DAQ interface, or the device is being reset. You might also get the error if the specified resource is currently in use by LabVIEW network variables bound to the DAQ Channel, or if the DAQ Channel is being used in any OPC Client software.
    If you are using these lines with another task, wait for the task to complete.  If you are using the device through the Traditional NI-DAQ interface, and you want to use it with NI-DAQmx, reset (initialize) the device using the Traditional NI-DAQ interface. If you are resetting the device, wait for the reset to finish.'
    In the attached VI i have recreated the basic structure of my real VI (the error is present even here of course...).
    How can i do?
    I want to have both digital input and digital output with the same PCI-6503 every single cycle... Is it possible?
    Please help me!!!
    Kind regards.
    I love the smell of napalm in the morning
    Attachments:
    DIO simultaneously error.vi ‏31 KB

    Hello Maverick,
    Did you have any luck with the example Raven sent you?
    In Raven's example, it properly passes the DAQmx task from one SubVI to another to avoid having to open the task again. These errors are likely to occur when you have multiple DAQmx calls in a VI that call the same task again without clearing the previously opened task. If at any given time you try to open a task that already is being used, you might receive an error "resource is reserved"... similar to your original example.
    If you are interested, here is an awesome link that gives a detailed explanation of the LabVIEW dataflow paradigm
    Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
    Thanks and good luck!
    Jordan Randall
    National Instruments Italy

  • Airtunes - Analog and Digital output at the same time?

    Howdy,
    This may seem strange to ask, but can the Airport Express output audio in digital and analog formats at the same time? Is there a strange splitter cable that could do this for me?
    I recently learned that most AV receivers with digital inputs cannot output digital sources to their analog zone 2 outputs. The usual work-around is to connect their digital sources to the receiver by both analog and digital cables.
    Mikael

    I just learned the same thing. Does connecting the digital and analog connections to your reciever work ? Did you connect them to the same source or assign different sources for each? Thanks,

  • Acquire Analog and Digital inputs at the same time with 6025E card

    I have 6025E DAQ card, all the analog channels are used
    up. There are several digital signals, such as flowmeter. Can I acquire both kinds of data at the same time with my 6025E card? Thanks for your help.

    I suggest you search the examples that ship with LV
    Digital
    Find Examples>>>Hardware Input and Output>>>Digital Input and Output>>>8255
    for doing each type of I/O seperately.
    When you have found two examples. Just try to run the two at the rate use need in your final app.
    Post follow-ups Q's here. I am not personally familiar with that deveice so I can not speak from experience.
    I would generally expect that if you sample rate is low (i.e. <10Hz) you maybe happy with the results. If you want to run faster or have the PC do something else at the same time, the timing of the signals form the DIO lines may be suspect.
    So...
    It depends.
    Trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Hello!!!I need to read some data from the serial port and processing these, at the same time I want to see the process that I am doing.

    I read the data without problems, and I see them using Waveform graph, the problem is that I want to see the real time stamps, but in the graph appears 2:00:00,000 and 01/01/04, so the date and the time is wrong !!
    Can I change this?
    I am thinking that the problem is that I have to adquire the data and the time stamps ( using Get date/time) and after, I have to represent both!!!
    Thanks!!!

    Hello,
    As you probably know a waveform is made of a beginning time (t0), a time difference between each value (dt) and an array of values (Y). Your problem is probably that you don't initialize t0. Use the Vi 'Waveform->Build a waveform' to initialize the time of the waveform.
    Hope this helps !
    Julien

  • HT201338 adaptor that accepts both VGA and ethernet cables at the same time that can be plugged into the Thunderbolt port

    I have my Apple cinema display connected to my MacBook Air via the Thunderbolt port, but I also want to connect an ethernet cable.
    Is there an adaptor that accepts both VGA and ethernet cables at the same time that can be plugged into the Thunderbolt port

    I have my Apple cinema display connected to my MacBook Air via the Thunderbolt port, but I also want to connect an ethernet cable.
    Is there an adaptor that accepts both VGA and ethernet cables at the same time that can be plugged into the Thunderbolt port

  • AirPlay Mirroring and Output via Digital Adapter at the same time

    Hello,
    Is it possible to use AirPlay Mirroring to an apple tv and the digital Adapter at the same time?
    We want to get the Screen on a beamer and a tv at the same moment.
    If this isn't possible are there any chances to get AirPlay mirroring working on two Apple TVs at the same time?
    We are using the newest iPad Air
    Greets

    Unfortunately not. One output is supported at a time. But perhaps you can use some sort of an HDMI signal splitter? I've not tried it, and perhaps it won't work at all, but you might try outputing directly to a splitter that then can be connected to both a TV and beamer.

  • How can I do to acquire and save date in the same time and in the same file when I run continual my VI without interrupti​on.

    I've attached a VI that I am using to acquire amplitude from Spectrum analyzerse. I tried to connect amplitude ouput to the VI Write Characters To File.vi and Write to Spreadsheet File.vi. Unfortunately when I run continual this VI without interruption, labview ask me many time to enter a new file name to save a new value.
    So, How can I do to aquire and save date in the same time and in the same file when I run continual my VI for example during 10 min.
    Thank you in advance.
    Regards,
    Attachments:
    HP8563E_Query_Amplitude.vi ‏37 KB

    Hi,
    Your VI does work perfectly. Unfortunately this not what I want to do. I've made error in my last comment. I am so sorry for this.
    So I explain to you again what I want to do exactly. I want to acquire amplitude along road by my vehicle. I want to use wheel signal coming from vehicle to measure distance along road. Then I acquire 1 amplitude each 60 inches from spectrum analyzer.
    I acquire from PC parallel port a coded wheel signal coming from vehicle (each period of the signal corresponds to 12 Inches). Figure attached shows the numeric signal coming from vehicle, and the corresponding values “120” and “88” that I can read from In Port vi.
    So I want to acquire 1 time amplitude from spectrum analyser each 5
    period of the signal that I am acquiring from parallel port.
    So fist I have to find how can I count the number of period from reading the values “120” and “88” that I am acquiring from In Port (I don’t know the way to count a number of period from reading values “120” and “88”).
    Here is a new algorithm.
    1) i=0 (counter: number of period)
    2) I read value from In Port
    3) If I acquire a period
    i= i+1 (another period)
    4) If i is multiple of 5 (If I read 5 period)
    acquire 1 time amplitude and write to the same
    file this amplitude and the corresponding distance
    Distance = 12*i). Remember each period of signal
    Corresponds to 12 Inches).i has to take these
    values: 5,10,15,20,25,35,40,45,50,55,60............
    5) Back to 2 if not stop.
    Thank you very much for helping me.
    Regards,
    Attachments:
    Acquire_Amplitude_00.vi ‏59 KB
    Figure_Algorithm.doc ‏26 KB

  • Problem connecting Firewire device and external HD at the same time

    Hi. I'm attempting to record digital audio through a Presonus Firepod A/D interface via a Firewire 400 to 800 cable connected to one of the Firewire 800 ports on a mid-2010 Mac Pro running Snow Leopard.
    The problem is that if I have an external HD connected to one of the other Firewire 800 ports on the computer and powered on at the same time, the connection to the Presonus Firewire device is not recognized by the Mac Pro. Not only that, performance of the Mac Pro is affected adversely and System Profiler is unable to list any Firewire devices. If I turn the external HD off, the Presonus device is recognized and listed in System Profiler and the machine runs fine. I'm able to connect two external hard drives via separate Firewire 800 ports on the Mac Pro and both drives mount w/ no problem. It's only when I try to connect one of the external HDs and the Presonus audio device at the same time that the problem occurs.
    I used this same arrangement on a PowerMac G5 running Tiger w/ no problems whatsoever. If the 400 to 800 cable is bad, I would think it wouldn't work at all, but it does when only the Presonus Firepod is connected and powered on. Any ideas?

    Have done more research and apparently this is not an uncommon problem: overloading the Firewire bus when connecting an audio device along with an additional device like an external hard drive. As I understand it now, audio signal is a bandwidth hog and the solution is to get a Firewire PCIe card which will have its own independent Firewire bus and which I'll use exclusively for my audio device.

  • Hello i hav an ipad mini and i was in the middle of the ios 8 update and i held the sleep and home button at the same time to cancel the update and now it wants me to connect to itunes i dont no how to do that can someone pleaze help me

    hello i hav an ipad mini and i was in the middle of the ios 8 update and i held the sleep and home button at the same time to cancel the update and now it wants me to connect to itunes i dont no how to do that can someone pleaze help me?

    RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.
    3. Repeat the process if necessary.

  • 10.3 and 8.1 at the same time

    I'm trying to run 10.3 and 8.1 at the same time and have had no luck so far.
    I have:
    installed 10.3 in a new directory, C:\bea103
    I'm running 8.1 in the default C:\bea
    changed the point base ports in 8.1
    changed the http/https ports in 8.1 to 8001/8002
    any ideas on what else I should do?
    I can start on or the other. When 10.3 is running 8.1 outputs the following to the console (Class paths have been chopped for length and the start command edited for legibility):
    JAVA Memory arguments: -Xms96m -Xmx256m
    WLS Start Mode=Development
    CLASSPATH=;<Cut for length>
    PATH=<Cut for length>
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    Error [2] in bind() call!
    err:: No such file or directory
    Socket transport failed to init.
    Transport dt_socket failed to initialize, rc = -1.
    ERROR: No transports initialized
    Starting WLS with line:
    C:\bea\JROCKI~1\bin\java
         -jrockit
         -Xdebug
         -Xnoagent
         -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n
         -Djava.compiler=NONE
         -Xms96m
         -Xmx256m
         -Xverify:none
         -ea
         -da:com.bea...
         -da:javelin...
         -da:weblogic...
         -Dplatform.home=C:\bea\WEBLOG~1
         -Dwls.home=C:\bea\WEBLOG~1\server
         -Dwli.home=C:\bea\WEBLOG~1\integration
         -Dlog4j.configuration=file:C:\bea\WEBLOG~1\common\lib\workshopLogCfg.xml
         -Dweblogic.management.discover=true
         -Dweblogic.ProductionModeEnabled=
         -Dejbruntime.database=pointbase44
         -Dweblogic.security.SSL.ignoreHostnameVerify=false
         -Dwlw.iterativeDev=true
         -Dwlw.testConsole=true
         -Dwlw.logErrorsToConsole=true
         -Dweblogic.Name=portalServer
         -Djava.security.policy=C:\bea\WEBLOG~1\server\lib\weblogic.policy weblogic.Server
    Error [2] in bind() call!
    err:: No such file or directory
    Socket transport failed to init.
    Transport dt_socket failed to initialize, rc = -1.
    ERROR: No transports initialized
    Stopping the Weblogic Workshop debugger...
    === Debugging ===
    This window is necessary for debugging code using WebLogic Workshop
    Debugger Stopped.
    Stopping Pointbase server...
    Pointbase server stopped.
    Here is the console output when 8.1 is running and I try and start 10.3 (edited as above):
    JAVA Memory arguments: -Xms512m -Xmx1024m -XX:CompileThreshold=8000 -XX:PermSize=256m -XX:MaxPermSize=512m -XX:MaxPermSize=160m -XX:MaxPermSize=192m
    WLS Start Mode=Development
    CLASSPATH=;<Cut for length>
    PATH=<Cut for length>
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    Cleaning up license and uid files
    Starting Autonomy with CONTENT_SEARCH_OPTION = full
    Autonomy Distributed Search Handler engine started.
    FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
    ERROR: transport error 202: bind failed: Address already in use
    ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
    JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
    Starting WLS with line:
    C:\bea103\JDK160~1\bin\java
         -client
         -Xdebug
         -Xnoagent
         -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n
         -Djava.compiler=NONE
         -Xms512m
         -Xmx1024m
         -XX:CompileThreshold=8000
         -XX:PermSize=256m
         -XX:MaxPermSize=512m
         -XX:MaxPermSize=160m
         -XX:MaxPermSize=192m
         -Xverify:none
         -da:org.apache.xmlbeans...
         -ea
         -da:com.bea...
         -da:javelin...
         -da:weblogic...
         -ea:com.bea.wli...
         -ea:com.bea.broker...
         -ea:com.bea.sbconsole...
         -Dplatform.home=C:\bea103\WLSERV~1.3
         -Dwls.home=C:\bea103\WLSERV~1.3\server
         -Dweblogic.home=C:\bea103\WLSERV~1.3\server
         -Xmx1024m
         -Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0
         -Daldsp.home=C:\bea103\odsi_10.3
         -Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl
         -Dweblogic.wsee.bind.suppressDeployErrorMessage=true
         -Dweblogic.wsee.skip.async.response=true
         -Dwcb.properties.url="file:///c|/bea103/user_projects/domains/WCB_Developer_Domain/app
         -parms/"
         -Dlog4j.configuration=file:C:\bea103\USER_P~1\domains\WCB_DE~1\apacheLog4jCfg.xml
         -Dweblogic.management.discover=true
         -Dwlw.iterativeDev=true
         -Dwlw.testConsole=true
         -Dwlw.logErrorsToConsole=true
         -Dweblogic.ext.dirs=C:\bea103\patch_wlw1030\profiles\default\sysext_manifest_classpath;C:\bea103\patch_wls1030\profiles\default\sysext_manifest_classpath;C:\bea103\patch_wlp1030\profiles\default\sysext_manifest_classpath;C:\bea103\patch_wli1030\profiles\default\sysext_manifest_classpath;C:\bea103\patch_cie670\profiles\default\sysext_manifest_classpath;C:\bea103\patch_alsb1030\profiles\default\sysext_manifest_classpath;C:\bea103\patch_aldsp1030\profiles\default\sysext_manifest_classpath;C:\bea103\wlportal_10.3\p13n\lib\system;C:\bea103\wlportal_10.3\light
         -portal\lib\system;C:\bea103\wlportal_10.3\light
         -portal\lib\system;C:\bea103\wlportal_10.3\light
         -portal\lib\system;C:\bea103\wlportal_10.3\portal\lib\system;C:\bea103\wlportal_10.3\info
         -mgmt\lib\system;C:\bea103\wlportal_10.3\analytics\lib\system;C:\bea103\wlportal_10.3\apps\lib\system;C:\bea103\wlportal_10.3\info
         -mgmt\deprecated\lib\system;C:\bea103\wlportal_10.3\content
         -mgmt\lib\system
         -Dweblogic.alternateTypesDirectory=C:\bea103\wlportal_10.3\portal\lib\security
         -Dweblogic.Name=AdminServer
         -Djava.security.policy=C:\bea103\WLSERV~1.3\server\lib\weblogic.policy weblogic.Server
    FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
    ERROR: transport error 202: bind failed: Address already in use
    ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
    JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
    Stopping PointBase server...
    PointBase server stopped.
    \Windows was unexpected at this time.
    So I'm stuck, can any one point me to some documentation or anything at all to get me moving forward on this?
    Thanks
    John

    Hi
    Did you change this 8453 to someother value for one of the domains. This looks like a Pointbase DB Debug Port. First change main pointbase db port and then change this debug port value also in setDomainEnv.cmd file.
    HTH
    Ravi Jegga

  • Unable to activate internal and external urls at the same time

    Hi,
    We have Configured EBS R12 in DMZ setup as described in Figure F-9 of metalink note 380490.1 ,Option 2.4: Using Reverse Proxy with no External Web Tier.
    refering to 726953.1 Case History: Implementing a Reverse Proxy Alone in the DMZ Configuration - R12.
    but Not able to activate internal and external urls at the same time in this configuration. Only the node where last autoconfig was run getting activated as web node.
    When trying to accees the url of the other node it gets redirected to the url (where autoconfig is last run).and for this error observed is Error Code:502 Proxy Error.The specified Secure Sockets Layer (SSL) port is not allowed.(12204).
    For both external and internal services are UP.opmn status is live no error.
    Using Apache as reverse proxy.
    EXTERNAL Reverse proxy settings:
    s_login_page http://LONWEB01.process.com:81/OA_HTML/AppsLogin
    <TIER_DB oa_var="s_isDB">NO</TIER_DB>
    <TIER_ADMIN oa_var="s_isAdmin">NO</TIER_ADMIN>
    <TIER_WEB oa_var="s_isWeb">YES</TIER_WEB>
    <TIER_FORMS oa_var="s_isForms">YES</TIER_FORMS>
    <TIER_NODE oa_var="s_isConc">NO</TIER_NODE>
    <TIER_FORMSDEV oa_var="s_isFormsDev">YES</TIER_FORMSDEV>
    <TIER_NODEDEV oa_var="s_isConcDev">NO</TIER_NODEDEV>
    <TIER_WEBDEV oa_var="s_isWebDev">YES</TIER_WEBDEV>
    INTERNAL Middle Tier settings:
    s_login_page http://stprojapp01.test.com:8005/OA_HTML/AppsLogin
    <TIER_DB oa_var="s_isDB">NO</TIER_DB>
    <TIER_ADMIN oa_var="s_isAdmin">YES</TIER_ADMIN>
    <TIER_WEB oa_var="s_isWeb">YES</TIER_WEB>
    <TIER_FORMS oa_var="s_isForms">YES</TIER_FORMS>
    <TIER_NODE oa_var="s_isConc">YES</TIER_NODE>
    <TIER_FORMSDEV oa_var="s_isFormsDev">YES</TIER_FORMSDEV>
    <TIER_NODEDEV oa_var="s_isConcDev">YES</TIER_NODEDEV>
    <TIER_WEBDEV oa_var="s_isWebDev">YES</TIER_WEBDEV>
    Are we missing anything....
    Thanks & Regards

    Hi,
    Finally it's resolved...Following is the solution thought to share in the forum:
    The configuration of the E-Business Suite environment for DMZ requires profile options hierarchy type to be set
    to SERVRESP.
    To change the profile options hierarchy type values to SERVRESP, execute the following SQL script as
    shown below:
    sqlplus / @/patch/115/sql/txkChangeProfH.sql SERVRESP
    After successfully completing the above sql script, run Autoconfig in all nodes to complete the profile options configuration.
    It's resolved after doing this..

  • My sons iPod touch stopped working, it won't charge in a docking station and the computer/itunes won't recognize it when connected.  We have tried holding the power and home button at the same time for several seconds, and the screen still stays black

    My sons iPod touch stopped working, it won't charge in a docking station and the computer/itunes won't recognize it when connected.  We have tried holding the power and home button at the same time for several seconds, and the screen still stays black.  Thanks!

    Hello skdog I possibly think your ipod touch is black because it has not charged. If your dock is broken it might just mean the dock will be broken and so might be the USB port. You should see an Apple shop nearby and hand it over and see what they can do. I hope this information works!

  • HT4437 can i play songs from my ipad to my airport express and Ihome speaker at the same time?

    can i play songs from the ipad to both the airport express and ihome speaker at the same time?

    Let's double-check your AX's settings...
    To set up AirTunes on the AirPort Express Base Station (AX), using the AirPort Admin Utility, connect your computer directly (using an Ethernet cable) to the Ethernet port of the AX, and then, try these settings:
    AirPort tab
    - Base Station Name: <whatever you wish or use the default>
    - Wireless Mode: Join an Existing Wireless Network (Wireless Client)
    - Wireless Network: <select your Belkin wireless network>
    Music tab
    - Enable AirTunes on this base station (checked)
    - Enable AirTunes over the Ethernet port (optional)
    - iTunes Speaker Name: <whatever you wish>
    - iTunes Speaker Password (optional)
    In iTunes:
    iTunes > Preferences... > Advanced > General
    - Look for remote speakers connected with AirTunes (checked)

  • Thinkpad 8 - Power and Wired Ethernet at the same time?

    Hi.  I am looking for a way to have Power and Wired Ethernet at the same time?
    I have been looking at USB 3.0 micro cables with a dual USB ports - one for power and one for ethernet (via USB adapter) - but I can't get that to work.
    Has anyone tried this?  Or found a solution to this?
    Thanks!

    Lenovo sells a y-cable for the TP8 that does this. Look here. I've not been able to find any cheaper alternatives so I just ordered one of these myself.

  • My ipad is on an infinite loop.  I used ios7 for a few days and then did updates on some of my apps. that's when the infinite loop started.  I have tried pressing the power and home button at the same time, but it doesn't work. Please help!

    my ipad is on an infinite loop.  I used ios7 for a few days and then did updates on some of my apps. that's when the infinite loop started.  I have tried pressing the power and home button at the same time, but it doesn't work. Please help!
    I even tried some hints posted for ios6 (turn off Ipad, holding home button and plugging in power cord at the same time and then releasing the home button)
    I did manage to get a different screen that shows the itunes icon and a power cord, but nothing happens.

    You were on the right track. You got the connect to iTunes screen and you ended to use iTujes to restore your iPad. Try recovery mode again.
    Recovery Mode Instructions
    Disconnect the USB cable from the iPad, but leave the other end of the cable connected to your computer's USB port.
    Turn off iPad: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for iPad to turn off.
    If you cannot turn off iPad using the slider, press and hold the Sleep/Wake and Home buttons at the same time. When the iPad turns off, release the Sleep/Wake and Home buttons.
    While pressing and holding the Home button, reconnect the USB cable to iPad. When you reconnect the USB cable, iPad should power on.
    Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears you can release the Home button.
    If necessary, open iTunes. You should see the recovery mode alert that iTunes has detected an iPad in recovery mode.
    Use iTunes to restore iPad.

Maybe you are looking for