generation of impulses PXI-6602

I am new user and I got pxi 6602 iwant to generate a 5 3.5ms amplitude 2.5 kHz and 2.5 offset I probably need to use 2 meters can someone tell me which wires I need to connect on CBS 68 device and how ican write this program?
Thank you for helping me

It can generate a ttl which means a pulse of 0 to 5 volts. If that fits your definition, then it will work.

Tags: NI Hardware

Similar Questions

  • The precision of a PXI-6602 improve with a PXI-6608 2 driving 10 MHz slot PXI backplane?

    Improve the accuracy of a PXI-6602 module in slot 3 of my PXI chassis if I use the clock of a PXI-6608 OCXO in slot 2 to drive the background clock of 10 MHz of my PXI chassis basket?  If so, how is it improved?  660 x operating instructions shows the bottom basket of 10 MHz clock led the Phase Lock Loop of the 6602, but I don't know how that affects the overall accuracy.

    This will help you.  I think you need to set the reference of your meter to use the PXI 10 MHz clock and the clock of the 6608 of export to the PXI 10 MHz clock.  I managed to get orders of magnitude better measurement of the frequency by doing this (on a signal of very narrow limits).

  • error when you try to use MAKE as "open collector" on PXI-6602

    When I try to set one of my PXI-6602 as "open collector" I get the 200452 error ("" measures: specified property is not supported by the device or is not applicable to the task. ' "). It is completely mysterious to me because the PXI-6602 should have this feature and my code (see attachment) is virtually identical to one of the many examples in this topic. I forget something really stupid? (LV 8.5, PXI-8145RT) Cheers, uli

    Hi uli82 *,.

    The error message is correct. The PXI-6602 can't stand not to DO. Property of OutputDriveType. If you want to set up DIO of the PXI-6602 lines to a high impedance state, use the DO. Tristate property or create a digital input channel.

    Configuration of a DIO type open collector line drive would cause to write a 0 to drive the 0 V line and cause to wrote a 1 to three States of the line. If this is the desired behavior, you will have to imitate it using c. Tristate property.

    Brad

  • periodic waveform generation complex FPGA (PXI-7852R)

    I would like to create a complex periodic wave (digital) with my PXI-7852R.

    After checking the article here on the generation of periodic waveform with cRIO and then for a few hours trying to get this software to work on my fpga (PXI-7852R) I'm not much closer to making it a reality.

    I bet that someone with more experience could some conversion not fast enough... Notice to lovers?

    Thanks in advance!


  • Generation of impulses associated with Motion Control

    Hello

    I'm currently controlling a stage prerequisite microscope with Labview, through a serial port.  LabVIEW communicates via the active X functionality to the control of the stage box.

    I would like to be able to integrate a feature of external impulse generation in the system.  So, I wonder what kind of material, I will need to do this?  The pulse should be about 5 V in amplitude and in the range 1-20 Hz.

    Finally, I wish to cordinate movement of my turntable of the microscope with the external pulse generation.  Have some sort of feedback would be important as well.

    Thank you for your help.

    Mike

    Thanks Dan.  I appreciate your advice.    I have also received feedback from my local field engineer and identified which device will work best for my needs.

  • PXI-6602 generate signals in squaring A, B with DAQmx in CVI

    Hello

    I want to know if it is possible to generate a quadrature encoder signals...

    I want to generate the Signal A, then B Signal with a 90 ° of the delay on the other and be able to set the number of pulses that I want to generate.

    I tried to generate signals with DAQmxCreateCOPulseChanFreq, but I can't start Singal B with the delay of 90 °.

    Have any experience on this?

    Thank you for your help,

    Hello gramirezv Hello,.

    Here is a KB which may help you to generate two trains of pulses with the same frequency but with a phase shift:

    How can I generate two pulse Trains phases shifted from each other on my E series card?

    http://digital.NI.com/public.nsf/allkb/26CCE4F74DACFD1886256DCF006B011A?OpenDocument

    Have a lovely evening,

    Best regards

    CaEnOs

  • frequency of generation of impulses or daqmx 9.6.1

    Hello!

    I am using an NI USB-6211 to control a stepper motor. I need to generate a pulse train with the right frequency to an angular displacement of the desired speed. For this, I wrote an application in c# (.NET 3.5) using the NI DAQmx 8.8 library, and the application worked well. However, when I updated the driver for the 9.6.1 version, the same application (recompiled with the new dll) took exactly half the time to accomplish the same task. I didn't measure the output of the counter, but I guess that the generated frequency is twice more as configured.

    Is there a bug known in this version of the driver or maybe I did something wrong?

    Thank you!

    You can reach the exit?  Which of the following describes your situation?

    1. You get the desired number of pulses to twice the desired frequency.  I still think it's unlikely.
    2. You get less than the desired number of pulses to the desired frequency.  If this is the case, I'd be willing to bet WaitUntilDone wait not long enough for some reason any (check this by adding an additional wait time after waiting, but before you stop the task).
    3. You get the total number of pulses desired to the desired frequency.  If this is the case, then it seems that the software runs just as soon that he had done before (which shouldn't be a problem, should it?).

    Best regards

  • Timed software a generation of impulses - USB-6009

    Hello.

    I searched for a reliable way to produce a pulse point by point with the USB-6009. My question is whether or not it is possible to produce such a signal without hardware timing or a counter as the USB-6009 supports neither. Is the closest I've come to produce a square with a very low duty cycle wave. However, what I would ideally look for is the ability to produce a single pulse inside a loop which I can go once per minute or more. Also, I would like to know what are the parameters I would be sacrificing to produce a pulse in this way.

    I also have access to a function generator and as it seems quite difficult I will be probably triggering just its pulse function in the same way, but I'd like to explore this obstacle before moving on.

    Thank you

    Travis.

    20 ms can enter the region where you will begin to see significant amounts of timing jitter. You really need to write your program and make some careful measurements - over a long period of time - to see how much of a problem you will have. Actual performance will depend on a lot of details: the operating system, other software process running in the background, and how the LV program is implemented.  You must reduce as much as possible, everything else on the computer: no network, no antivirus, no Bluetooth or WiFi connection and so on...

    Lynn

  • RS422 PPS signal generation

    I am trying to generate a RS-422 PPS signal using the PXI OR PXI-8431/8, LabWindows/CVI and CVI standard library functions, but I can't find a way to produce a signal that remains HI with persistence for X number of ms.  I realize that use the PXI-6602 would be an ideal solution, but in my case, I am relying on the RT OS to maintain determinism.  Do you know a white paper or a thread that could describe a reliable way to do this with the functions of the ICB boards of series I have?

    This message has been copied since the LabView discussion Forum.  Sorry for the inconvenience.

    Sean,

    I've updated the functions of generation of pulse with those of the DAQmx library and am now running.

    Thank you a lot for the input.

    J

  • Timed signal generation TTL with the NI USB-6501 to be read by Arduino Uno

    First of all, I want to apologize - I am very, very new to LabVIEW and brand new to the development of the software of control equipment in general. I tried to find an answer to this question already, but I'm not entirely sure what I'm looking for.

    I have currently a work program LabVIEW which operates a gun card NI USB-6501. Due to the nature of having a machine that springs from a powerful beam of electrons, we want to assure you that if the computer controlling stalls or fails for any reason, we have built-in security that can stop the gun. Our current idea is to connect an Arduino Uno on a PIN on the USB-6501 and LabVIEW to generate a timed signal, which may read the Arduino. If the signal fails (indicating that the control computer has queued or off), the Arduino triggers a power relay that is independent of the control computer and turns off the gun.

    I understand that the USB-6501 operates on TTL signals, so the signal that I should be something in the sense of "output TTL high, wait 1 second, output low expectations, a second, repeat TTL ', but I have no idea how to go about programming in LabVIEW. My first thought was that it is a square wave by using the function "simulate the signal" output, or to have trigger an iterative Boolean signal, by using the function 'DAQmx write', but I don't really understand how do to implement or another idea, or if an idea would even work.

    Any advice would be greatly appreciated.

    Hi Elizabeth,.

    THINK THE STREAM!

    When do you DATAFLOW think everything falls in places!

    Several problems:

    -You have to put that MAKE impulse VI in his own loop parallel to your main VI!

    -When you place this generation of impulses in the effects loop ("TTL arduino low-high") you should put the CreateTask and StopTask outside the loop: no need to create/stop the task in each iteration.

    -Why are there points of constraint to waiting functions?

    -Why is there bent wires? You know Ctrl-U?

    -LabVIEW comes with an extensive library of example screws: you looked at all these examples DAQmx?

    -Suggestion: Learn more about the "structures of producer-consumer"!

  • Problem with the PXI-6534 elimination change detection task

    I ran into the following problem.  I use a PXI-6534 and PXI-6602 with vb.net for detection with a timestamp of changes.  My code works fine and I get data exactly as I want, the problem comes when I try to call the task.dispose function.

    When I call him has, she throws an exception with error-200088 code, task does not exist.  But the task is still stopped and I can run my code again and everything works fine.  If I do not call the task.dispose, I get an error when I try to run my code again.  The material seems to have left in an unknown state, and I have to restart my computer to get it back. (the MAX NOR even reset the 6602, he says only that the Council does not exist).

    Interesting also is the exception thrown does not seem to be caught by the Try Catch method.  The code traverses the Try Catch without any problem (step by step in the code anyway), but with the exception, the message box appears, either immediately or when coming out of the subroutine.

    Also, I use TestStand 4.2 to call these functions, if that makes a difference.

    Any help would be greatly appreciated!  Its very frustrating that everything works and I get my data perfectly, but I can't run the code without exception popping up, and I can't seem to catch the exception.

    Here is the code I use:

        Public Sub StartChangeDetect_UUT1()
            If myCDrunningTaskA Is Nothing Then
                Try
                    ' Create the task
                    uut1ChangeDetectTask = New Task()
    
                    '************************ Create the digital input virtual channel alias
                    'Assign ports to digital virtual channel
                    uut1ChangeDetectTask.DIChannels.CreateChannel("Dev1/port0:3", "ChangeDetectUUT1", ChannelLineGrouping.OneChannelForAllLines)
                    'uut1ChangeDetectTask.DIChannels.All.DigitalFilterEnable = True
                    'uut1ChangeDetectTask.DIChannels.All.DigitalFilterMinimumPulseWidth = 0.000001
                    uut1ChangeDetectTask.DIChannels.All.InvertLines = True
                    uut1ChangeDetectTask.DIChannels.All.DataTransferMechanism = DIDataTransferMechanism.Dma
    
                    'Assign ports to monitor for change detection, both rising and falling edges
                    Dim rising As String
                    Dim falling As String
    
                    rising = "Dev1/port0:3"
                    falling = "Dev1/port0:3"
                    uut1ChangeDetectTask.Timing.ConfigureChangeDetection(rising, falling, SampleQuantityMode.ContinuousSamples, 4000000)
    
                    'export change detect event to PXI backplane so we can get timestamps from timer.
                    uut1ChangeDetectTask.ExportSignals.ChangeDetectionEventOutputTerminal = "/Dev1/PXI_Trig0"
                    uut1ChangeDetectTask.ExportSignals.ChangeDetectionEventPulsePolarity = ChangeDetectionEventPulsePolarity.ActiveHigh
    
                    'uut1ChangeDetectTask.Stream.Timeout = 20000
    
                    ' Verify the Task
                    uut1ChangeDetectTask.Control(TaskAction.Verify)
    
                    ' Set up the data table
                    Initializeuut1DataTable()
    
                    ' Create the readers for the DI and the CI
                    uut1ChangeDetectReader = New DigitalSingleChannelReader(uut1ChangeDetectTask.Stream)
    
                    uut1CDCallback = New AsyncCallback(AddressOf uut1ChangeDetectCallback)
                    uut1ChangeDetectReader.SynchronizeCallbacks = False
                    ' Set up our first callback
    
                    uut1ChangeDetectReader.BeginReadMultiSamplePortUInt32(-1, uut1CDCallback, uut1ChangeDetectTask)
                    myCDrunningTaskA = uut1ChangeDetectTask
    
                    'Set up Timer for time stamp
    
                    uut1TimeStampTask = New Task()
                    '****************set up PXI-6602 timer to get buffered change events.  ie capture timer output on  the PXI_Trig0
                    'we can then correlate this timer capture buffer to the change detect buffer to get the time stamps
    
                    uut1TimeStampTask.CIChannels.CreatePeriodChannel("Dev5/ctr0", "TimeStamp1", 0.0000001, 0.02, CIPeriodStartingEdge.Rising _
                                 , CIPeriodMeasurementMethod.LowFrequencyOneCounter, 4, 4, CIPeriodUnits.Seconds)
                    uut1TimeStampTask.CIChannels.All.CounterTimebaseRate = 20000000.0
    
                    'Use exported change detect from 6534 board to take counter sample
                    uut1TimeStampTask.Timing.ConfigureImplicit(SampleQuantityMode.ContinuousSamples)
                    uut1TimeStampTask.CIChannels.All.PeriodTerminal = "/Dev5/PXI_trig0"
                    'uut1TimeStampTask.CIChannels.All.DuplicateCountPrevention = False
                    uut1TimeStampTask.CIChannels.All.DataTransferMechanism = CIDataTransferMechanism.Dma
    
                    ' Set timeout
                    'uut1TimeStampTask.Stream.Timeout = 20000
                    ' Verify the Task
                    uut1TimeStampTask.Control(TaskAction.Verify)
                    uut1TimeStampReader = New CounterReader(uut1TimeStampTask.Stream)
                    uut1TSCallback = New AsyncCallback(AddressOf uut1TimeStampCallback)
    
                    uut1TimeStampReader.SynchronizeCallbacks = False
                    uut1TimeStampReader.BeginReadMultiSampleDouble(-1, uut1TSCallback, uut1TimeStampTask)
                    myTSrunningTaskA = uut1TimeStampTask
    
                Catch exception As DaqException
                    ' Display Errors
                    MessageBox.Show(exception.Message)
                    uut1StopChangeDetection("C:\PT3771\TestResults\")
                End Try
            End If
        End Sub
    
        Private Sub uut1ChangeDetectCallback(ByVal result As IAsyncResult)
            Try
                'If runningTask Is ar.AsyncState Then
                If myCDrunningTaskA Is uut1ChangeDetectTask Then
                    ' Read the available data from the channels
                    Dim data As UInt32() = uut1ChangeDetectReader.EndReadMultiSamplePortUInt32(result)
    
                    Dim b As UInt32
                    For Each b In data
                        ' in TestData waveform Y axix is data, x axis is time 
    
                        uut1TestData.SetY(uut1ChangeDataIndex, b)
                        uut1ChangeDataIndex += 1
    
                    Next b
    
                    '' Set up a new callback
                    uut1ChangeDetectReader.BeginReadMultiSamplePortUInt32(-1, uut1CDCallback, uut1ChangeDetectTask)
                End If
            Catch exception As DaqException
                ' Display Errors
                MessageBox.Show(exception.Message)
                uut1StopChangeDetection("C:\PT3771\TestResults\")
            End Try
        End Sub 'DigitalCallback
    
        Private Sub uut1TimeStampCallback(ByVal result As IAsyncResult)
            Try
                'If runningTask Is ar.AsyncState Then
                If myTSrunningTaskA Is uut1TimeStampTask Then
                    ' Read the available data from the channels
                    Dim data2 As Double() = uut1TimeStampReader.EndReadMultiSampleDouble(result)
    
                    ' in TestData waveform Y axix is data, x axis is time
                    Dim b As Double
                    For Each b In data2
                        uut1TimeSum = uut1TimeSum + b
                        uut1TestData.SetX(uut1TimeStampIndex, uut1TimeSum)
                        uut1TimeStampIndex += 1
                    Next b
    
                    ' Set up a new callback
                    uut1TimeStampReader.BeginReadMultiSampleDouble(-1, uut1TSCallback, uut1TimeStampReader)
    
                End If
            Catch exception As DaqException
                ' Display Errors
                MessageBox.Show(exception.Message)
                uut1StopChangeDetection("C:\PT3771\TestResults\")
            End Try
        End Sub 'CounterCallback
    
        Public Sub uut1StopChangeDetection(ByVal location As String)
    
            Try
                If Not (myTSrunningTaskA Is Nothing) Then
                    uut1TimeStampTask.Dispose()
                    myTSrunningTaskA = Nothing
    
                End If
    
                If Not (myCDrunningTaskA Is Nothing) Then
                    uut1ChangeDetectTask.Dispose()
                    myCDrunningTaskA = Nothing
    
                End If
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
    
            uut1TestData.UpdatePointCount()
            uut1TestData.SaveToDisk("C:\PT3771\TestResults\uut1TestWaveFile.csv")
            uut1TestData.SaveToDiskBinary("C:\PT3771\TestResults\uut1TestWaveFile")
        End Sub 'StopTask
    

    Joe,

    Last updated.  It seems that when the task.dispose is run, recalls seem to have called one last time.  I took the call to the stopUUT1ChangeDetect in the two recalls (so eliminate it would not enforce a second time), and no exception was thrown.

    Thanks for your help!  Although if you'd still answer my question on the PXI-6534 Digital input filtering, I'd appreciate it.

    Thanks again.

    Thad

  • counters with DAQmx software on a 6602 trigger OR

    Hello

    I want to software trigger several counters for output of digital signals with different initial delays. I'm using an NI PXI-6602.

    In my first attached vi, I show you how to send a singal digital camera on a counter.

    In the second vi I set up two meters and added a daqmx trigger vi. But I'm not sure of what trigger source to use and how create the software trigger. Plase help.

    Thank you!

    A few possibilities:

    1. If you know what counter will have the lowest initial delay ahead, you can just do the other trigger of counters out of the in-house production of this counter (together the appropriate initial delays compared to the output of the first counter).  Or if you have an unused counter, you can use it for this purpose.

    2. you can trigger all counters in a single material on a PFI line signal.  You can use a task outputs digital timing software to strobe the high line once you have all your armed counters.

    I didn't look at your screws also because the computer I'm running LV 2011 for the moment.

    Best regards

  • Can I multiplex data inputs direct-DAQ PXI and SCXI?

    Hello

    In a PXI chassis - SCXI - combo PXI1052 (PXI-6602/6052E/SCXI1112/1125, LabVIEW 7), I know how to read the different SCXI Modules in multiplexed by DAQboard controller mode

    e.g. SCXI module 1 - module 2 SCXI data - SCXI module 3 data - data of the module 1 SCXI module-...

    However, I would like to use the direct entries in DAQ cards as well. for example

    PXI MIO grabs - SCXI module 1 data - module 2 module SCXI - SCXI module 3 - inputs PXI MIO - SCXI module 1 data-...

    I couldn't find a solution in the documentation or discussion. Thus, this task can be a) impossible or b) trivial. The obvious solution to use 2 different PXI-MIOs is only as a last resort.

    Thanks for your help.

    Michael

    Hi Michael,

    You can add HAVE strings of the MIO to the same task DAQmx SCXI modules. If you use the DAQ Assistant, hold down the ctrl or shift during the selection of channels to select channels from multiple devices, or click the '+' to add more channels to a task existing DAQ Assistant. If you use the DAQmx API directly, go ' PXI1Slot4 / ai0:15, SC1Mod1 / ai0:7, SC1Mod2 / ai0:7 "(or something similar) in the DAQmx setting create channel physical channels. You can also call DAQmx create channel several times with the same task handle, which is useful when multiple channels must measure different types or channels of communication.

    Brad

  • Quadrature encoder frequency division dotNet VB Net c#

    Hello

    After a long search on this forum, I decided to start this thread for dotNet developer.

    I have a PCI-6602 with an encoder in quadrature (A, B, Z). The frequency of the pulses is average (10 kHz).

    I'm only using the channels A and B.

    The function I need to implement is to output all N pulses forward. N is a natural number and ranging from 1 to say 100.

    I have no constraints on the output. I may be a little switch or a generation of impulses.

    What features I'll call in MeasurementStudio.Net to implement this?

    How many counters should I use?

    On the registry, my guess is that I have to preload a value in the registry.

    Then when countdown counter reaches 0 this in turn does 2 things:

    • reload its set value meter
    • triggers the generation of output (TerminalCount)

    Thanks for any help you can provide

    Guy nOTEs for EITHER:

    ---------------------------------

    Moreover, in samples of NOR, squaring does work all the way.  I NLE sample "CountDigEvents" with CountDirection the 'Externally controlled' value, backward motion is never displayed. This is because the meter is read as a UInt32.

    Hi anthony75fr,

    Although there is no support for A, B and Z entries, the behavior you're looking for is essentially how a counter output tasks works.  Wouldn't not enough output on each pulse signal of A N (ignoring B and Z)?

    If so, you can configure it with only one meter by making a simple change to the example of GenDigPulseTrain_Continuous.  The basic shipping example uses the CreatePulseChannelFrequency method.  You want to use the CreatePulseChannelTicks method to specify your low and high time regarding ticks of the external signal (regardless of the PFI line the A out of your encoder is connected to).  By default, the output of the meter will switch between high and low in a way the number of ticks high and low ticks that you specify (for example, you can set up the meter for the output up 2 ticks and low for 98 ticks, giving a boost all 100 ticks - 2 is the minimum value for high or low ticks).

    Best regards

  • create a spectrum of the order from scratch (i.e. get a fft-based on the position of the same time deductions in the sample data)

    Hello people,

    THAT THE QUESTION PERTAINS TO:

    I play on 2 parameters of a system based on the sampling time: Rotary position and vibration (accelerometer g increments).  I want to take a fft based on the post to create a spectrum of the amplitude-phase speed order in / s.  To do this, perform the following:

    1 integrate (and scale) g vibration signal in the / s (SVT Integration.vi)

    2 signal sampled vibration resample the same time at an angle similarly charged signal (ma-resample unevenly sampled input (linear interpolation) .vi)

    THE QUESTION:

    Order in which operations should be carried out, integrate then resample or vice versa?  I didn't order would be important, but using the same set of data, the results are radically different.

    OR ORDER ANALYSIS 2.0 TOOLSET:

    I have the NO order Analysis Toolset 2.0, but I could not find a way to get the speed profile generation live to work with signals of position encoder DAQmx (via pxi-6602) quadrature.  In addition, it seems that I have to specify all the commands I'm interested to watch, which I don't really know at this point (I want to see all available commands) so I decided to do my own fft based on the post to get a spectrum of the order.

    Any help is greatly appreciated.

    Chris

    The order is to integrate the time domain of first - creating a speed channel.  You now have a new channel of data.  In general I would put this in the same table of waveform with waves of acceleration time.

    Then re - sample your acceleration and/or your speed signals, and then you can calculate the spectrum of the order.

Maybe you are looking for