Programming on Board on the PXI-6132

Hello

This is my first post, so please be abstain.

Asked me to develop a Labview Vi for the acquisition of data. I must acquire and a number of disintegrations exponential (as happens during the discharge of a capacitor through a resistor) averaged for calculating the decay constant. My boss has already bought a chassis PXI-1073 with a PXI-6132 to acquire the data. My question is this: since the sampling rate must use is very high, I want to minimize the amount of data transferred from the PXi system to the computer, with my system (windows 7, LV 2011, nor-DAQmx?), so it is possible to "say" the PXI-6132 to isolate the data belonging to the decomposition of exponantial on average several decays, then send the data to the host?

Thanks in advance for your help

Channel counter in the example I did you, is the meter, you use to generate the clock signal. Therefore a finished with 30 pulse pulse train if you want to acquire 30 samples.

This channel can be configured as redeclenchables and control 'Source', you must select the PFI where the trigger signal is wired. It depends on how you did.

The clock signal is routed internally, which means that you don't need all cabeling, simply select the right source for your route of entry of the AI (for example. Ctr0InternalOutput if you selected against 0).

So external signals will only be ounces you want to measure with Amnesty International and the trigger for the clockgeneration (counter) signal.

In MAX, you can do a right click on the device and see the layout of the pins on your device.

Tags: NI Hardware

