Acquire Signal with NI-SCOPE 5102

Hello. i'm a beginner in LabView. I have to acquire signal from a NI-Scope 5102 and I have absolutely no idea how to do that in LabView, I instaled the drivers but in my computer I don't have the acquisition boards. I tried to see the examples and I can´t find nothing that can possibly help me. I need a step-by-step explanation of what to do. 

FilipeV wrote:
All right I will tell you what I have to do. In college we built a printed circuit board that produces a triangular and square signal. In the second part of the work we have to build a virtual instrument capable of selecting only of both signal or both of them at the same time, display in a graph the selected signal and saving the values in a file. The signals generated in the circuit will be read with a NI-Scope 5102. If you wanted to do this what would you do?
I will see the examples and try to understand what I should do.
I only had one lesson of LabView and we didn't do anything like this. We only worked with some waves and learned to control the frequency and other parameters, and to view the waves on a graph. That's why I'm so confused with this.
I'd cheat.  You haven't been properly trained with the tool.
Use Signal Express Set up measurement step and data logging.  Configure the OI with a boxes for chanel selection. test it.  Generate LabVIEW code
The context aware help you'll have in SE will probably teach you a bit about scopes too.
(I can't believe I just said that but if the profs won't teach the tools that only leaves bad practices to get'r'done) Don't think that your programming that way though
Jeff

