Questions regarding analog output

I want to build a LabVIEW file to generate analog output signal. Basically, if a variable (say, temperature) is between 250 and 500, voltage will be applied to a valve and open the valve. The attached is my first try using LabVIEW. But there is an error:
Error -200077 occurred at Property Node DAQmx Timing (arg 1) in DAQmx Timing (Sample Clock).vi:1->pulse based valve control.vi
Possible reason(s): Requested value is not a supported value for this property.
Property: SampTimingType
You Have Requested: Sample Clock
You Can Select: On Demand
Task Name: _unnamedTask<2>
The DAQ device I used is USB-6009. I tried different sample modes, but nothing worked. How can I fix this problem?
Also, for the next step, I will use AI (temperature) and AO (voltage) in the same LabVIEW file. Here are some other questions.
1. Is it necessary to set sample rates for the AI and AO channels?
2. Is it necessary to synchronize the sample clocks for AI and AO channels?
Thanks,
Bei

Hi Qifu,
If you are new to LabVIEW and DAQmx, I would suggest reading
this tutorial. The shipping examples are also a wealth of knowledge.  (Help >> Find Examples >>
Hardware Input and Output >> DAQmx >> Synchronization >>
Multi-
Function)
You did not specify how fast you will be acquiring
data.  I will assume that you will be
acquiring and generating at a slow rate since you are measuring
temperature.  Yes, you should set the
sampling rate and sample clocks the same for both the AI and AO.  I would refer to the example (Multi-Function-Synch
AI-AO) in the example finder on how to accomplish this.
Respectfully,
Rob F
Test Engineer
Condition Measurements
National Instruments