Similar Questions

  • The PXI-4461 connections and text based programming

    Hello

    I looking for a guide-schedule based on text for the PCI card, / AO PXI-4461 24 bit.  Currently, I am able to program it similar to the PXI-6259 but could not find a way to set it up as (differential, Pseudo-differentiel) in order to obtain the correct output impedance.

    Is there a hardware (user) for PXI-4461 guide?

    I use Visual c# to encode the PXI-4461.  How can I determine the location of the classes and the specific methods for the PXI-4461.

    Thank you.

    Anand


  • PXI, switching boards causes the boot can´t pc

    Hello

    I pxi-1044 with some pxi cards (pxi-4065 / 6509 / 2529 / 8431 / 8432 / 2576 (3 borads))

    and the pxi-8310 controller.

    When the system has been configured for the first time, it works well.

    but 2 of the borads (pxi-8432 / pxi-2576) must slot interchange (due to problems of space with their own, conectors)

    When the system power, both led (on pxi chassis) and together (led controller), but windows xp does not start,

    Led CONTROL switch to and restart the computer. over and over again.

    I remove all the advice and check that all are recognized through MAX except the two planks of switching.

    Change to a different location (never used) and the look of system work ok, pxi-8232

    this Council is recognized.

    What is the correct procedure to exchange some tips when MAX has a previos configuration?

    I would use the slot machines that I have problems with, is it possible?

    Thank you

    Insteading of delete here or trying to remove, we can always Dispatcher threads.

    Suite here. 

  • Control of low level of the PXI-2596

    How to control a PXI-2506 Mux 26.5 GHz Dual 6 x 1 chassis PXI-1042 a code 'C' with a minimum of drivers? We want to use our own code, not of LabView, just plain 'C '. Also, we prefer to use our own controller (Linix based) shipped without a slot for a PXI card (if possible). Is there like a simple series or ethernet interface to control the boards housed in the PXI-1042 chassis? The switching speed is very low, it is part of a manufacturing test system, we want to use the PXI-1042 with several 6 x 1 Mux inside for instruments RF switching in of the DUT.

    Hi eirlund,

    In response to your questions:

    Is there a simple series or ethernet interface to control the boards housed in the PXI-1042 chassis?

    • Chassis PXI itself contains only the connections for the PXI bus and some timing and triggering and power for the cards. This white paper explains the PXI architecture in many more details: http://www.ni.com/white-paper/52018/en/

    • In order to be interfaced with the cards that you need to use a controller Embedded PXI or a remote control which allows you to use another computer in place and place an on-board controller. A remote control can be easier to apply to what you're after however there are some limitations regarding the use under Linux. More information on what the remote controllers can be found here: http://sine.ni.com/nips/cds/view/p/lang/en/nid/10359

    We want to use our own code, not of LabView, just plain 'C '.

    • You should always use the relevant drivers for the hardware you are using, in this case NOR-Switch and NI PXI Platform Services if you are using a remote control.

    • These drivers work with LabWindows/CVI which adds additional tools to facilitate the programming intended for the material OR in C, this means that it should be possible to use these drivers of C, but there is less evidence for this

    Also, we prefer to use our own controller shipped (Linux-based) without a slot for a PXI card (if possible)

    • If this is possible will depend in part on the question of whether the version of Linux you are using is supported. You can look into this further here: http://www.ni.com/product-documentation/52786/en/

    • In addition, you will need a PCI slot or a slot ExpressCard to connect to a remote installation program with

    I hope that this information gives you somewhere to start to consider whether what you want to do is doable?

    Best regards

    Joe

  • Acquire more than 2047 samples with the PXI-4461 instaled in SMU-1073

    Hi all, I would ask you for help with the buffer limit.

    I intend to buy digitizer PXI-4461 and he instal in SMU-1073 chassis, namely control via MXI Express of Labview installed on a separate computer.

    What I need:

    -to acquire data of a single channel of AI, but at least a sequence of 20 kS by a acquire task, in some situations until 200kS by a task to acquire.

    The question:

    - I can gain more than 2047 samples in a single sequence, like 200kS, with the PXI-4461 installed in SMU-1073?

    Internal buffer of the PXI-4461 is reserved to 2047 samples. So I'm not sure if Labview can download remotely via MXI Express the data in the buffer of the PXI-4461 via MXI Express fast enough without any affection of the sampling program.

    -in the case, this PXI-4461 with SMU-1073 isn't the right combination, what chassis and a controller can do?

    Thanks much for the reply

    Jan

    It will work for you.

    The on-board buffer 2047-sample is used only as a backup if the flow of data to the PC host (via MXI Express in this case) is not fast enough... that it will be (explained below).  DAQmx transfers data from the buffer of the device to the host PC as fast as he can and, in ideal conditions, should not save the buffer 2047 much at all.

    Let's just say you get 110 MB/s (randomly from a MXI data sheet) flow on your MXI connection.  The 4461 has 2 analog inputs, which will be at 24 bits, we just round 32-bit in case it transfers the data in this way.

    4 bytes/sample (32 bit) x 200,000 s/s x 2 (channels) = 1.6 MB/s, which is well below the 110 MB/s, which will make the MXI link.

    clear as mud?

    Germano-

  • Usability is NOR-SCOPE Soft Front Panel for the PXI-5154?

    I am plans to use the PXI-5154 with his NO-SCOPE Soft Front Panel in a product to test instrumentation. Our past experience, our users need an on-board scope that is easy to use which does not load the CPU. In most cases the scope will be used to check a transitional type of pulses. So, the amplitudes and rise times are essential to ensure compliance with ISO standards. The ability to capture, store and recall traces of reports is important, as well as the ability to perform simple and reproducible follow-up measures. We don't expect our users to have to program the scope; "give me the waveform.

    Does anyone have any comments on the usability of the NOR-SCOPE Soft Front Panel? How to compare with other soft scopes?

    Hello!

    The scope Soft Front Panel is very user friendly and able to load/save waveforms, Load/Save settings and make the scalar measures.  I've attached a screenshot of what the front soft worn looks as well as a link to a help document on the high speed digitizer HELP.  Information on the scope Soft Front Panel lies in this document and can be found under the tab content in the configuration tree (NI - Scope Soft Front Panel help).

    Help of digitizer OR high speed

    http://digital.NI.com/manuals.nsf/WebSearch/2123F564C6DE7B27862574DE006915DE

     

  • The original loop iteration after receiving the trigger of the PXI-6652 pulse

    Hello world

    I apologize if this has been answered somewhere else, but I'm having a hard time finding examples and tired after a long day of work.

    in any case, I use a PXI chassis with a PXI-7854R FPGA Board and module synchronization PXI-6652.  I have the FPGA biphasic pulses being generated at 8 analog channels.  I want to be able to do is to send a trigger (say at 1 Hz) for the PXI-6652, which begins at the exit of the biphasic pulse on the FPGA.  I'm running the FPGA through a host program as the variables on biphasic wave will change based on the current experience.

    So, in short, I was wondering how to generate a trigger of the PXI-6652 pulse and then use this trigger in a host of VI to start an iteration of a loop.  It seems simple enough, so any help would be appreciated.

    Thank you, and I can post the code tomorrow if necessary.

    To answer your second question, Yes, the driver NOR-SYNC 3.3 is available for download and use with LabVIEW 2011.

    As far as use the PXI-6652 to start the acquisition on an FPGA VI, we have enough good examples provided with LabVIEW that will show you how to proceed.  To actually generate a trigger with NO-Sync, there are several examples in the Finder for example of NOR (help > find examples) which send a trigger one of the PFI lines to be used with the other modules.  You can search for OR Sync and they all appear here.  You need this driver installed first before you see anything, however.

    Also, if you look through the viewfinder of the example under Hardware Input and Output > R Series > FPGA Fundamentals > triggers and guard dog, you will find an example of triggering good enough it for use in your FPGA code.

    This example uses NO-Sync to trigger a device of the M series, which is not relevant to what you are doing (he uses DAQmx), but there is a very good example of generation OR-Sync trigger here who I think can help.

  • Use the PXI-2630 terminal block in a matrix configuration?

    My apologies in advance for the length of this post!

    I use the PXI system with PXI-2530 switch modules, related to a series of USE with PXI-2632 (1W matrix 8 X 16) connector blocks and a PXI-4071 DMM for each switch module. My request, uses the PXI system for measurement of current and voltage external to verify and/or benefit from restraints of reliability. A requirement of the application, therefore, is that there must be a ride from DC through each USE with change of the minimum impedance as the application between its "bypass" mode switches and its mode 'measure '.

    I used this Setup with connector blocks of matrix in conjunction with one of our test systems, and I am satisfied with the results. I started working with the Test System, has no easy connection to catch HAD, I needed to build a kind of interface the PXI system and a resistive faced load HAD, it was not difficult to build in the wires that attach to the Terminal screw of the 2632. He did turn into a nest of a coded son rat I did my best to keep clean and tidy in different bundles, however. Fortunately for the cable fasteners!

    My next task is to use this application with system B Test, which has an interface of pines buck header with which each signal that goes to or from the DUT can be obtained. No welding or pass the wires through the openings where the designers have no intention of son to be stuffed. I intend to build a break-out Board that allows simple connections between the modules PXI and the number of Test B system which we have or will have in our laboratory. In order to simplify the configuration/installation, I want to reduce the number of connections to terminal block screw. Preferably, I would like to completely remove the screw terminals and use lever-based connections where I can't have mating of the headers. The PXI-2632 terminal blocks unfortunately use Terminal screw.

    In matrix mode 8 X 16, the closing of the PXI-2530 switch kcom1, 3, 5, 7, no matter what points in the array are connected. A link between the row of right and column C is done by closing the switch corresponding to k (16R-C). I checked using the Soft Front Panel.

    I also have a number of connector PXI-2630 blocks. These are intended to be used with the switch module in one of its MUX modes and include 8 banks of connections of the header 2 X 9 pins. In the the 2530 documentation and 2630, I identified that switch k-x is associated to chX output pin, ch0-15 related to the pins 1-16 from Bank 0, C16 - 31-associated pins 1-16 of Bank 1, etc.. X = 16 B + P-1. PIN 18 of each bank is used for independent MUX topology comX. Pines multiplexes sixteen seem to correspond to the sixteen columns of the matrix, with eight common lines corresponding to eight lines.

    Here's what I would do, but I would like to ping the forum to see if anyone tried something similar and wisdon to share the thought:

    • Make custom cables which connect the pins 1-16 of all eight banks 2630's header with a single Ribbon connections 16 son carrying the signals emitted by the interconnected banks (poles!).

    • The custom cable bundle will also include a wire connected to the pin18 of each of the eight banks (line connections!)

    • 24 total wires in the harness will end in the header connections who will probably partner by the lines that I currently connect to each object to be measured.

    • Make additional harnesses that interface with the Test System B header pins.

    • Make a map of derivation using band Council or a similar material to provide header pins to connect the two above custom cables and allow the connection of other elements such as resistors using Terminal level.

    I checked this concept using the Assembly of 176 pins four terminals, like a bunch of little pieces of wire and cable. Are there other issues that I have to configure, such as the elements of a terminal that establish physical components of the switching topologies? The bowels of the PXI-2632 provide more features than the interconnection of the sets of eight sixteen pins? The bowels of the PXI-2630 connect elements that do not allow my proposed scheme?

    I appreciate the suggestions and all entries!

    Thank you

    Jeff Zola

    Hi Jeff,

    First a correction to my previous post: 2632 Terminal has no reed relay protection resistors as I said earlier. The resistance that you were referring to the 2632 and those that I confused, is there to connect the columns of the switch. Resistances have a resistance value zero and act as the electrical connections. The 2632 connects columns c0 to c16, c17 c1, c2 to c18 and so on. Switch cards 2531 and 2532 have the protection relay reed on board resistors.

    As for resistance in the map that protect the reed relays, they are generally very low and do not significatly affect even small tensions that pass through the switch. The resistance won't affect all currents in the map. Any effect that the resistors have on tensions will be with the precision of the switch card specifications.

    Thus, to address the other issue in your post, there is no resistance in the connectors because they are not necessary.

  • Remote control of the instsrument of the PXI controller

    Can you suggest the best method to control PXI instruments with an external controller?  I have two machines.  A standard desktop system and a PXI chassis with controller and installed instruments.  I can the remote desktop for the PXI chassis.  I expecting MAX to recognize instruments in my desktop computer PXI chassis and use VISA address as if it were local.  If possible give examples for a starting point.

    Thank you!

    The Keysight support team helped me to solve this problem.  They showed me MAX remote system control and walked me through the Setup program.  The link they sent me from the site NEITHER.

    http://digital.NI.com/public.nsf/allkb/F3AB0B5D7DBA367C86257982005BBF2C

    Thanks Keysight!

  • Trip trying to rearm with the pxi-5122 times

    Hi all!
    This is my first discussion in this forum so I'm not sure this is the right place to post, because I'm using LabView, but maybe it's a hardware problem.

    Then... I have a problem to calculate the tripping time rearm to pxi 5122.
    Compared to data sheets, I read that it should be about 3 us with the CDT to the large or 12 US if on.
    But I need a precise measurement of the time out after each record measured so I decided to find it by myself...
    With the help of an acquisition program that I have previous written in LabView, I started only acquisitions of 10000 records and each record is composed of 128 samples; as signal I've used waves square with different frequencies, 10 volts peak-to-peak (my trigger was set on the first channel of 5122 with 1 volt in value of edge).

    First acquisition: wave of 50 kHz. Theoretically, I s 0,2 need to capture 10000 records without losing all the square wave signals. Choose a time of acquisition for a single record of 15.3 us, I found that the time required is 0.199998 , very similar to the one expected.
    Then by choosing a time of acquisition for a single record of 15.4 us, I found approximately 0.4 s.
    I can guess that this latter one each tops of two waves will lost so I held twice the capture of 10000 records time.

    Because the wave is 20 us I calculated a timeout of 20-15, 3 = 4.7 us.
    It wasn't like the 3 described us for the 5122 but I was not impressed and I went with my essay.

    Second wave: 20 kHz. I need 0.5 s to capture 10000 records without losing the square wave signals.
    What I found was that in this case, choose us an acquisition time for one record of 39.6 required 0.5 s to capture all vertices, then with 39.7 us I held about 1 second, once again, twice by the time.
    The previous example, I calculated the dead time: 50-39, 6 is 10.4 us.

    Very strange... idle time I'm supposed to be the trigger for rearmament (and thus fixed) did not differ in 2 cases.
    Tried with other wavelengths, the values are always different.

    This also the frequency of the square wave of fixing and changing the number of samples per record.
    For example, with 128 samples per files as I told before, I needed a measurement time of 15.3 US to collect all the consecutive summits, while 64 samples I need 12.8 us and so forth.

    So it seems to be a dependency between the dead after a record time (the trigger reset? now I'm not sure if I can call it that) and the sampling frequency of the pxi 5122.
    But I don't know why, the acquisition of data behave in this way.

    Is this good? Rearm time should be set, shouldn't it?

    I know it took some time to read my problem but I tried to be more precise, I could.
    Thank you in advance.

    Giacomo

    Yes that's correct.  However, I do not think that its acceptable rate of the nearest synchronization that is chosen.  I really think he goes to rate lowest according to acceptable timetable.  So, if a synchronization rate is 2 and another is 5, and you want a 4.9uS rate, the synchronization will be 2, while 5 is the closest.  (Or maybe it's the other way around)  That's why you see the double period during the change of rates by just a fraction.

  • The PXI-8195 system state: not configured

    Dear community,

    at startup time real pc pxi 1042 with a Don t of controller pxi-8195 RT-model start. The display shows the following message is displayed:

    (the doesn´t of pc have an operating system because it is used only for the RT model)

    Transfer of control of user program.

    LabVIEW RT Boot Loader

    (C) copyright 2002-2005 National Instruments Corporation

    LabVIEW time real Single-Core Kernel

    MAX system identification name: not specified

    The initialization of the network...

    Device 1 - MAC address: xx - 0.0.0.0 (primary)

    System status: not configured

    I hope that someone of you can help me

    Hello

    First of all, welcome to the Forum OR!

    You can find a detailed guide of your PXI system with your real-time system configuration here:

    Initial setup of the PXI real-time and install the http://www.ni.com/white-paper/12871/en/ software system

    This screen your see is just a console that returns events on the pxi system. In your case, it indicates your pxi is not configured.

    You cannot create events of keyboard and mouse on a system in real-time because it would mean that your system is not more deterministic.

    For this purpose all the configuration and programming is done on a host pc, which connects to the pxi and deploys your programming.

  • How can I display an analog input for the PXI-5105 on LabVIEW?

    Hi all

    I am very very new to LabVIEW and I started to tinker with it. I use the version of LabVIEW 2010 SP1 on Windows 7 OS. I also have the chassis NI SMU-1073 with SMU-6361 and PXI-5105 modules and the chassis is connected to my PC via PCI. I became familiar with the devices and trying to see some analog signals to one of the channels on the PXI-5105 module in a graph in LabVIEW.

    I would appreciate your help.

    Hello Henokview!

    I would like to read through these tutorials to understand the steps of programming of the NOR-SCOPE, NOR-DAQmx. After reading these links below, you will be able to understand how to connect the output of a readfunction to a chart or table.

    DAQmx

    http://www.NI.com/white-paper/5434/en

    OR-SCOPE

    http://www.NI.com/white-paper/3382/en

    Best regards

    Jonas

  • 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

  • What do DAQmxSetAIUsbXferReqSize(), DAQmxSetAOUsbXferReqSize() and DAQmxSetDOUsbXferReqSize() on the boards of the series M UBS?

    I have a multithreaded C ++ Builder program that acquires data analog with a wire and output of analog and digital data with a second thread.  The inputs and outputs occurs in blocks of data every 0.1 seconds.

    On the advice of M - and X-Series PCI and PCIe this output is smooth, but on a Board of USB-6259, admission is VERY NERVOUS waiting on every 0.3 seconds or more. This makes the use of USB M-Series cards with my program basically unacceptable.

    In an attempt to reduce nervousness and smooth the input/output of data, I tried to use the DAQmx features

    DAQmxSetAIUsbXferReqSize(),
    DAQmxSetAOUsbXferReqSize(), and

    DAQmxSetDOUsbXferReqSize()

    for my USB-6259.  However, the pieces of data and therefore smooth data inputs/outputs, these functions in different values to SUPPOSIDLY decrease of entry and exit to 0.1 second is no. DIFFERENCE OBSERVABLE versus normal code without them.

    My question is: these functions only designed to do something on the new X - Series USB series cards, but not the boards of the series M USB?  And is there a detailed documentation on these functions beyond C DAQmx help?

    Thank you.

    Bill Anderson

    Hi Bill

    I started looking into questions about the USB-6259 and functions of the required size. Since your post I understand you have two tasks at the same time, one is a task of entry and the other is data ouputting. If you could send me more details of your request, so I can look into this again, would be great. You can specify how tasks are put in place, so if you use synchronization, buffering etc so I can look into the issue for you.

    With regard to the questions you have asked.

    (1) these functions are not limited to the X series, so they should work as you would expect, and I was not able to find other problems with these features on our system.

    (2) unfortunately aid DAQmx is the extent of documentation on these functions, even when there is nothing on our system to go further in the functions.

    When you run your program if other programs and applications are open, it can cause treatment slow down, so that bare in mind also. If you run the task, how would this affect the use of the CPU?

    I found a few documents concerning your application which can help you to grow and to develop your code.

    What makes a High Performance Bus?

    and

    Streaming of signals of NEITHER: support the flow of data at high speed on external PC buses

    in this document, the external challenges of the bus for the Data Acquisition section has some good information on what is feasible with USB devices.

    If you have any questions or any other questions or would like some additional information, thanks for posting on this forum and I'll get back to you.

    Thank you

  • I can't read thermocouples on the PXI-6225-series M 1 connector.

    I'm reading 30 measures by thermocouple in differential mode.  I use AI0 as the CCM.  Attached are the connections that I use.  Negative contributions all relate directly to the GND AI.

    I have no problem to read the thermocouples in slot 0 (AI1 by AI 7).  I have install Connector 1 direct feed by mode (switch 1 & 2 right and switch 3 upwards).  In MAX, I get a normal reading, but it does not vary by heating the thermocouple.  In my real program, it is as if there is nothing connected. Any ideas as to what I can hurt?

    Thank you

    Mark

    Mark,

    Thanks for posting. I think the question might be to see you about the how the SCB-68 must be configured in mode of direct crossing to be used with the connector 1 on the PXI-6225. When the switches on the block are defined for a direct crossing, the Council is not connected to the CJC. Do not have a connection to a CCM on this connector could cause this problem.

    A potential solution, you can try is to connect a temperature probe to AI16 and follow the steps in this KB, using that channel instead of the CJC channel. Let me know if it helps!

    Kind regards

    Joe S.

Maybe you are looking for