Similar Messages

  • Aquisition of parts of large signals with ni scope

    Hello
    I am trying to aquire large data with ni scope.
    The aquisition time is about 2 seconds with a sampling frequency of 50 MHz.
    I figured out that this amount of data is too large. The NI USB 5133 does not have enough memory.
    Actually I do only need some parts of this 2senconds signal thus it would be possible to aquire only some parts of the signal.
    Moreover I need to average the signal to reduce the noise.
    I am trying and trying but couldn't make it out so far.
    Maybe you could help me with some ideas....
    Thank you very much

    This type of question would be more visible on the High Speed Digitizers Forum.  
    The USB-5132/5133 is a finite acquisition digitizer.  The record size is limited by the total amount of memory on the digitzer.  A 32MB/ch memory option for the USB-5132 and USB-5133 has just been released, which increases the maximum record length by a factor of 8 in comparison to the 4MB/ch option. 
    If you need to acquire more data, you must re-initiate the task to take a second record.  There will be some "deadtime" where no samples are acquired during this initiate step.  Some benchmarks have been provided to show what equivalent data rate can be achieved using this method.  For continuous acquisition, consider a PCI, PXI or PXIe digitizer.
    Jennifer O.

  • Acquire signals with shaft encoder rt

    Dear Forum members,
    I have a cRIO and using RT to acquire  pressure, temperature, speed and torque signals. I'm also using  a shaft encoder of which one of its two channels gives 360 pulses per rev ( 1deg per pulse). I want to acquire another 2 pressure signals per every degree say for 2 to 3 revs. The problem I'm facing is, being inexperience in labview RT, that I'm not too sure how it is done. I have tried to search for examples and could not find any or may be I have not search in the right place.
    I would be much aprreciated if you could guide me where to look for it. I have attached an image of the main part of the block diagram.
    Regards,
    Ash
    Attachments:
    comp.png ‏45 KB

    Are you asking about the logic to read the pressure transducer value? The speed you are reading is a calibrated value ( conevrted to Engineering unit - rpm)?
    I see the configuration of your timed loop as 1KHz and the dt is 1000 so you are iterating the loop every 1 second, not a right approach. Since you have the RT controller you can go for 1KHz with dt = 1 without any problem. Also do not pass the error wire sequentially it may slow down your execution when you are going at a higher rate.
    What is the max speed at which you will run? Any specific requirement of acquiring pressure/degree rotation?
    The best solution is the one you find it by yourself

  • Acquire a signal with mac osX

    Hello.
    I am a very beginner with LabView. 
    I would like to acquire a signal with a NI-USB 6009. I have LabView 10 on osX 10.8. I already installed the daqmx base driver.
    Could you explain me how to acquire a signal which come from the NI USB 6009 and export it as a list of numbers (the amplitude and the time).
    Thanks!

    Hello matttgic,
    What kind of signal do you want to acquire/generate?
    For exemple, if you want to acquire an analog input, you should use the architecture use in the file "Analog_input attach to this email.
    As Johnsold told you, you can find some code for your device in the "find exemple" section of LabVIEW.
    Hope this help
    Sabri 
    Attachments:
    Analog_input.PNG ‏13 KB

  • Output pulse with NI-Scope only, on 5102 PFI line

    The NI-Scope documentation briefly mentions a "Configure Digital Output" function, but it is not clear exactly what this does, and what parameters are available (e.g., pulse width, polarity, stand-off, etc...), or if it merely "configures", and another function is needed to actually generate the pulse.
    Programming in VB, with NI-Scope, for the 5102, what NI-Scope function(s) would I call to initiate an output pulse on a PFI line? What parameters of the pulse can be controlled?
    Thank you, Ed More

    Hello Ed,
    You need to use functions in NI-DAQ in either LabVIEW or ComponentWorks to do this. There are some examples and a knowlegdebase article that describe this.
    Here are the links:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/fead136291ec002186256aaa006c2019?OpenDocument
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DFC756A4E034080020E74861&p_node=175381&p_source=external
    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3DD5756A4E034080020E74861&p_node=175341&p_submitted=N&p_rank=&p_answer=&p_source=External
    If the links do not work, go to developer zone and search on 5102 and pfi to find the examples and go to support and search in knowledgebase on 5102 and pfi for t
    he knowledge base entry.
    -Brian

  • Acquire generated signal with this hardware ?

    Hello everyone,
    I didn't really know where to post this, I apologize if it's the wrong place.
    I'm very new to the LabView thing, and I have for project to trigger an injector and so to create a digital signal like this:
    Due to the characteristics of the signal (110V, 10-20A, injection duration: ~20ms), someone recommended me this hardware (sorry if I'm not allowed to post these links):
    - programmable power supply: http://fr.farnell.com/ea-elektro-automatik/ea-ps-9200-25-2u/alimentation-1-voie-200v-25a-prog/dp/2422474
    - USB interface: http://fr.farnell.com/ea-elektro-automatik/usb-interface-ea-if-u1/interface-for-psi-el-usb/dp/1268147?ost=EA-IF-U1
    I'll try to figure out on how I create (on my own for now) the signal with LabView.
    My question is, will I be able to acquire the generated signal with this hardware in LabView, do I need something else ?
    Thanks.
     

    I have designed and built injector drivers. To get a waveform somewhat like the one you showed requires a sophisticated and fast control circuit. I would not call that a digital signal.  It may be controlled by some kind of logic signals, but that is an analog signal.  No programmable power supply I have seen is fast enough to come close.
    The pull-in current does not typically go into a ring/overshoot flat-topped waveform as you have shown. It follows an exponential curve defined by the L/R rise time and the current limit set by the supply voltage and the injector coil resistance. For the injectors I have seen that current limit is much higher than the current required to generate the magnetic field required to open the valve.  That oscillatory response could be the result of a switch-mode current regulator.
    Similarly, the hold-in current does not occur by magic. Either the supply voltage needs to be changed (open loop system) or the current sensed and regulated (closed loop system).  The kind of ringing you show can occur in a switch-mode current regulator.
    Lynn

  • Why doesn't SignalExpress communicate with TDS3054B scope?

    HELP!
    I have a TDS3054B scope with v3.39 firmware installed on it.  I want to communicate with it using SignalExpress but can't!  I can see the instrument in Measurement & Automation Explorer (v4.2.0.3001).  It shows up as GPIB0::1::INSTR.  I have a USB-GPIB cable going from my laptop to the scope.  The laptop is running LabVIEW 8.2.  I have installed the drivers for the scope from NI's website but still can't get it working...
    I can communicate with the scope using Tektronix's OpenChoice Desktop software, but that software is limited in what it can do...
    Any suggestions?

    Thanks again, Kent. 
    The article helped some, but I still don't have it working...
    In MAX, under the IVI Drivers >> Logical Names, I have the name MyScope.  For the General tab, I have the Driver Session listed as tkds30xx & a Description "TDS3054B oscilloscope".
    In MAX, under the IVI Drivers >> Driver Sessions >> tkds30xx >> General tab, I have the following:
    Initialization Options enabled: Cache, Range Check, Query Instrument Status;     Simulate With: Don't Simulate;     Driver Setup: tkds30xx;     Description: TDS 3000 Series
    In MAX, under the IVI Drivers >> Driver Sessions >> tkds30xx >> Hardware tab, I have the following:
    Hardware Assets: Name - TDS3054B (checked); Resource Descriptor - GPIB0::1::INSTR
    In MAX, under the IVI Drivers >> Driver Sessions >> tkds30xx >> Software tab, I have the following:
    Software Module: <None>;  my only choices are <None> or NIDMM.
    In MAX, under the IVI Drivers >> Driver Sessions >> tkds30xx >> Virtual Names tab, I have the following:
    Virtual Name: CHANNEL1, CHANNEL2, CHANNEL3, CHANNEL4;     Physical Name: CH1, CH2, CH3, CH4
    In MAX, under the IVI Drivers >> Driver Sessions >> tkds30xx >> Initial Settings tab, I have nothing.
    In LabVIEW SignalExpress, I go to Add Step >> Acquire Signals >> IVI Acquire >> IVI Scope Acquire.  The Step Setup box is displayed.  On the Configuration tab >> Device section >> IVI session name, I select Create New...  Another dialoge box opens with an IVI session name in it.  I change it to MyScope (same as in MAX), choose the Resource Descriptor GPIB0::1::INSTR (same as in MAX), but can't select an instrument driver.  The only thing available under Instrument driver is a check mark.  I can't select it for some unknown reason.  I hit the OK button & the box closes, returning to the Step Setup screen.  I try to run the step once & get an error stating:
    "ivi_IviScope Initialize With Options.vi<ERR>
    Driver Status: (Hex 0xBFFA1207) Primary Error: (Hex 0xBFFA1207) The item does not exist in the collection.
    Elaboration: tkds30xx"
    Back to square 1...

  • Using two daqmx create channel to acquire signals in random

    Hi
    I am trying to acquire signals from PXI 4472 with two DAQmx create channels. The channel selection is random. For eg. first create channel i have ch. 0, 2, 4, and 6 and the other create channel is Ch. 1,3,5 and 7. This I can do, but the problem is that I need to write the acquired data in seperate files for each channels and that too in sequential order. How can I do that. I know i need to use the loop but how will I will select the channels from two different task.
    Thanx in advance
    Nitin

    Ok, here was my idea, I am not sure if it will work for you or not after looking at your VI. 
    You can use some of your subVIS that you made to make the path different for each file.  But what I had in mind for the channels was what I did in the vi i attached.  You can just repeat the process for each of the channels and you would know that they were saved correctly.  You could also feed in the iteration number of the main VI while loop to have the binary files change sequentially (ie, data1, data2, etc).
    Again, this may not be a route you want to take, you may have other ideas. 
    Ill try to work on it some more later, but I have to get back to work for now
    Kenny
    Kenny
    Attachments:
    pxi subvi idea.vi ‏31 KB

  • Better estimation of phase difference between two signals with variable frequency!

    Hello LabView Gurus, 
    Being a power engineer and having just a little knowledge of signal processing and labview, I have been pulling my hair out for the last couple of days to get a better estimation of phase difference between two signals.
    We have two analog voltage signals; 1. sine wave (50Hz ± 1Hz) and 2. a square wave with exactly half of sine wave frequency at any time.
    At the starting point of operation (and simulation/acquisition) both signals will have no phase difference. However, the square wave's frequency changes unpredictably for a just a few millisecond but then it gets synchronized with sine wave's frequency again. This means that the square wave will be phased out from its original position. The task of the labview is to find the phase difference between the two signals continuously.
    My approach to determine the phase difference is to measure the time when sine wave crosses zero amplitude and the time when the very next square wave changes amplitude from zero volts to +ve voltage (I have a 0.5volts threshold just to avoid any dramas from small line noise). The difference between these times is then divided by the time period and multiplied by 360 to get this phase difference in angles. 
    As this part is just a small block of a big project, I can only allow 5000Hz sampling rate each for both signals. I read 500 samples (which means I read data from 5 cycles of sine wave and 2.5 cycles of square wave).
    Now the problem is, as long as the frequency of sine wave stays constant at exactly 50Hz, I get a good estimation of the phase difference but when the frequency changes even a little (and it will happen in the real scenario i.e 50Hz ± 1Hz  and the square wave's frequency is dependent of sine wave's frequency), the estimation error increases.
    I have attached my labview program. From front panel, you can set the phase of square wave (between -180 and 0) and you should see the labview's calculated phase in the indicator box named 'Phase'. Then you can press 'Real Frequency' switch that would cause the frequency to change like it would in real operation.
    You can observe that the estimation error increases after you push the button. 
    All I need to do is to reduce this estimation error and make it as close to the actual phase difference as possible. Any help would be greatly appreciated.
    I am using LabView 2009 for this task.
    The application is for electric machines and the stability/performance of machines under different faults.
    Thank you for reading this far!
    Regards,
    Awais
    Attachments:
    v603.png ‏320 KB
    v603.vi ‏186 KB

    Jeff Bohrer wrote:
    Basic math gives me a bit of pause on this approach.  You are sampling at 50 times the frequency of interest so you get 50 samples per cycle.  your phase resolution is 1/50th cycle or 7.2 degrees +/- noise.  You will need to samlpe faster to reduce phase resolution or average multiple readings (at a time cost that is signifigant)
    Jeff- (Hardly Working)
    I am sampling at 100 times the sine wave's frequency and 200 times the square wave's frequency.  Increasing the sampling rate completely solves my problem. But since I am acquiring several other inputs, I cannot afford a sampling rate higher than 5kHz.
    F. Schubert wrote:
    I'm not a signal processing expert, but here my basic understanding.
    If you simulate sampling with 5kHz and a frequency of 50 Hz (and both are 'sync' by design), you always get an exact 5 periods. Any variation of your signals frequency gives you a propability to get 4 or 6 'trigger' events. That's an up or down of 20%!
    The one measure to reduce such problems is using 'window functions'. They don't fit your current approach (counting instead of a DSP algorithm), so this needs to be reworked as well.
    My approach would be to use the concept of a Locki-In amplifier. You need to phaseshift your ref-signal by 90°. Then multiply your measurement signal with the ref signal and the phase shifted ref signal. The obtained values for x/y coordinates of a complex number. Calculate the theta of the complex number (with the LV prim). Feed this in a low pass filter.
    The trick on this is, that the square wave has harmonics in it, in this you are interested in the second harmonic which is the sine wave.
    To get rid of the effect that the sync between sampling rate and ref signal frequency gives an error, you then can use the window I mentioned above (place it before the lock-in).
    For a design that really plays well, use a producer-consumer design pattern to get the calculations done in parallel with the DAQ.
    I suggest you to check on wikipedia for some of the keywords I mentioned. Go also for the external links which lead to great tutorials and AppNotes on the signal processing basics.
    Sorry, it's not a simple solution I offer and we will have quite some conversation on this forum if you follow this path. Maybe someone else knows a simpler way.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml
    An interesting view. the sine wave can indeed be looked as a second harmonic of the square wave. I will implement your idea and get back to you as soon as I get some results. But since I have very limited knowledge of signal processing, it might take me a while to get my hear around the solution you mentioned.

  • Count edges of AI signal with NI 9221

    Hi,
    I'm trying to count edges of an AI signal that are acquired with an NI-9221 on a cDAQ. The average frequency is about 1kHz.
    I'm acquiring the signal with 10kHz but don't get the right amount of edges. 
    Is
    there any solution for this problem. I know, of course it would be
    easier to use a CTR-modul but my signals doesn't fit with the specs.
    Thanks for any help
    Yves

    Yes, I know. I wanted it to be posted in the Labview forum and hadn't realized my mistake.
    But I still don't have any solution....
    Yves

  • Measuring delay-time when acquiring signal?

    hi everyone,
    I'm generating and acquiring signals at the same time using 1 VI. And I need to display the delay-time in front panel. As you can see in the picture below, I have like 2us delay (for green) and about 25us (for red). 
    I'm using PXI 6733 to generate analog signal, and using PXI 5105 to acquire.
    Is there any way to display this delay in frontpanel??
    Regards,
    Yan.

    hi Gerd, thanks for reply.
    can you please be more specific about using numeric indicators? how should I put it into my program? I'm using a VI based on example NI Scope EX Stream to Disk.vi as reference. I would like to display it in front panel.
    regards,
    Yan.
    Attachments:
    niScope EX Stream to Disk1.vi ‏43 KB

  • Read encoder signal with 9201

    Hi
    I have a quite uncommon problem. I need to acquire the encoder signal with a NI-9201 (analogue module).
    Is this even possible? Of course I saw I that I should use a NI-9401 but my chassis is full...
    I already tryed to acquire impulse signals with such a module but they were slower.
    Thanks for any help.
    Yves

    Hi Yves,
    when you acquire data from an encoder, do you mean a quadrature encoder or rotary encoder?
    This encoder generates a binary or digital signal.
    Of course, you can always acquire a digital signal with an analog input module. This isn't recommended and necessary when you can use a pre-built api in the palettes for digital modules.
    When there is no free slot you can think about an expension chassis or a single carrier. This depense on your application.
    How did you acquired the slower signal until now?
    Kind Regards,
    Philipp K. | NI-Germany

  • Can I acquire data with VB from my DAQCard without using Measurment Studio?

    I have the Measurement and Automation Software on my computer and VisualBasic.NET. Do I need any other software if I am receiving 2 analog signals and outputing 1 analog signal on my NI DAQCard-6024E PCMCIA?

    The short answer is yes, you can acquire data with VB.NET from your DAQCard without using Measurement Studio.
    There are a variety of ways to do it. All of them require that you install either the Traditional DAQ driver or the DAQmx driver in addition to Measurement and Automation Explorer. The DAQ drivers are included on a CD or CDs with your hardware. They are also available on the quarterly National Instruments Device Driver CD.
    1) You can use the Measurement Studio DAQmx .NET API. This is far and away the easiest API to use to program DAQ cards in VB.NET and C#. This API is included in the DAQ installer and does not require you to purchase Measurement Studio. However, without Measurement Studio you do not get the benefit of the DAQ Assistant integrated into Visual Studio .NET. The DAQ Assistant, when integrated into Visual Studio .NET, allows you to graphically configure your DAQ tasks, generates the code you need to configure your tasks, and generates a .NET user control (with user interface) that demonstrates how you use the tasks that you created. The caveat to this approach is that PCMCIA cards are not directly supported under DAQmx 7.0. There is, however, a beta versin of DAQmx PCMCIA support as described in this KB article.
    2) You can use the .NET P/Invoke services to call the Traditional DAQ or DAQmx C API directly. See MSDN for more information about P/Invoke. If you choose the DAQmx API, you will need to install the beta of the PCMCIA support as described in this KB article. National Instruments does not provide any examples, language-specific documentation, or code generation for this method. You'll need to look at the C API documentation to see what to do.
    3) You can use the Measurement Studio Traditional DAQ ActiveX controls. These are included in the DAQ installer and do not require you to purchase Measurement Studio.
    The absolute quickest and easiest way to get started using an NI-DAQ card in VB.NET is through the DAQ Assistant and Measurement Studio Professional or Enterprise edition.
    Your next best approach is to use the native .NET DAQmx API. This API was designed from the ground up to support .NET languages. There are examples written in VB.NET to help you get started.
    If for some reason, you don't want to use the native .NET API (or your hardware is not supported under DAQmx), whether you use P/Invoke or the ActiveX controls is a toss-up. It depends mostly on whether you are already familiar with the C API or the ActiveX API.
    David Rohacek
    National Instruments

  • How do I acquire signal few seconds before triggering

    Hello guys,
    I am working on impact test and I want to acquire signal few seconds before trigger starts. How do I configure my DAQ assistant to do that?
    Thanks.
    Solved!
    Go to Solution.

    Well usually you configure your DAQ device (Which one do you use?) to continiously capture data into a ringbuffer and set the triggerposition to 20%-50% (related to the number of samples you want to read). After the trigger is set the start of your data will be set by the driver. 
    All this is done by the DAQmx or scope driver. Just set the samplerate, number of samples, trigger and position of trigger.
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • How can I acquire signal from the 2 counters on my 6034e board?

    I want to record one analog signal and one counter/timer signal with Diadem 8. I have a 6034e board. AI is not a problem, but when I define a counter in Diadem, for one of the two counters of the board, I get no or strange readings.

    In MAX, I can only test one feature: pulse counts. So I connect a TTL signal between the source and the digital ground, and it counts a random number, of around 20-30 pulses, for each trigger. Same in Diadem. When I try period measurement (connected at the gate) or others with Diadem, I don't get anything.
    I believe my wiring is correct as I'm used to counters with the PC-TIO-10 c/t board.

