Dynamic output signal control

hi
i am using a PCI-6259 card with Measurement Studio 2003 and NIDAQ 7.4
I am trying to change an analog output signal on the fly, e.g. using a slider.
My first attempt was using the 'WriteMultiSampleAsync' -function and installing an eventhandler.
So when i put my write-function into the 'OnEvent'-function of my event handler i get an error
message telling me that i got too less memory. Anyone has an idea how i can solve this problem?
I think i'll have to use multiple buffers, but am not sure how this exactly works.
Thx
Markus

Hello Markus,
the examples that are installed with Measurement Studio which should be enough to give you an idea how to create such an application. If you are looking for a way to change an analog output with a slider, it is actually pretty easy. As log as you dont want to do a waveform output you dont need buffering at all.
If you write a value to an analog output, this voltage will stay there until you write a new value or the PC is powered down. That is why it is enough to work with single point AO in this application.
Pleas have a look at the "AO Point example". It will show you the principle.
Ingo Schumacher
Systems Engineer Sound&VibrationNational Instruments Germany

Similar Messages

  • Unsupported output signal for Sony Bravia KLV-32T550A

    I have a mac mini 2007 running 10.6.3. I am trying to connect to a sony bravia KLV-32T550A either through VGA or DVI. Both keep coming up with error message (unsupported output signal, adjust your pc signal)
    I have updated setting on the TV as per some forums I have read so am sure its not the TV.
    Now the TV says the native resolution is 1366 x 768 but there is no exact match in display settings. Could this be the problems.
    I have read that i can download switchresx and this should fix the problem.
    Can anyone shed any light on this it would be much appreciated>
    Thanks

    Definitely the second computer can be a big help. If you set up Screen Sharing between the two so that the mini's screen is shared over to the MacBook, you will be able to see the mini's screen on the MacBook even though the display connected to the mini is dark. And from the MacBook you will even be able to control the mini, so you can go into Displays Preferences on the mini and make alternate selections for resolution and, if necessary, refresh rate. Hopefully you will hit on a combination that will light up the mini's attached display.

  • Output signal distorted

    I have a pretty large VI which outputs high frequency signals to control some hardware and then takes an input from that hardware for image rendering.  My problem is that whenever I activate the imaging portion of my VI, the output signals become slightly distorted.  For example, a 1Hz sawtooth output doesn't ramp up smoothly but becomes slightly staggered.  This also messes up the frequency of the signal.  Does LabVIEW have problems outputting signals properly when another portion of the VI has a lot of cpu intensive processing?
    I am using the "Simulate Signal" block to create a 1 Hz sawtooth wave, 128 Hz triangle wave, and a 65,536 Hz square wave and outputting these signals through DAQAssist.

    Hi Laura,
    I went ahead and changed the 65,536 Hz square wave signal as the first input, but the three signals still do not output simultaneously.  Although the signals slightly change as I vary the Samples per Buffer and Cycles per Buffer, I can't seem to get a combination that is capable of outputting these two low frequency signals with my high frequency signal.  I would either get an error message about "DAC conversion attempted before data to be converted was available," or there would be no error message but the signal output didn't match the given specifications.  Attached is the vi with the modifications.  Presently, there is no error message with the given sampling information, however there is no square wave output at all, and the sawtooth waveform only shows a partial amount of the signal.  I had to make some slight modifications to the Waveform Buffer Generation vi in order to allow me to change phase, duty cycle, and offset of my square wave.  I don't think this would have any effect on the Cont Gen Voltage Wfm vi though.  Any ideas what's going on?
    Thanks a bunch,
    Anthony
    Attachments:
    Cont Gen Voltage Wfm-Int Clk multiple waveforms2.vi ‏121 KB
    Waveform Buffer Generation.vi ‏79 KB

  • How to create 2 output signal locked in phase from a one input signal

    Hi all,
    I have a case in which I want read in a signal analog input (voltage) from a photodiode, I want to create a 2 sinewave signal locked in with same phase as the input signal and output them as analog output to my 2 laser diode. the frequency of the input signal is low aroud 15 Hz , the 2 output signal i want to be  around 120 hz and 150 hz . 
    I am using USB - 6003 daq card.
    I have created a vi to see the input signal but I dnt know how to create 2 signal from the waveform generator locked in the phase as the input signal. I have seen a PLL vi , but dont know how to use that with my program.
    can any one tell me how to proceed.
    thanks
    AG
    Attachments:
    pulse_PLL.vi ‏27 KB

    Hi AnkitG,
    Here are a couple of links that might help you understand a little more how the PLL work and a way to synchronize the task to perform a PLL.
    http://digital.ni.com/public.nsf/allkb/07BC8D77D4E9AE258625708B007CE74F?OpenDocument
    http://digital.ni.com/public.nsf/allkb/2F675A9F2162EA24862572570059A308?OpenDocument
    Also, you should be able to find a lot of examples on how to accomplish the synchronization of tasks on the community, if you consider that the only consideration is that both must start at the same moment. 
    I hope, these examples might show you some useful concepts:
    http://digital.ni.com/public.nsf/allkb/EBD603683446EC13862575B3006A63A2
    http://digital.ni.com/public.nsf/allkb/9E71F8D7D3CD1B0886257688004AE353
    Regards,
    Luis C.
    National Instruments

  • Output signal high at DIO lines of 7330

    Hi
    I am using Labview 7.1 with Ni motion controller. I am trying to detect the output signals at the auxiliary DIOports of the card using the attached programme in the NI example finder. My board ID is 1 (thats what was allowed by the programme) and I put port 1 , to check the DIO lines of it. I checked pin 10 (port 1-bit 0) and pin 44 (port1-bit 1) using an oscilloscope. The output is high at 5volts.
    I changed the DIO pin polarity switches to active low status but the output remains the same.I fiddled with the set and reset buttons of the programme, initialize the card but nothing changes.  Any idea on how to figure whats wrong? 
    Thanks
    Mal
    Attachments:
    Auxilliary Digital Output.vi ‏57 KB

    Hi
    Thanks for the reply. Sorry for the delay in response as I was on vacation. I tried your programme but the result remains the same. The output is always high.
    Max shows the card is working properly. It also shows the board type as 63. But the programme only takes in board ID as 1. How can set the direction using MAX and save the settings?
    I tried the write 1 point example programme on axis 1 ,line 1 and tested the signal on pin 44 and 42 (oscilloscope ground), and toggled the line but the output is high. But when I stopped the programme with the STOP button it gave an error message 70102 with a possible cause the setting doesn't match the line direction?
    The oscilloscope ground was firmly connected to pin 43 or 42 of the board for all tests.
    I appreciate your help.
    Thanks
    Mal

  • Lowlevel video output switch controls? Modulized, why?

    Hi
    Well, i use Arch on my laptop. And there is one thing, which makes me wanna jump on it. The Lowlevel video output switch controls kernel module. I need this activated in order to switch between the projector and my laptop, I have my finals soon so its important this works as it should.
    Would it be possible to enable this module in later pacman-versions of the kernel? At the time beeing, I would have to recompile everything my self. Which I have yet to become successful at, something is always wrong. But I`ll summarize what I would like to do:
    #Build a kernel with this option, choosing it from grub at boot-time. But still have the "pacman-version" in case i mess up somethings up.
    NOTE I use luksEncrypted root, does this option do anything to the kernel? Since the installer asks if you need to boot from an encrypted volume. Just asking...
    Anyway, can I just download the kernel source. Run make menuconfig, activate the Low level video output switch controls. Then -> make modules_install? And then copy the kernel-version over to boot, and use it? Or what else?
    Thank you so much for helping, took me ages discovering this feature was disabled on purpose.

    sveinemann wrote:Nice, any idea when it`ll be in core? I cant risk having an unstable kernel, this is my work laptop <3
    Not before next weekend. My best guess is next Wednesday or later.

  • How to dynamically create sqlldr control file using stored procedure

    I am trying to dynamically create the control file (.ctl) and execute the same using a stored procedure.I would be passing the file name as a parameter to this procedure. How do I go about doing this?
    The control file has the following structure. The file name (mktg) varies and is passed as an input to the stored procedure.
    SPOOL mktg.ctl
    LOAD DATA
    INFILE 'mktg.csv'
    INTO TABLE staging
    FIELDS TERMINATED BY ','
    TRAILING NULLCOLS
    (COMPANY_NAME,
    ADDRESS,
    CITY,
    STATE,
    ZIP)
    SPOOL OFF ;
    sqlldr scott/tiger CONTROL= mktg.ctl LOG=mktg.log BAD=mktg.bad

    We are using oracle 9i rel 2.
    I have not had much success with the creation of log and bad files using external tables when they are being used within a dynamic sql.
    Plz check this:
    Re: problems related to data loads from excel, CSV files into an oracle 9i db

  • NI9401 output signal

    Hi,
    I am currently uisng the CDAQ 9178 and the NI 9401 modules to generate the output signal. Currently I am testing out using the 
    Generate Finite Digital Pulse Train Retriggerable.vi from the NI example finder. The main problem i am facing is the I can generate a pulse but is unable to vary the frequency on the go. Meaning to say, whatever value i set initially will be taken as the fixed value in generating the pulse frequency. May I know what are the ways to generate an digital output pulse signal that has varying frequencies? up to around 100kHz? 
    Hope someone could help me thanks a lot
    Jhao

    Hi,
    What is the model of your machine ? Your AIO computer is design as stand alone AIO machine. If you wish to connect it to a TV, you can use an external video card such as one of these:
       https://www.google.com.au/search?q=usb+video+card&hl=en&rlz=1G1GGLQ_ENAU282&source=univ&tbm=shop&tbo...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Change form of output signal without initializing new process of output signal

    Hello!
    How to change form of output signal produced on the output channel without initializing new process of output signal?
    Thanks 
    Message Edited by _Pavel_ on 10-28-2009 05:21 PM
    Solved!
    Go to Solution.

    I'm working with LabView 8.5.1.
    I have periodic TTL impulse with constant frequency – signal to start , which I'm used to start data acquisition (PCI-6251)and generation signal (PCI-6221).
    When TTL signal a detection, necessary generation some analog signal (PCI-6221) and acquisition other analog signal (PCI-6251).  Then wait following TTL signal.
    At this moment I write the part of the program which is responsible for data acquisition. Function retriggering (In examples C:\ProgramFiles\National Instruments\LabVIEW8.5\examples\DAQmx\Synchronization\Multi-Function.llb\Multi-Function-CtrRetrigg Pulse Train Generation for AI Sample Clock.vi) is used. This function necessary,because we start data acquisition each time on arrival TTL impulse, andrepeated creation of the virtual channel of data acquisition with the newtrigger spend a lot of time.
    The problem consists in the following. Generation of the data from other card should occur on the same impulse TTL as for the data acquisition card and then generation zero value.
    How I can realize it? I planned to change the form of an impulse of generation when detected TTL an impulse, without reinitialize process.

  • Gateway In problem (Wroung output signals)

    Hi,
    I build a FPGA circuit to test.
    The source come from a normal simulink block “Pulse Generator”.
    After the signal go through the block "Gateway In", the output signal of the ""Gateway In" is wrong.
    Is there some one can give me some advice ? Thank you.
     

    The problem is your sample period on the gateway in block. It's only taking in one sample every second but your pulse is going much faster. And your simulation only runs for 0.001 seconds. So you're basically seeing the output of 1 sample.

  • Is it possible to change nunmber of columns dynamically in table control

    Is it possible to change number of columns dynamically in table control? if so how it could be done?
    Thnaks in advance.
    Sounder

    You can update the table control in your program, the table control is a structure of the type CXTAB_CONTROL of TYPE-POOLS cxtab.
    There you can hide or display column the same way you do for fields in LOOP AT SCREEN. there you will ahve to LOOP AT <control>-COLS.
    TYPE-POOL CXTAB .                                                                               
    TYPES:                                                                               
    BEGIN OF CXTAB_COLUMN,                                                          
             SCREEN      LIKE SCREEN,     "Attributes struktur SCREEN                      
             INDEX       TYPE I,         "Position of a column on the screen               
             SELECTED(1) TYPE C,          "Indicator 'column selected'                     
             VISLENGTH   LIKE ICON-OLENG, "Visualised length of a column                   
             INVISIBLE(1) TYPE C,         "Indicator 'column invisible'                    
           END   OF CXTAB_COLUMN,                                                                               
    BEGIN OF CXTAB_CONTROL,                                                         
             FIXED_COLS    TYPE I, "Number of fixed columns                                
             LINES         TYPE I, "Number of lines to display                             
             TOP_LINE      TYPE I, "Top line during next PBO                               
             CURRENT_LINE  TYPE I, "Current line during LOOP/ENDLOOP                       
             LEFT_COL       TYPE I, "Fist scrollable column after fixed area               
             LINE_SEL_MODE    TYPE I, "Line-selection  : none(0), single(1),               
             COL_SEL_MODE     TYPE I, "Column-selection:        multiple(2)                
             LINE_SELECTOR(1) TYPE C, "Indicator: 'With line-selection col'                
             V_SCROLL(1) TYPE C,            "not used                                      
             H_GRID(1) TYPE C,        "Indicator: 'Horizontal  grid-lines'                 
             V_GRID(1) TYPE C,     "Indicator: 'Vertikal    grid-lines'                    
             COLS      TYPE STANDARD TABLE OF CXTAB_COLUMN                                 
                            WITH NON-UNIQUE DEFAULT KEY,                                   
             INVISIBLE(1) TYPE C,                                                          
           END   OF CXTAB_CONTROL,                                                         
    Regards

  • Dynamic Tab Access Control?

    Is there a way to set up dynamic tab access control? For instance if I wanted a professor to only have Shared access to a particular tab in a course page is there a way to define the credential to indicate which tab they should have access to?
    Thanks,
    Jason

    Is there a way to set up dynamic tab access control?
    For instance if I wanted a professor to only have
    Shared access to a particular tab in a course page
    is there a way to define the credential to indicate
    which tab they should have access to?
    I haven't tried this, but I think you could create a new course template that uses the instructor and student roles, and set the access control option in that to allow an instructor shared access to a given tab. New courses based on that template would use the same permissions. I don't think there's any need to include access control information in the credential itself (as the credential is just used for authentication; iTunes U itself decides what you get to).
    Or am I missing something in your question?
    Ken

  • What is the effect of output signal with the same sampling frequency but different number of samples?

    Hi,
    I'm using PXI4461 for audio measurement and there is a question about analog output. I'm using the Basic Multitone vi for generating multitone signal. The sampling rate is 200k and my question is how to determine the number of samples. I used an audio analyzer to measure the distortion of the output signal with 200k and 1k points and there are no different except the update rate. What number of samples is suitable for 200k sampling rate?
    Thanks,
    Bill

    The Sampling Rate determines the maximum frequency that you can see (the rate/2 according to Nyquist).
    The number of samples divided by the rate determines how long you will sample. This sample time can only be determined by you. Do you need .1 seconds worth of data, or 1 second? But note that the MINIMUM frequency that you can detect is 1/(Sample Time) or the Sampling Rate/Number of Samples. So if your system has a minimum and maximum frequency specification use that as your guild.
    [email protected]

  • Dynamically output a  image via struts insted of servlet

    Hello,
    I want to know how to dynamically output a image via struts insted of servlet;
    I can work it fine with the serverlet, this how i get it to work via serverlet:
    java class:
    public class ImageServlet extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException {
    in web.xml :
    <servlet>
    <servlet-name>ImageServlet</servlet-name>
    <servlet-class>com.admin.transferform.ImageServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ImageServlet</servlet-name>
    <url-pattern>/ImgServlet</url-pattern>
    </servlet-mapping>
    and access the pic in[b] jsp :
    <img src="/ImgServlet"></img>
    <br>
    I just want to know, how do i access via struct?
    i change the java class to :
    public class ImageServlet extends Action {
    public ActionForward execute(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response) {
    and in struts-config.xml :
    <action
    path="/image"
    type="com.admin.transferform.ImageServlet">
    </action>
    and i have tryed both these in jsp but none did work:
    in JSP :
    <img src="/image"></img>
    or
    <html:image src="/image" />
    can some one tell me, where did i went wrong pleaseee :)

    ImageServlet java :
    package com.admin.transferform;
    import java.io.*;
    import java.net.URLConnection;
    import javax.servlet.ServletException;
    import javax.servlet.http.*;
    import org.apache.log4j.Logger;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionError;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class ImageServlet extends Action {
         private static Logger logger = Logger.getLogger(ImageServlet.class);
    public ActionForward execute(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response) {
              try {
                   InputStream in = new BufferedInputStream(new FileInputStream("/export/projects/images/headernews.jpg"));
                   logger.debug("dec : trying to output the image file");
                   String s = URLConnection.guessContentTypeFromStream(in);
                   response.setContentType( s );
                   byte pic[]= new byte[in.available()];
                   in.read( pic );
                   OutputStream out = response.getOutputStream();
                   out.write( pic );
              } catch (IOException e) {
                   logger.error("Error opening file region", e);
              return null;
    in struts-config :
    <action-mappings>
    <action
    path="/image"
    type="com.waterfind.admin.transferform.ImageServlet">
    </action>
    </action-mappings>
    jsp :
    <img src="<html:rewrite action="/image"/>">
    or
    <img src="/myContext/image.do"/>
    none working still, any more help please :)

  • ALV dynamic output

    how can i do about ALV dynamic output,thank you.

    you can create a Dynamic Container size for ALV - based on screen resolution
    DATA: go_splitter  TYPE REF TO cl_gui_splitter_container,
              go_container     TYPE REF TO cl_gui_container,
              go_grid             TYPE REF TO cl_gui_alv_grid.
        CREATE OBJECT go_splitter
             EXPORTING
               parent    = cl_gui_container=>default_screen
               rows       = 1
               columns  = 1
               metric     = '0001'.
        go_container = go_splitter->get_container( row = 1 column = 1 ).
        CREATE OBJECT go_grid
             EXPORTING
             i_parent = go_container.
    Regards,
    Sangram
    SAP Consultant

Maybe you are looking for