Similar Messages

  • Questions regarding PO output in SRM 4.0

    Hi All
    I have several questions regarding the settings for PO output in SRM 4.0 ( Ext. classic)
    Would really appreciate if someone provides me the rationale and business reasons behind some config settings:
    I am referring to BBP_PO_ACTION_DEF transaction in IMG
    1) What is the difference between Processing when saving document & immediate processing. SHouldn't the PO output be always processed after the PO is changed and saved?
    2) In the Determination technology what is the significance of the term ' Transportable conditions'. Why would it be different if the conditions were manual and not transportable?
    3) In the Rule type what is the signifcance of Workflow conditions? How workflow controls the output?
    4) What is the meaning of ' Action merging' in layman's terms and what do each of the choices like "Max. 1 Unprocessed Action for Each Processing Type" signify.
    5) What powers do the 'changeable in dialog' & 'executable in dialog' indicators assign to the user processing the PO. What happens if these indicators are not set.
    6) What does ' Archive mode' in processing type signify. Are the PO outputs archived and stored?
    Regards
    Kedar

    Hello,
    Have a look at note 564826. It has some information.
    As far as I know, processing time 'Immediate Processing' is not allowed. I really don't know the reason.
    "Processing Time" should be defined as "Process using Selection Report" when an output should be processed by a report, such as RSPPFPROCESS, for example.
    If you set this as "Process when Saving document", then the output will be sent immediately, otherwise you have to process it with transaction BBP_PPF.              
    I hope I could help you a little.
    Kind regards,
    Ricardo

  • Question regarding the output of Get-MailboxPermission

    Has anyone seen this sort of output for the AccessRights, specifically the number?
    This can be related to several other issues we had in regards to 3rd party AD management software. 
    get-mailboxpermisson -identity 'user' | ft user,accessrights
    OUTPUT
    User                                                 Access Rights
    NT AUTHORITY\SELF                                    {FullAccess, DeleteItem, ReadPermission}
    domain\name                                           {1179648}
    domain\name                                           {2031617}
    domain\name                                           {1179649}
    domain\name                                           {2031617}
    domain\name                                           {2031617}
    I also noticed that in some cases the SELF has AccessRights listed as a number. 
    User                                                 Access Rights
    NT AUTHORITY\SELF                                   {1179649}
    In these i issued the command
    Remove-MailboxPermission -Identity 'username' -User 'SELF' -AccessRights "FullAccess,ReadPermission,ExternalAccount"
    Remove-MailboxPermission : Cannot remove ACE on object "userFQDN" for account "NT AUTHORITY\SELF" because it is not present.
    When i manually remove SELF, then re-add self with correct permission and run the get-mailbox command the output is now
    User                                                 Access Rights
    NT AUTHORITY\SELF                         {FullAccess, DeleteItem, ReadPermission}
    again this could be due to the third party AD mgmt software, thought this might also be from migrated account from legacy domains??
    anyone see this before??? reminds me of UAC for user.

    
    It certainly looks as if you have nonstandard permissions
    settings going on there.
    Ed Crowley MVP
    "There are seldom
    good technological solutions to behavioral problems."
    "mviton" wrote in message news:75318c00-a3b2-47a1-a306-43d7da82d9a5...Has
    anyone seen this sort of output for the AccessRights, specifically the
    number?
    This can be related to several other issues we had in regards
    to 3rd party AD management software. 
    get-mailboxpermisson
    -identity 'user' | ft
    user,accessrights
    OUTPUT
    User                                                
    Access
    Rights
    NT
    AUTHORITY\SELF                                   
    {FullAccess, DeleteItem,
    ReadPermission}
    domain\name                 
    {1179648}
    domain\name                                           {2031617}
    domain\name                                          
    {1179649}
    domain\name                                          
    {2031617}
    domain\name                                          
    {2031617}
    I also noticed that in some cases the SELF has
    AccessRights listed as a number. 
    User                                                
    Access
    Rights
    NT
    AUTHORITY\SELF                                   {1179649}
    In
    these i issued the command
    Remove-MailboxPermission
    -Identity 'username' -User 'SELF' -AccessRights
    "FullAccess,ReadPermission,ExternalAccount"
    Remove-MailboxPermission
    : Cannot remove ACE on object "userFQDN"
    for account "NT AUTHORITY\SELF" because it is not
    present.
    When i manually remove SELF, then re-add self with
    correct permission and run the get-mailbox command the output is
    now
    User                                                
    Access
    Rights
    NT
    AUTHORITY\SELF                         {FullAccess,
    DeleteItem, ReadPermission}
    again this could be due to the
    third party AD mgmt software, thought this might also be from migrated account
    from legacy domains??
    anyone see this before??? reminds me of UAC for
    user.
    Ed Crowley MVP
    "There are seldom good technological solutions to behavioral problems."

  • A simple question regarding flash output from Encore

    My primary question is how exactly is the html file that is playhed by the browser created in Encore?  I have tired this and I am simply unable to located the html file as seen in the tutorials on this subject.  I see that these tutorials have templates which I don't see when I select the flash output.  Do I need these to crreate a simple flash file that is playable on a website?  Where to the templates come from?  This is not explained in the tutorials.
    Is the index.html file created automatically when Flash output is selected as the format?  Maybe I am doing something wrong but I have never found them?
    Please help as I am having to go through a two step process to create the requied index.html and embeded player from which the SWF is played.on a site.  I am only interested in creating progressively encoded web site playable files from Encore.  Please help!.
    Thanks for any assistance. 

    Encore creates the HTML file when you export to Flash - it's in the folder named on export, along with all the other files you'll need.

  • Question regarding audio output on bluetooth...

    I received a bluetooth speaker in the mail today (the Oontz). I connected it but the only options for the sound output are headset and headphones, which makes the sound really muffled. When I connect it to my boyfriend's MacBook Pro, there is an "audio device" output option, but I can't figure out how to set it up on my computer with that option! Please help
    I have an older MacBook Pro that is running on Mac OS X 10.5.8.

    More information: I remember having this problem with my soundbar a year or so ago but somehow fixed it... When I try to re-setup the device, the only options are use device as headset and use device as headphones.

  • Question about voltage holding of multi Analog outputs

    Hi, I'm programming my NI USB-6008 with V++.
    Now I have a question. The device has 2 analog outputs.
    When I set channel "ao0" to a certain voltage, then stop this task. Then start another task and set channel "ao1" to another certain voltage. When I do the second task, will ao0 hold the voltage set in the first task?
    Thanks.
    Solved!
    Go to Solution.

    Hi Lowsfer-
         Yes, the analog output state of AO1 will remain in the last state it was before the task was stopped.  As long as the device is not reset or the computer is not turned off, the analog output will maintain the last voltage you specified, regardless of what the other Ao channel is doing.
         I hope this helps.  Best of luck with your application!
    Gary P.
    Applications Engineer
    National Instruments
    Visit ni.com/gettingstarted for step-by-step help in setting up your system.

  • Synchronizing Analog Output to Counter Input

    Hi!
    I'm really new to LabView. Pls help!
    I'm trying to obtain a set of stimulus signal and response signal from my motor for system identification.
    The stimulus signal will be generated by the Ao0 channel and response signal (quad encoder linear position) will be read into counter0.
    How can I synchronize the stimulus signal and response signal so that the sampling (n samples) for both stimulus and response starts at the same time?
    e.g.
    t=0, stimulus sample 1, response sample 1
    t=1, stimulus sample 2, response sample 2
    t=2000, stimulus sample 2000, response sample 2000 
    I've attached my VI.
    Thanks. 
    Regards,
    Student
    Attachments:
    Acquiring Linear Encoder Samples.vi ‏44 KB

    Hello Htp,
    What do you mean by synchronize? Do you want to start the analog and counter outputs at the same time? If you do, you should have both outputs start with the same digital trigger. For the analog output, you can set up the triggering in the DAQ Assistant in the Task Triggering tab. For the counter output, look at Gen Dig Pulse Train-Continuous-Dig Start.vi found in the Example Finder (Help Menu>>Find Examples). Browse Hardware Input and Output>>DAQmx>>Generating Digital Pulses. Please let me know if you have any questions. Have a great day!
    Sincerely,
    Marni S.

  • Simultaneous analog output

    I am using PCI-6052 with (LabVIEW) .Where two analog outputs are available ,DAC0 and DAC1.I want to simultanouly output the different waveforms on each Channel at the same time.Time is important.
    I tried it with two DAQ assistance vi's setting each channel on each vi ,but at time randomly one vi's gives output not both at the same time.
    Thanks
    Haider

    Hello Haider,
    It sounds like you are trying to get started with NI-DAQmx and want to
    output separate signals on the two analog output lines.  The
    restriction of the hardware is that all of the analog input or output
    channels must be contained with in the same DAQmx Task.  There are
    a couple ways to do this. 
    If you want to stick with the DAQ Assistant, I searched our KnowledgeBases and found the following example program which does analog output for two channels using the DAQ Assistant. 
    If you would like to drill down a little farther and use the lower
    level DAQmx VI's, I would recommend looking at one of the shipping
    examples, the format for multiple channels is Devx/AOy:z where x is the
    device number, y is the starting AO channel, and z is the final AO
    channel. 
    Also, another good reference, especially if you are going to use the lower level VI's is the Learn 10 Functions in NI-DAQmx and Solve 80% of Data Acquisition Applications Tutorial.  Hopefully,
    that'll get you going with your program.  Let us know if you have
    any other questions with either the online example or one of the
    shipping examples. 
    Regards,
    Micaela N
    National Instruments

  • Question regarding Digital Out (COAX) not mini plug on Audigy ZS

    Hi.
    I have a question regarding the Digital Out and Digital In (COAX/RCA) Inputs I have on the back of my computer and if theres an easy way to hook the digital out with only a regular Digital Coax cable to a Home Theater receiver and get 5./DTS, OR do u have to use the 6 channel/analog (by using 3cables)or using the digital out (miniplug to RCA).
    IF not what are these connectors for and what kind of sound streams do these inputs handle.
    /Regards

    wmadoss,
    Do you have the Audigy 2 ZS Platinum or Platinum Pro? The normal Audigy 2 ZS card on it's own does not have any RCA SPDIF output/input, only the dri'vebays do. If you have a Platinum/Platinum Pro set, with an external dri've, then you can connect an RCA to RCA cable directly to that, and then to your receiver.
    If you have a standard Audigy 2 ZS card then you will need to use a minijack to RCA (female) adapter first, and then connect the RCA to RCA cable to that.
    For music and games it's best to use the three analog outputs.
    Cat
    Message Edited by Catherina-CL on -9-2004 09:5 AM

  • Question regarding mic plugged into audio in/optical digital audio in port

    So I have this external headset... headphone/mic set combo... I plug the headphone jack in the headphone slot and the mic jack in the audio in/optical digital audio in port slot in the back of my IMAC. I go to my system preferences select "sound" and "line in - Audio line in port". But when recording, it's still recording from the internal mic? How do I just record just from the external mic??? What am I doing wrong? I've read all the other questions regarding how to get the external mics to work, but it's still recording from the internal mic? Help?
      Mac OS X (10.4.9)  

    I never expected APPLE wouldn't make a mac that didn't have a proper mic jack?
    It has a proper one, a good one, a professional one, not the toy that comes with most PCs. Apple has used line level analog audio input for years.
    From Wikipedia;Line level is a term used to denote the strength of an audio signal used to transmit analog sound information between audio components such as CD and DVD players, TVs, audio amplifiers, and mixing consoles.
    In contrast to line level, there are weaker audio signals, such as those from microphones and instrument pickups, and stronger signals, such as those used to drive headphones and loudspeakers. The strength of the various signals does not necessarily correlate with the output voltage of a device; it also depends on the source's output impedance, or the amount of current available to drive different loads.

  • Analog output digital start trigger c api

    Hi, I am attempting to start analog output based off a digital trigger (either PFIO, or a PXI line)  I can do this easy in LabVIEW.  However with the C API (through Python wrappers), the problem isthat when I call DAQmxBaseWriteAnalogF64, the write will always timeout as the acquisition has not been triggered.   However, I cannot call this after the trigger occurs, as obviously that will be too late.
    I cannot find any C API examples where analog output is triggered off a digital trigger.  I can find them for analog input, but that is fundamentally different as you can performan read anytime after the trigger occurs.
    Python code as follows (the functions are equivalent ot C API, though you do not need ot pass the task handle as it maintained as part of the Task object)
    # create analog output task
    analog_output = Task()
    analog_output.CreateAOVoltageChan("Dev1/ao0","",-10.0,10.0, DAQmx_Val_Volts, None)
    analog_output.CfgSampClkTiming("",outputRate, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, numSamples)
    analog_output.CfgDigEdgeStartTrig("/Dev1/PFI0", DAQmx_Val_Rising)
    analog_output.StartTask()
    analog_output.WriteAnalogF64(numSampsPerChan=numSamples, autoStart=False,timeout=1.0, dataLayout=DAQmx_Val_GroupByChannel, writeArray=data, reserved=None, sampsPerChanWritten=byref(samplesWritten))
    print("Analog output: Wrote %d samples" % samplesWritten.value)
    # create digital trigger
    dig_out = Task()
    dig_out.CreateDOChan("Dev1/port0", "", DAQmx_Val_ChanForAllLines)
    # create digital trigger function
    highSamples = 1000
    numpts = 3 * highSamples
    doData = np.zeros((numpts,), dtype=np.uint32)
    doData[highSamples:2*highSamples] = 2**32 - 1
    # send digital trigger
    doSamplesWritten = c_int32()
    dig_out.WriteDigitalU32(numSampsPerChan=numpts, autoStart=True, timeout=1.0, dataLayout=DAQmx_Val_GroupByChannel, writeArray=doData, reserved=None, sampsPerChanWritten=byref(doSamplesWritten))
    print("Digital output: Wrote %d samples" % doSamplesWritten.value)
     

    Hi PatrickR,
    You can review some of the text based NI DAQmx (ANSI C) code examples on generating an analog output using a digital start trigger. If you included/checked text-based support dusing your NI DAQmx driver installation, you can navigate to Windows Start>All Programs>National Instruments>NI DAQ>Teaxt-Based Code Support>ANSI C Examples>Analog Out>Generate Voltage>Mult Volt Updates-Int Clk-Dig Start. If you have any questions/concerns regarding the NI hardware.

  • 3 analog outputs

    Hello
    I am doing a project on labview and want to generate 3 analog outputs at a same time. I have NI DAQ 6211 but it has only two analog output pins.
    Need suggessions...

    Hi khpp,
    why do you create multiple threads asking the same question?
    Please stick with "one thread for one question"!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Analogy output a 5000 Hz sine wave from DAQ 6015

    Dear Friends,
    I am back again. Today I try to use the DAQ 6015 to generate an analogy output sine wave of 5000 Hz, it shows me underflow warning. I think it is because of the limit of the on board buffer size. However, I would like to ask for some advice from your experienced expert if there is any way I can make it.
    Many Thank
    dan 

    Hi Dan
    Just a few questions before I can help you. Are you using LabVIEW, if so which version. Are you using NI-DAQmx driver, again if so which version. When you receive the underflow warning do you also encounter an error code and description of the warning? Would it be possible to post the message and code in your next post.
    You can setup buffer size and sampling rate via LabVIEW. Using the DAQmx API makes this very easy using the DAQmx Timing.vi
    Kindest Regards
    Yatin | NIUK & Ireland

  • How to avoid delay during analog output generation by changing its frequency?

    Windows XP
    LabVIEW 7.1
    PCI-6036E + BNC-2120
    Hi,
    I am going to create a vi to generate an engine speed sensor signal (a simple square wave with specific missed pulses, in my case 58 pulses “teeth” and 2 missed pulses “missed teeth”) as an analog output but in addition give me the opportunity to control parameters for example frequency online to simulate the engine speed changes during running that vi. For this purpose I have started with “Continuous Generation.vi” which is available in NI Example Finder under the following path:
    Hardware Input and Output > Traditional DAQ > Analog Output > Continuous Generation.vi
    Then I modified it towards above mentioned goal, all related vi s are attached. The main vi is: "Motor Signal Generator_1.12.vi"
    At the first try it looks that it works properly but when have a look on that more accurately with Oscilloscope (fortunately I have a good one: Agilent 54621A – 60 MHz, 200 Ms/s) obviously there is a gap (delay or Jitter) whenever I change the engine speed. It is also attached in Signal generation_problem report.doc file.
    Note: Small gaps are OK and related to predefined missed teeth but the big one is happened during changing engine speed.
    As far as I understand it is related to the time which case structure in AO C-GEN sub-vi needs for AO reconfiguration each time after changing the engine speed (update rate). How can I get rid of this delay or gap during signal generation and generating completely continuous signal?
    I have to mention that obviously I changed the frequency by changing the update rate. The other possibility is to change the number of updates in one period (refer to "generate arb frequency.vi" in NI site: http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E48F56A4E034080020E74861) which resulted in no delay however then I can not change the frequency continuously but step by step (for example jump from 5Khz to 2.5KHz immediately) and this can not pass to my application.
    Any hint is appreciated.
    regards
    Attachments:
    Signal_generation_NIsupport.zip ‏81 KB

    Hi Roozbeh,
    The following example will allow you to vary the pulse train frequency during run time.
    Thanks,
    Lesley Y.
    Attachments:
    GenDigPulseTrain-ChangingSpecs.vi ‏75 KB

  • Which audio interface(s) for 16 to 20 analog outputs?

    Hi. I wonder if anyone can help me...
    I'm running Logic 7.2 on a black MacBook. For my inputs I am using the MOTU 8pre, as this is convenient especially when recording drums with my band... no scrambling together of pre-amps... no faff...
    The thing is... I've been given a shed load of gear (literally), including a 24 channel analog mixing desk and tons of outboard rackmounted effects units/compressors/gates...
    I would REALLY love to integrate the two systems, especially at the mixing stage, by routing my Logic tracks to the desk. Unfortunately, the MOTU 8pre only has a couple of analog outputs (+ headphone out).
    To make this a venture worth undergoing, I'm going to need a minimum of 16 analog outputs. 20 would be great if possible.
    I suppose my initial questions are:
    1. Can I daisy-chain 2 firewire audio interfaces (each with 8 analog outputs) to give me a total of 16 analog outputs?
    2. Bearing in mind I have a low budget, could anyone advise me on which units to get. I don't think I could afford any more MOTU gear, unless I find an amazingly low priced second hand item. What about Edirol or M-Audio?
    Thanks in advance.
    MS

    This is worth checking: http://www.ioneconnects.com/product.shtml
    Based on new DICE II firewire chip with JetPLL technology (should have much lower jitter than regular firewire Audio devices that are not built on DICE II).
    I believe that you can choose the configuration you need.
    The only question for me is whether they are affected by apple's firewire streaming bug. But as I've heard that in the info of 10.4.9 SDK is a statement, that core audio bugs were repaired, I hope the offset streaming problem will be finally the past...
    Man I am really considering this firewire snake, as it definitelly has many ins and outs - including 4 AES/SPDIF in and out!!!
    I am going to upgrade my studio and two of those will probably give me enough ins and outs for all my needs (musicians + outboard hardware and a summing mixer). I was also thinking about Symphony (PCI solution seems to be still more stable than firewire) and some I/O "modules" from apogee, but that is much more expensive. And I 've read only positive info about the DICE II, so maybe I will give a firewire another chance...

Maybe you are looking for

  • Sender RFC Scenario Error:Payload Is Missing

    I am facing an issue in 'RFC2JDBC' scenario which is mentioned below: here our scenario is 'RFC2JDBC'.here our 'RFC' is having 2 fields in tables parameter i.e. empno & empname. the results of the 'RFC' is coming as: Personnel Number  Employee Name 0

  • How to transfer pictures in locations "Camera Pictures" and "Picture Library" on 9780 device

    Had problem with pictures not saving to media file and instead got saved to the above locations. Have now rectified the media card problem and want to transfer the pictures to the media card or to a pc. However, the desk top soft ware does not show t

  • Update button in AAM ist not visible

    Installations with AAM (Version 6.2) are done, but Updates are not available because the button ist not visible. the DLM_Native.log shows this error: [INFO] |  |  |  |  |  |  | 1356 | Update Session is created and key generated is {0C3B216B-CDCF-4DC3

  • Where is my backup for my account

    my backup for my account in iCloud is unavailable, what do i do?

  • Call audio lost when message received - 8520

    Hi, I've got a problem with losing the audio during calls - I can no longer hear the other person although they can still hear me. I have to end the call and redial to recover from this. I think this happens when I receive a message during a call - I