Starting triangular output signal

Greetings,
I made this VI, but there's an error in it and I don't think it's solvable like this.
The triangular output signal should start when I press the boolean. Else the DAQ Assistant should put out 0V.
Also when I press the stop button the DAQ Assistant has to put out 0V
Is there another solution?
Thanks
Solved!
Go to Solution.
Attachments:
Screenshot.png ‏23 KB

I recently made a solution by using the "Select" function.
The Triangle Pattern produces the pattern I want the DAQ Assistant to send out the Output Signal.
I'm using a USB 6008.
But now I have a different issue. When I press the Start button, there's a sudden high pulse of 1V and then the output continues the regular Triangle Pattern.
Attachments:
Triangle voltage .jpg ‏35 KB

Similar Messages

  • 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

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

  • PXI-5421, C++, Creating output signal, DAQmxWriteAnalogF64 fails

    I want to create a simple sine wave output on a PXI-5421 card. I have looked at the sample projects for DAQmx, and based an application on them.
    The application falls over at the call to DAQmxWriteAnalogF64 using the following parameters:
    lReturn = DAQmxWriteAnalogF64(
    m_hTask,
    1000,
    0,
    10.0,
    DAQmx_Val_GroupByChannel,
    data,
    &lWritten,
    NULL
    What am I doing wrong?
    Below is the output of the application, and the code.
    ***** START OF OUTPUT *****
    DAQmxResetDevice -> SUCCESS
    DAQmxCreateTask -> SUCCESS
    DAQmxCreateAOVoltageChan -> SUCCESS
    DAQmxCfgSampClkTiming -> SUCCESS
    Samples per channel written: 0
    Source terminal to be routed could not be found on the device.
    Make sure the terminal name is valid for the specified device. Refer to Measurement & Automation Explorer for valid terminal names.
    Device: PXI1Slot3
    Property: DAQmx_SampClk_Src
    Source Terminal:
    Task Name: _unnamedTask<0>
    Status Code: -200040
    DAQmxWriteAnalogF64 -> -200040
    ***** END OF OUTPUT *****
    ***** START OF APPLICATION *****
    void Startup( void )
    // get amplitude
    double dblAmplitude = 5; // 5 volts
    // generate wave data
    float64 data[1000];
    for( int i=0; i<1000; i++ )
    data[i] = dblAmplitude * sin( (double)i * 2.0 * PI/1000.0 );
    // device, channel and terminal names
    char szDeviceName[128];
    strcpy(szDeviceName,"PXI1Slot3"); // PXI1Slot3
    char szChannel[128];
    sprintf(szChannel,"%s/ao0",szChannelName); // PXI1Slot3/ao0
    char szTerminal[128];
    strcpy(szTerminal,"Onboard Clock"); // Onboard Clock
    // reset device
    long lReturn = DAQmxResetDevice(szDeviceName);
    _AddToLog("DAQmxResetDevice",lReturn);
    // create task
    lReturn = DAQmxCreateTask("",&m_hTask);
    _AddToLog("DAQmxCreateTask",lReturn);
    // if that worked...
    if(lReturn==0)
    // create output voltage channel
    lReturn = DAQmxCreateAOVoltageChan(
    m_hTask,
    szChannel,
    -1 * dblAmplitude,
    dblAmplitude,
    DAQmx_Val_Volts,
    NULL
    _AddToLog("DAQmxCreateAOVoltageChan",lReturn);
    // if that worked...
    if(lReturn==0)
    // define sampling
    lReturn = DAQmxCfgSampClkTiming(
    m_hTask,
    szTerminal,
    10*1000,
    DAQmx_Val_Rising,
    DAQmx_Val_ContSamps,
    1000
    _AddToLog("DAQmxCfgSampClkTiming",lReturn);
    // if that worked...
    if(lReturn==0)
    // write to buffer
    long lWritten = 0;
    lReturn = DAQmxWriteAnalogF64(
    m_hTask,
    1000,
    0,
    10.0,
    DAQmx_Val_GroupByChannel,
    data,
    &lWritten,
    NULL
    CString strLine;
    strLine.Format("Samples per channel written: %d",lWritten);
    _AddToLog(strLine);
    _AddToLog("DAQmxWriteAnalogF64",lReturn);
    // if that worked...
    if(lReturn==0)
    // start task
    lReturn = DAQmxStartTask(m_hTask);
    _AddToLog("DAQmxStartTask",lReturn);
    else
    // clean up
    _CleanUp();
    void _CleanUp( void )
    // stop task
    long lReturn = DAQmxStopTask(m_hTask);
    _AddToLog("DAQmxStopTask",lReturn);
    // clear task
    lReturn = DAQmxClearTask(m_hTask);
    _AddToLog("DAQmxClearTask",lReturn);
    ***** END OF APPLICATION *****

    Broccoli wrote:
    I want to create a simple sine wave output on a PXI-5421 card. I have looked at the sample projects for DAQmx, and based an application on them.
    The application falls over at the call to DAQmxWriteAnalogF64 using the following parameters:
    lReturn = DAQmxWriteAnalogF64(
    m_hTask,
    1000,
    0,
    10.0,
    DAQmx_Val_GroupByChannel,
    data,
    &lWritten,
    NULL
    What am I doing wrong?
    Below is the output of the application, and the code.
    ***** START OF OUTPUT *****
    DAQmxResetDevice -> SUCCESS
    DAQmxCreateTask -> SUCCESS
    DAQmxCreateAOVoltageChan -> SUCCESS
    DAQmxCfgSampClkTiming -> SUCCESS
    Samples per channel written: 0
    Source terminal to be routed could not be found on the device.
    Make sure the terminal name is valid for the specified device. Refer to Measurement & Automation Explorer for valid terminal names.
    Device: PXI1Slot3
    Property: DAQmx_SampClk_Src
    Source Terminal:
    Task Name: _unnamedTask<0>
    Status Code: -200040
    DAQmxWriteAnalogF64 -> -200040
    ***** END OF OUTPUT *****
    ***** START OF APPLICATION *****
    void Startup( void )
    // get amplitude
    double dblAmplitude = 5; // 5 volts
    // generate wave data
    float64 data[1000];
    for( int i=0; i<1000; i++ )
    data[i] = dblAmplitude * sin( (double)i * 2.0 * PI/1000.0 );
    // device, channel and terminal names
    char szDeviceName[128];
    strcpy(szDeviceName,"PXI1Slot3"); // PXI1Slot3
    char szChannel[128];
    sprintf(szChannel,"%s/ao0",szChannelName); // PXI1Slot3/ao0
    char szTerminal[128];
    strcpy(szTerminal,"Onboard Clock"); // Onboard Clock
    // reset device
    long lReturn = DAQmxResetDevice(szDeviceName);
    _AddToLog("DAQmxResetDevice",lReturn);
    // create task
    lReturn = DAQmxCreateTask("",&m_hTask);
    _AddToLog("DAQmxCreateTask",lReturn);
    // if that worked...
    if(lReturn==0)
    // create output voltage channel
    lReturn = DAQmxCreateAOVoltageChan(
    m_hTask,
    szChannel,
    -1 * dblAmplitude,
    dblAmplitude,
    DAQmx_Val_Volts,
    NULL
    _AddToLog("DAQmxCreateAOVoltageChan",lReturn);
    // if that worked...
    if(lReturn==0)
    // define sampling
    lReturn = DAQmxCfgSampClkTiming(
    m_hTask,
    szTerminal,
    10*1000,
    DAQmx_Val_Rising,
    DAQmx_Val_ContSamps,
    1000
    _AddToLog("DAQmxCfgSampClkTiming",lReturn);
    // if that worked...
    if(lReturn==0)
    // write to buffer
    long lWritten = 0;
    lReturn = DAQmxWriteAnalogF64(
    m_hTask,
    1000,
    0,
    10.0,
    DAQmx_Val_GroupByChannel,
    data,
    &lWritten,
    NULL
    CString strLine;
    strLine.Format("Samples per channel written: %d",lWritten);
    _AddToLog(strLine);
    _AddToLog("DAQmxWriteAnalogF64",lReturn);
    // if that worked...
    if(lReturn==0)
    // start task
    lReturn = DAQmxStartTask(m_hTask);
    _AddToLog("DAQmxStartTask",lReturn);
    else
    // clean up
    _CleanUp();
    void _CleanUp( void )
    // stop task
    long lReturn = DAQmxStopTask(m_hTask);
    _AddToLog("DAQmxStopTask",lReturn);
    // clear task
    lReturn = DAQmxClearTask(m_hTask);
    _AddToLog("DAQmxClearTask",lReturn);
    ***** END OF APPLICATION *****
    Hello Broccoli,
    NI-DAQmx is not a supported API for the NI-5421 AWG. For all NI Signal Generators, please use the NI-FGEN API, which shipped with your instrument. You may also download NI-FGEN (2.2.1 as of today) from
    http://digital.ni.com/softlib.nsf/954feaeea92d90918625674b00658b83/8b1f32b4b8f7148586256efd006075a9?OpenDocument
    You should find helpful C examples bundled with NI-FGEN that will make using the NI-5421's full capabilities very easy.
    Marcos Kirsch
    Signal Generators Software Engineer
    Marcos Kirsch
    Principal Software Engineer
    Core Modular Instruments Software
    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

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

  • No table line started. Output to cell not possible

    Hi Everybody:
    I have developed a smartform where in if i give single record as input, it comes fine, but if more than one record is given thru selection scr, the error comes  No table line started. Output to cell not possible when page break is issued.
    Pls help as to why is it coming,
    I also tried SF TRACE, but when i display the error, it says Cannot read from the database.
    Best Regards, Neetu

    To print the internal table's data in the smartform you should use the TABLE.
    LIke define a TABLE, inside the table define required table types.
    Put your data inside your main ... under the Table by using one of the line type.
    Regards,
    Naimesh Patel

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

  • 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

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

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

  • 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

  • Start point of signal

    Hi everbody,
    I want to determine the starting point of signal. For this, What can I do?

    You need to provide more information for us to help you. Your question is very vague and you don't provide any screenshots or sample VIs of what you've tried.
    Try to give more information about your problem and maybe we can help.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • 15454 Low Output Signal Power

    Having a problem with the Bits timing output on pins A3, B3 and A1,B1 on the back of the Sonnet Shelf. Appears the output signal power of our 15454 is reading 1.30 which is very low.
    Tried changing the LBO setting and it did not make a difference.
    Need to now if there is a way to boost the signal power level up.
    The bits timing ouputs are used to time our Motorola BSR (CMTS) for telephony. The problem the Motorola BSR's are experiencing is when you failover the SRM (CPU) to the Secondary SRM, you loose both timing inputs.
    Any advice?

    To understand how BITS Network clocking work and how to troubleshoot when there are loss of Signal power
    please check the following URL which provides useful information
    http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120limit/120db/120db7/str3bits.htm
    http://www.cisco.com/en/US/products/hw/optical/ps2006/products_tech_note09186a0080124260.shtml#topic1

  • Changine the output signal on a pressure transucer

    Im trying to change a pressure transducer's Output signal from 0-5V to 0-10V. Where would I find this setting under Measurement and Automation Explorer?

    You can't change the range of your pressure transducer from within MAX.  That is set by whoever manufactured the pressure transducer.  If you want to change the input range of the compact Fieldpoint module that it is connected to, you can do that within MAX.  What analog fieldpoint module are you using?
    Browse to the specific module you want to change within MAX.  Right click and pick Go to Device configuration.  Pick the Channel configuration tab.  There you will be able to set the input range for each channel.

Maybe you are looking for

  • Image Sequence Settings in QT Pro - what is the Frame Rate range available?

    I am considering purchasing QT Pro for Windows. I wish to make a time lapse movie out of a series of pictures. I would like to know what the range of options is for the "Image Sequence Settings" in File->Open image Sequence... menu. Does is it go wel

  • Report generation, Excel isn't closed in the Task manager (LV2010)

    Hello everybody, I attached a simple example, to explain my problem. I tried (with Report generation) save data to Excel. That works fine. My problem is: in the Task Manager I can see the Excel.exe. Does anybody have a idea or a solution, why Excel d

  • Itunes movie rental

    I started to download a movie and it got to the processing stage and got stuck so i turned my phone off and on again When i cheked, all the usage space on my iphone was gone (so it was as if the film was there) but my videos app was empty and itunes

  • E-mail Delivery receipts cannt be received.

    Hi All, I have a small query regarding JavaMail. I cannot receive e-mail delivery receipts. I have set the property Return-Receipt-To to the header of the email. Please find the email header of the email bellow. What can be the problem? I checked my

  • Offset Audio Sync Tool...

    Can something like Color Correction throw the sync out? Even though I was editing in 23.98 with footage from the original DVX100, everything has been in sync all through my editing. After I started doing some heavy color correction, I noticed its off