Digital & Analog output at the same time

Good day.
I have thought about buying speakers that require Toslink (digital). But I also have speakers which can be plugged into an analog (3.5mm). I have all the sockets on the motherboard required but I do not know if I will be able to play audio from all speakers simultaneously.
My motherboard: MSI Z77-s01.
I'm running Windows 7.

My recommendation is that you need some training. You didn't mention what you native tongue is, but if yoiu don't feel comfortable in English you should check online or with your local NI office for tutorials. In terms of the code you posted, the logic is seems to be manipulating the individual digital io lines to step the motor. This will work, but you need to get rid of the express VIs, in this situation they are very inefficient and may have bad side effects. 
First rather than manipulating 4 individual bits, modify the code so you are working with one 4-bit port. This change will be more efficient and make it easier for you to identify logical errors in your stepping logic. What you want to do is initialize the DAQ one time outside the loop, manipulate the port outputs as needed inside the loop and then close the DAQ task when the loop finishes.
How fast are you needing to step this motor? A PC will limit your speed and is very nondeterministic in terms of response time.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

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

  • How do I set upmy Imac to allow using both my computer speakers and a Bose SoundLink system as outputs at the same time.  I can use one or the other, but not both.

    how do I set up my Imac to allow using both my computer speakers and a Bose SoundLink system as outputs at the same time.  I can use one or the other, but not both.  From systems Preferences I must select one or the other.  I want both to work all the time.

    Hi,
    I would recommend you to use 0FI_AP_4 rather using both, particularly for many reasons -
    1. DS: 0FI_AP_4  replaces DataSource 0FI_AP_3 and still uses the same extraction structure. For more details refer to the OSS note 410797.
    2. You can run the 0FI_AP_4 independent of any other FI datasources like 0FI_AR_4 and 0FI_GL_4 or even 0FI_GL_14. For more details refer to the OSS note: 551044.
    3. Map the 0FI_AP_4 to DSO: 0FIAP_O03 (or create a Z one as per your requirement).
    4. Load the same to a InfoCube (0FIAP_C03).
    Hope this helps.
    Thanks.
    Nazeer

  • 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

  • Using internal Speakers and optical Output at the same time ?

    Hello,
    is it now possible to use the internal Speakers and optical Output at the same time ?
    Is this a software or hardware limitation ?
    Every day im disconnecting the optical output. It can't be good for the contacts. I wont spend over 100 euros buying an external soundcard to solve this problem.
    Any Ideas ?
    Thanks ? best regards
    mc
    IMAC 24 Intel   Mac OS X (10.4.8)  

    New Discussions ReponsesThe new system for discussions asks that after you mark your question as Solved. You should take the time to mark any posts that have aided you with the tag and the post that provided your answer with the tag. This not only gives points to the posters, but points anyone searching for answers to similar problems to the proper posts.
    Alternatively, you can change the status to Answered.
    If we use the forums properly they will work well...

  • How to input/output a digital signal and acquire an analog signal at the same time?

    Dasylab, version: 8.0.04
    Acquirement Card: PCI1002L
    When I use DasyLab to acquire the analog signals is no problem without digital inputs and outputs,
    and when I use DasyLab to input or output a digital signal is no problem also, but when I do that at the
     same time, DasyLab tell me the rate is too high and stop.
    so, I searched the manual book1 (user guide) for that, it showed me :
    To internally equalize measurement time and system time in the analog input, digital input and counter
    hardware modules, use the following settings:
       Synchronization: PC Clock
       Sampling rate: <= 5Hz
       Block size: =1
    the problem is, if I set the Sampling rate to 5Hz, the speed of the acquirement datas is not enough for my
    application.
    so, how to improve it? who can give me a example programm for me. thanks!
    by the way, I come from China, my English isn't good, I'm sorry.
    Allen, China.

    Hi,
    Have things changed over the years?
    I need to syncronise a digital output (Modul NI9474) and an analoge input (AI-Modul NI9203) module. I need to measure time intervals from a flank in signal A to a flank in signal B. I would like accuracies of the order of 1 ms. Currently, the signals are not synchronised, with errors of the order of 2 times the block length (block size x sample rate), sometimes much higher. The best I got so far was a block size of around 20 with a sample rate of 1 kHz.
    If I use the master and slave settings on the RTSL settings, my program doesn't run properly.
    If I use digital signals for input and output, I can syncronise them with RTSL settings and everything is good, but I can't always do that.
    Also, if I do anything in the GUI (such as scrollowing something or going to another window), my output gets screwed up properly.
    1. What can be done to synchronise AI with DO?
    2. Is there something that can be done to avoid messing up the output when something happens in the user interface? (I know that I am messing up the outputs as they make some valves switch and that is loud).
    Thanks in advance!

  • 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

  • Can I generate pulse trains on more than one counter output at the same time?

    I have a PCI 6601 card with a BNC 2121 to connect the signals to two devices. The card is used as a trigger for both devices and I want to be able to generate pulse trains on two output channels at the same time, with a time delay between the two. How do I do that in Labview 7.1 Development with DAQmx?

    I feel foolish for not being able to figure this out, but it still doesn't work. Attached is the VI I use now. Counter 0 generates a finite pulse train and I programmed Counter 1 to generate a retriggerable single pulse triggered by CtrOinternaloutput. I still get the same error message: -50103 The specified resource is reserved. The operation could not be completed as specified.
    The same happens if I set the trigger for counter 1 at PFI36 (default output of counter 0) or any other PFI line. If I try a pulse train generation on only one of the counters, both work fine.
    If I try the example in traditional DAQ for multiple counter outputs with phase delay, it works fine.
    Can you tell me what I'm doing wrong?
    Attachments:
    Shutter_AND_lamp_trigger.vi ‏103 KB

  • How do I synchroniz​e my instrument​s output at the same time?

    Hello:
    I am using Labview to control a New Era Pump Systems automatic syringe pump and to record diameter measurements from a LaserMike optical comparator. My program is fully functional, the code is attached with all auxilliary files in the NE-50X folder. I mostly understand my program, I used drivers for the NE-50X pump found on the NI website to build my code and added to it as needed. My program currently does the following:
    After I push the white Run button, I am prompted for a file name. After I enter one, Labview begins collecting data from the LaserMike, syringe pump and pressure transducer and outputs them to their respective numerical indicators and waveform charts. Then I can change the syringe pump flow rate and syringe diameter on the front panel. Once I push the green RUN button on the front panel, the syringe pump runs, and the balloon diameter vs. syringe volume XY graph begins to record. I can then reverse the direction of the pump and/or pause the pump however many times I like, while Labview still records diameter from the LaserMike. Pushing the red STOP button on the front panel terminates the program and stops the pump.
    Here are three things I would like to change about my program that I don't know how/what to do:
    1) I would like to synchronize my machines so that they are outputing at the same rate.
    2) I would like to convert my strain output into PSI.
    If anyone has ideas about how to do any of these three things, your help is greatly appreciated.
    Attachments:
    NE-50X.llb ‏994 KB
    Balloon DiameterStrain.vi ‏227 KB

    Hello N,
    What is considered a special board? I am using a SC-2345 DAQ board. This is where my transducer is hooked into. For my syringe pump and LaserMike I have them being inputed as instruments. When you say millisec resolution does that mean that the data points will be lined up better with one another?
    I would like my strain gauge to measure pressure. 
    Thanks!

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

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

  • G41TM-E43 - DVI and HDMI output at the same time?

    I am looking to output to 2x 1920x1200 displays...nothing 3D and nothing that needs to be decoded...just some power point presentatinos and some flash within a browser window.
    I am pretty sure the resolution isn't going to be a problem, but using both the DVI and HDMI ports at the same time is something I am concerned about.  I am looking for people with actual knowledge that this works...no guessing please.
    Regards,
    Dan

    Quote
    I am looking for people with actual knowledge that this works...no guessing please.
    The likelihood is that you won't be able to use DVI & HDMI at the same time, but you could use one or the other in conjunction with the VGA (D-Sub) port.
    But as this is a user-to-user forum, and you may have to wait for someone with actual experience of this to see this thread and respond, for a definitive answer, contact MSI Support direct:
    http://support.msi.com
    But please do post back with the answer, as this could be useful for others in the future with the same question.

  • Can I enable both a bluetooth audio device and digital-out port at the same time?

    Hi!  I just got a bluetooth speaker and want to use it at the same time as my audio-out port which drives speakers in another room.  In preferences, the iMac wants me to choose one or the other...  Is there a way to enable both at once?
    Thanks!

    You probably should not be using a keyboard bluetooth profile for a scanner, I am not a developer for apple so do not know the location for you to find out the correct profile you should be using for an input device that is not a keyboard. Sorry,
    I am sure if you navigate the apple developer site you will probaly finmd what you're looking for.
    https://developer.apple.com

  • MOVED: Re: G41TM-E43 - DVI and HDMI output at the same time?

    This topic has been moved to Intel Core-iX boards.
    https://forum-en.msi.com/index.php?topic=144229.0

    Quote
    I am looking for people with actual knowledge that this works...no guessing please.
    The likelihood is that you won't be able to use DVI & HDMI at the same time, but you could use one or the other in conjunction with the VGA (D-Sub) port.
    But as this is a user-to-user forum, and you may have to wait for someone with actual experience of this to see this thread and respond, for a definitive answer, contact MSI Support direct:
    http://support.msi.com
    But please do post back with the answer, as this could be useful for others in the future with the same question.

  • 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

  • [Solved] Lexmark Pro901 doesn't work

    EDIT: I forgot to install ghostscript, that solved it Hello everyone, I installed the lexmark-inkjet-legacy package from the AUR (https://aur.archlinux.org/packages/lexm … et-legacy/) and I configured my printer using the lx-postinstall script, which

  • How to make sure Office 365 (2013) Pro Plus click to run updates after it is installed on a computer

    We are getting ready to move from Office 2010 MSI to Office 365 (2013) click to run ProPlus.  Everything is ready to uninstall and install the new product.  My question is if the Updates Enabled="TRUE" is not in the configuration.xml file will machin

  • Zoom settings change when adding pages

    Hi When adding a page to a document with this code: app.activeDocument.pages.add(LocationOptions.AT_END); InDesign automatically reverts the zoom setting to FIT_TO_PAGE Is there a way to prevent this from happening? I would like that it should stay a

  • What is the best video editing software for Mac?

    I am trying to edit videos, specifically .wmv and .mpg files to put in PowerPoint presentations. What is the best software for cropping movies as well as cutting different scenes out of video (i.e. making a 2 minute video into a 30 second video). Tha

  • I am unable to open FR in 11.1.1.3 after installation

    i have installed FR and configured. after configaration, i am unable to open FR. please give me idea.......... i have attached error file in below 09-13 16:42:58 ERROR ConfigResourceBundle     Could not find fr_configcache.properties file 09-13 16:42