How to createt two channels in AFG3102

I am trying to create two channels on AFG3102 but we manage only create one channel at a time.

can you explain how?

Hey kamils,.

I tried your VI with material real (I have a Tek AFG 3252) and it does not resemble the generation was already enabled for the first string. So, when I ran your code it has been implemented both slots but it turned only on channel 2. I added a function to configure output on the end of the VI for channel 1. I tested the code changed with my 3252 and exits the scope and it seems to work fine. The two waveforms are identical you currently give the same data at the same time, but this can easily be changed to fit your application. Take a look at the attached VI and let me know if you have any other questions.

Lars L

Tags: NI Hardware

Similar Questions

  • How to control two channels of simultaneous functions AFG 3200 B generator?

    The AFD 3200 B function generator has two channels. I want to use both channels generations some vague simultaneous sin. I downloaded the labview driver: Tektronix AFG 3000 Series.

    I did three things:

    (1) try to connect to two channels in VI.

    However, all the screws of example do not support the connection of the name of two channels simultaneously.

    (2) run only two signals generating VI with another name for channel at the same time.

    However, a single channel runs after the other.

    Do you have any suggestions?

    Thank you!

    Wu Yue

    Hey Wu,.

    You need two sine waves to be completely synchronized (aka having the same exact phase)?

    If they must be synchronized, then the AFG should on the two output channels at the same time, but you will probably need to configure serial in your program.

    If they do not need to be synchronized, then is there a reason why you would not be able to simply divided between the output signal two BNC? If this isn't an option, then you will probably need to make some kind of trigger to get both channels to start at the same time.

    Lars L

  • How to select two channels and send to a series to write using the loop of the case

    I had a series write who have different orders to different situations. The same reading series should read both. How can I do it. Means that if I have a 500\r\nZ of the chain. I have a case, it should be - Zand 500\r\n other case + 500\r\n Z. But for boyh these cases must be read with a write serail. How can I do ITI. Help, please

    You can't guarantee that these two conditions would not be affected at the same time.  You will need to send a separate command for each condition.

    In addition, using EQUALS on floating points is dangerous.  You could never get the condition because a little really low could be turned off.

  • How to find the time between two channels of entry in the data acquisition card or pci 6036

    Hello

    I read a lot-related posts on the simultaneous measurement of two input voltage of similar channels in map data acquisition. I know that the best material is "simultaneous measurments of the Series DAQ cards" but I only pci data acquisition card 6036 and I try to understand what is the time between the reading of the two channels . This period is always constant? (must it rely on a voltage (amplitude, frequency, waveform..). I send the sine wave (s) to the two channels and read the values of V, if they read the same value, the difference should always be zero but I get-0,002 to 0.002 Volt difference (I must find a way to convert it in time). A screenshot of my VI is attached. I wonder how I can accurately measure the time delay between the channel.

    I am open to any suggestion, my final goal to read exactly two channels at the same time ((ou connaître le délai exact donc je peux correspondre les données correspondantes étant donné le temps de retard))

    Hi spinup,

    better you should post your question in the forum of LabVIEW, LabWindows/CVI is used

    Good luck.

  • How can USB-6210 I synchronize two channels of ctr

    Hello

    I use LV 8.5.1 and NI USB-6210. A small application I want to generate two different impulses with synchronization but simple starting point. When I configure a task with two channels the second channel configured always starts a ms later. But, if I configure both channels in terms of frequency, they start synchronously.

    My idea is bad in general? The DAQmx part is fixed.

    Thanks in advance

    Hi there, too.

    the release of the finite pulse trains, to two meters for each task. Therefore, your application will be the first impulse using two output counters and then to exit the second impulse using the two counters.

    Like the USB-6210 don't not have outputs DIO correlated, you'll generate two infinite pulse trains (which can be started at the same time throug a trigger of arms) that you explicitly stop before the start of the second pulse (using the DAQmx abort task from a parallel loop), or upgrade your hardware at least a USB-622 x card series and a digital output model... Alternatively, you can use the PCI-6602 counter card and use a counter to Gate two others doing an infinite impulse train uses a relaxing break...

    Synchronization of two meter in NOR-DAQmx tasks
    http://digital.NI.com/public.nsf/allkb/BB7AE2D12BB04CBE862574FA005D3826?OpenDocument

    Using a counter to generate a redeclenchables Train digital pulses with a PCI-6602 and DAQmx
    http://digital.NI.com/public.nsf/allkb/4A9AF19480E50C6D862571B70058142A?OpenDocument

    Several counters on the same card with a single trigger pulse
    http://digital.NI.com/public.nsf/WebSearch/CE99A0B2A9048A2A86256C630062F550?OpenDocument

    Best regards
    Sebastian

  • How to complete the two channels of a stereo track in a mono track?

    I have recorded on the L channel a stereo recording with the interviewer and the interviewee has recorded on the channel of a. I applied the two fill 'right' and 'left fill' to the runway, then cut and switch between the two, when appropriate. However, when they are all two talk, I'd like that the two channels to be active, but not as a stereo track (because otherwise the sound is actually mono) and turning on the two "fill right" and "fill left" at the same time seems to feed each channel at 50% instead of 100%, at least that's what I guess since there is a significant drop in level.

    Any suggestions? I'm on CS6.

    OK, here is the solution I've worked.

    I created a new track to mono submix at the bottom of all my songs. In the Audio Mixer Panel, I remapped my stereo audio track to go to the mono submix track before going to the master. This forces all the audio out as that mono the end, which is exactly what I was looking for.

    For what it's worth, one track stereo padding right or double left audio and is stronger then the railway normal stereo, even if she plays two audio channels, they don't add to the intensity of the double mono. I just applied a + 4dB gain stereo sections to compensate for this.

  • How to make two separate channels of spot color?

    I have an image of a yellow pencil and tap the pencil. I want to make a Duotone in yellow and black, the type on the pencil is in black. I did spot two channels, one of the yellow pencil and the second black type. It appears without any detail of the solid color pencil and I want to show him the details. Any suggestions please?

    Without actually seeing, looks like you need an image in grayscale of the pencil with black text on a top layer. Then create a playlist for the yellow areas, save the selection and change alpha to a channel stain yellow.

  • Generating signals simultaneously on two channels (SMU-5451)

    Hello!

    I'm trying to generate 2 different signals on the two output port of my SMU-5451.

    Signals transmitted from data read from the file of PDM.

    I'm able to generate 1 1 channel signal. But I can't ' figure out how to complete the data for my 2 channels memory and let generator simultaneously press these data or their respective!

    Can any help? Maybe an example?

    Thank you!

    Hello Mr. Gambini,.

    You can find all the information to do this here:

    http://zone.NI.com/reference/en-XX/help/370524P-01/siggenhelp/5451_ni_5450_multichannel_allocation/

    Particularly:

    "To write waveform data to two channels at once, you must first striping of the data. "Once the data are interleaved, call the VI niFgen write Waveform (poly) or one of the wave functions write niFgen with the channel parameter set to"0.1"

    Kind regards

  • measure with the two channels of the virtual bench simultaneously in labview, error 375903

    Hi, I am trying two measurements simultaneously using two channels of analog input of the virtual bench. I chose the channel MSO 1 and 2 for the measures but I get error 375903 returned evewry time say the requested resource is reserved. I'm not under any other software which should use the virtual bench. The error occurs when I'm initializing the session, even before a measurement was made. Can someone tell me how to call each channel so that I don't get this conflict of resource reservation?

    I have included the VI and a screenshot of the error.

    Thank you!

    NGKai wrote:

    Hi, I am trying two measurements simultaneously using two channels of analog input of the virtual bench. I chose the channel MSO 1 and 2 for the measures but I get error 375903 returned evewry time say the requested resource is reserved. I'm not under any other software which should use the virtual bench. The error occurs when I'm initializing the session, even before a measurement was made. Can someone tell me how to call each channel so that I don't get this conflict of resource reservation?

    ASM takes only supported a session unique instrument and your VI uses two. To use both channels, delete the second session MSO and specify channels in the MSO configure Analog Channel.vi

    Here's an example that uses two channels brought:

    VirtualBench: Bode Analyzer with the FGEN and MSO

    http://www.NI.com/example/52076/en/

  • Try to use the same pattern for more than two channels (CSR configuration) with usb 6000

    Hello

    I am currently trying to implement a LabView code to get readings of voltage using 5 different places at the same time. I want to only use the first location in the ground and get 4 measurements of voltage between the ground and each of the other 4 channels. I use a USB 6000 which, for now, allows me to use the same pattern for only two channels. Is it possible to use the same pattern for 4 channels?

    Thank you

    Maria

    The images do not explain everything. You must explain what are the sensors. I think you totally wrong on how they should be linked. CSR, all sensors must be a common understanding and the outputs not individual channels as I have already explained. If you are unable to do this, you should probably not use CSR and you have the wrong data acquisition device. If you want a side of a sensor as a reference, you need differential connections.

  • Cannot acquire two channels?

    I'm missing something... I can't acquire mutiple channels. It will work if I delete one of the channels.

    glskinner wrote:

    If I delete the other creation of channel and create another 'read' inside my time, loop that connects to my first creation of channel... How to stipulate that this new channel number 'read' is?

    Not quite.

    Create the task with two channels and then your read reads and returns the data from these two strings in an array of waveforms.  Just hint about the desired waveform.  (Or their separate plots on a graph chart)

  • Find the time to intersampling between two channels AI USB 6251

    Hello

    I want to know how late it is between two-channel sampling of HAVE in a USB-6251 (term mass) used in conjunction with a block of connection SCB - 68 (Labview 8.5, Windows XP).  I realize that there's only an ADC and simultaneous acquisition is not available.  The specs are listed as follows:

    Sampling frequency:

    Maximum: 1.25 MECH. / s single channel;  1,00 multi-channel MECH. / s (aggregate)

    Minimum configuration: no minimum

    Timing accuracy: 50 ppm of sampling frequency

    Temporal resolution: 50 ns

    We know of a way to understand this point other than by experimentation?

    See this

  • How to read multiple channels based on the external clock

    Hello

    Normal 0 false false false MicrosoftInternetExplorer4 / * Style Definitions * / table. MsoNormalTable {mso-style-name: "Table Normal" "; mso-knew-rowband-size: 0; mso-knew-colband-size: 0; mso-style - noshow:yes; mso-style-parent:" ";" mso-padding-alt: 0 to 5.4pt 0 to 5.4pt; mso-para-margin: 0; mso-para-margin-bottom: .0001pt; mso-pagination: widow-orphan; do-size: 10.0pt; do-family: "Times New Roman"; mso-ansi-language: #0400; mso-fareast-language: #0400; mso-bidi-language: #0400 ;} "}

    I use 6254 multifunction for playback of tension with VC ++ 6 as the development tool.

    Based on the documentation NOR I created tasks like this.

    DAQmxCreateTask (_T ("Voltagetask"), & taskHandle);

    DAQmxCreateAIVoltageChan(taskHandle,sChannels,,DAQmx_Val_NRSE,0,10,DAQmx_Val_Volts,);

    DAQmxCfgDigEdgeStartTrig (taskHandle, "PFI2", DAQmx_Val_Rising);

    DAQmxCfgSampClkTiming(taskHandle,"PFI2",303000,DAQmx_Val_Falling,DAQmx_Val_FiniteSamps,nSamples);

    DAQmxStartTask (taskHandle);

    After the generation of clock finished thanks to the DAQmxReadAnalogF64 function, I tried to read samples of each channel.

    DAQmxReadAnalogF64 (taskHandle, DAQmx_Val_Auto, 10, DAQmx_Val_GroupByScanNumber, read, m_nStates & sampsPerChanRead, NULL);

    Total number of samples (nSamples) available in the buffer when the task is created with a single channel and several channels are still to come as even. In several modes of channel returns total sample by channel, which is equal to the total number of samples divided by the number of channels at once.

    For example, if a total number of clock 8000

    With single channel, it reads all the 8000 samples (m_nStates = 8000, sampsPerChanRead = 8000)

    When two tracks he read 4000 samples per channel and so on. (m_nStates = 8000, sampsPerChanRead = 4000)

    If any body know, on every clock how to take samples of all of the configured channels.

    Thanks in advance,

    Renjith.

    Renjith,

    Please note that the behavior, I explained is in line with the provisions should only if you use your clock as I convert clock. You can find information about the different types of synchronization of the analog inputs using NOR-DAQmx; the element to search for is "clocks".

    Since you do not set the clock to convert MY (should be DAQmxSetAIConvSrc()), the fact that I mentioned above is only informative for you, but does not apply to your question.  Sorry for responding too quickly without looking in your code between quotes...

    In order to answer your question, we take a look at the approach to programming DAQmx:

    If you configure your task to be "finished", the task will stop running if the number of samples per channel is acquired. In the case of an external clock (not configured as I convert clock), served it in the sampling interval. The sample clock will automatically receive a sample for all channels with a single clock pulse. From this point of view, the installation program you have in your program seems correct.

    If you do not get the number of samples that await, the fault must be somewhere in your playback function. Do you get any error messages?

    DAQmxReadAnalogF64 (taskHandle, DAQmx_Val_Auto, 10, DAQmx_Val_GroupByScanNumber, read, m_nStates & sampsPerChanRead, NULL)

    If you set m_nStates set to 8000, it's here. You say the Read function to retrieve 8000 samples. None. So if you have two channels, DAQmx acquires 2 x 8000 samples, but read you only 8000 samples... Please change m_nStates to

    m_nStates = #channels x #samples by channel

    This should solve your problem.

    hope this helps,

    Norbert

  • How to print two images on one page?

    Can someone tell me how to print two or more images of the Photos app on a single page?  I often print on fabric and should be able to print multiple photos on a single sheet.  This would also work if I could place photos exactly an area of 8.5 "x 11".  Then I could simply make several passes with each photo in a different location.

    Early ' 08 IMac, El Capitan 10.11.2 improved IPhoto to Photos

    Select two ore more photos, and then press the combination of keys ⌘P

    In the print Panel, select cuts available and set the width and height of your photos.

  • How to watch two clips at the same time on the other, with an opacity of 50% each.

    How to watch two clips at the same time on the other, with an opacity of 50% each. It is confirmed that the position of the object even two clips of mergers.

    Thank you

    PPut a clip on top of another in the timeline panel. In the video Inspector reduce the opacity of the clip on top.

Maybe you are looking for