Maybe you are looking for

  • No data found due to cost element adding leading values in report

    Hi Experts, I have an issue where when the run the analyser with some values in variable screen it is displaying the output correctly in analyser tool. I am filtering the cost element with a single value for ex 4545000 and I have kept that in rows .

  • How do I transfer an itunes film rental downloaded onto my iPhone 5 onto my pc?

    I downloaded a movie from iTunes that i rented onto my iPhone 5, but would now l would like to watch it on my pc instead.  ~When I connect my phone to my pc I can see it in my rentals, but when I go into iTunes it isn't there (on my pc), only on my p

  • Windows XP x64 RC1 on a RAID-0 array?

    Hey all. This is the wrong forum for this post, so technically I'm breaking a rule. But then, there's no right forum for ATI Radeon Xpress motherboard issues, and technically my problem isn't even with that. I have an MSI RS480M2-IL motherboard, whic

  • Error creating Streams example - ORA-01729: database link name expected

    Running 11gR1. Example from doc, "4 Single-Database Capture and Apply Example" the database name is "11G3". when I run the Step 3 statement below, I get the error below. What am I doing wrong? Thanks! DECLARE iscn NUMBER; -- Variable to hold instanti

  • Xp_cmdshell error, but not calling xp_cmdshell anywhere

    I'm using SQL Server 2005.  My company uses a very large, complex legal services developed by an outside firm, with whom we work pretty closely.  I'm adapting a stored procedure that writes one record into a table which has several required columns (