Analog generation using USB-6259 with C native

Hello

I've developed a sort of access library (with a unified interface for all types of tasks) for device 6259 and I don't know how to generate an analog voltage (other reports probably too) the way I want. I can generate finite or continuous signals, but only with the specified buffer samples (the signal is so very periodic). My intention is to use everyNSamplesEvent to change the contents of the buffer, so I can easily generate user-defined signals. I noticed the change in buffer is done when the task is stopped. But I don't want to stop the task to swap the contents of the buffer. How can I do this?

Hello

You develop this application using LabWindows CVI or Measurement Studio?
Can you please tell me what the DAQmx driver version are you using?

You can see this example if you are using LabWindows CVI.
http://zone.NI.com/DevZone/CDA/EPD/p/ID/1733

If I understand correctly you want a non regenerated output.
Please let me know your status.

Kind regards.

Tags: NI Hardware

Similar Questions

  • Measuring current using USB-6009 with a rheostat shunt resistance

    Hi all, I am an electronic engineering student doing my final year project. I am able to measure the current and voltage of a 9V battery, but not knowing the method that I use if it is correct.

    For the voltage, I have no problem getting it. But for the current, I connected a resistance of 1 k in parallel with the battery. When I run the program, I have a 9mA for battery. I understand when you use the DAQ assistant, for the installation of measuring current for USB-6009, that I need to specify as "external" shunt resistance and shunt resistance value (which is 1 k for the above experience).

    So, my question is when I use a rheostat as shunt resistance, what value should we indicate as a rheostat is a variable resistor, so it doesn't have a fixed value.

    Or the dimmer cannot be shunt resistance?

    Really need help and thank you for the reply.


  • iPod nano (3rd generation) used to synchronize with Itunes on a XP computer

    I have an Ipod nano 3rd generation that seems to have stopped. The only thing I see on the screen is the apple logo. I tried to reset a dozen times (at least) and installed the latest version of Itunes, but nothing helped. I do not see the ipod appears as a device anywhere on my computer. I downloaded SyncToy 2.1, but when I tried to install it I got the following error message:

    Component Microsoft Sync Framework 2.0 Core Components could not install with the following error message:
    "A fatal error occurred during the installation of Microsoft Sync Framework 2.0 Core Components".

    The following components were not installed:
    -Microsoft Sync Framework 2.0 Provider Services

    The following components failed to install:
    -Microsoft Sync Framework 2.0 Core Component

    Any suggestions?

    Julie

    Using MS Sync something won't solve your problem. Normally, you need iTunes to transfer music/videos etc. to and from iPods, phones etc. keys. Or you can buy the 3rd plugins for WMP, such as MGTEK Dropsi.

    Your problem is that the iPod nano seems to be frozen, I would try to leave a post on the Apple site as its more a problem for them than Ms. You need to find on how to make a plant of re - put in order for UN - gel you Nano.

    See you soon,.

    Jerry

  • IBM travelstar external USB compatibility with Portege 3480CT

    Hello
    I try to use an IBM & reg travelstar in a box external usb with my Portege 3480CT running Windows 2000 (with sp4). While the disc is recognized as plug-and-play on other computers running win2k and winXP, is not recognized on my Portege, which gives an error message suggests that the drivers are missing.

    According to IBM/hitachi (which make the player), no drivers are needed and the drive should work as plug-and-play, recognized as a generic USB HDD. This happens all other computers I've tried.

    Are their compatibility problems with this drive? Or are their special all the drivers necessary to recognize this configuration on the Portege?
    Thank you
    B

    Hello

    AFAIK there is no driver required for external hard drives and they are recognized as plug-and-play. Your Portege is an old unit and there may be a problem with the USB ports. Have you checked the other USB devices?

    It is also possible that there is not enough power, and in this case, it is recommended to connect the drive using USB hub with own power supply.

    Good bye

  • Types of stitching and massive cable USB-6259

    While I wait for my USB-6259 with massive endings happen I would like to start working on some PCB for my custom connections and that leaves me with a few questions unanswered.

    I'm looking for concrete answers, because the site and the pictures are not very clear.

    -Are the cables SH68-68-EPM male to female?

    -I see in the descriptions as the unshielded break tips CB-68LPR and CB-68LP have male connectors.

    But the armoured breakout boxes (SCB-68) do not tell or show what they have. I guess they have male connectors as well.  It is also why I guess the SH68-68-EPM cable is male-female.

    -I can't tell if the unshielded cable R6868 is female-female or gender?  The picture shows 1 female end, but not the other.

    -Finally, the documents for the USB-6259 show the pinout for the version terminal screws, but not for the terminals of MASS.

    I need to know what are the signals on each pin of the scsi cables to put 68 pins on my custom PCB connectors.

    Thanks for any help

    In the USB-6259 Product Page, go to the "resources" tab.  Under the tab "resources" are the designs listed for the device.

  • Using ChangeDetectionEvent with the NI USB-6259 housing

    Hello

    I am very new to labview and LabWindows, so maybe it's very trivial to solve.

    I would like to perform an action (change some elements of the user interface) whenever I get a rising edge of a TTL signal.

    I hoped to achieve by following the example of ReadDigChan-ChangeDetectionEvent, and by defining a DAQmxRegisterSignalEvent() front on one of the digital input lines, but I can't even use the example for my

    USB-6259 (BNC).

    When I try to perform detection of changes on the lines from the port 1 and 2 I get

    Modalities indicated do not support change detection.  Select the lines that support the detection of changes. Device: Dev1 physical Channel: port1/$line0 the task name: _unnamedTask<0> Code of State :-201020

    I missunderstand something? Should the digital in ports on the detection of change of 6259 support?

    When you try the same thing with port0 the application hangs for a long time and threw just a message saying that

    DAQmxReadDigitalLines() timedout.

    I hope this is enough information to answer the question. If not, what else do you need?

    Thank you

    Manual

    Hello

    It seems that the USB-6259 does not support the detection of changes.

    Link:

    In NOR-DAQmx digital change detection

    http://www.NI.com/white-paper/4102/en/#toc1

  • Create two independent signals and a pulse train with NI USB-6259

    Hi all

    I'm new to the forum, I searched but I've found no info about it.

    I have recently set up a vi that is able to generate from an NI USB-6259 case two different signals in frequency, amplitude and phase (see attachment).

    To do this with each cycle of the memory buffer size is changed accordingly for frequencies in order to see a whole number of periods and, thus, having not leak in the generation (or breaks).

    Now, I would like to generate a pulse train at a frequency that is an integer multiple of the frequency of the input signal (not the 50 Hz one).

    The resulting frequency of the pulse train could be changed on the fly (or at least be updated at each new round of vi).

    I'm stuck because I have already said that two analog output channels and I want the pulse train so that a digital camera for my Board (channel PFI) output, you have any ideas?

    Thank you very much

    Alberto

    PS. the vi is "program generazione.vi" but you must first install "signal.vi production".

    Hello
    It is a simple .vi which generates a configurable, buffered pulse train dynamically. I also want to let you know that with this type of advice (DAQ), it is impossible to update the output in real time. You must be careful because the time between you use "DAQmx Write" and the output effective physical change not IS NOT FIXED.

    Kind regards

    Matteo

  • How can I use internal clock case OR USB - 6259 BNC for the acquisition of digital data in my own big software?

    I want to integrate the ANSI C sample program ReadDigPort - ExtClk.c in my own big package.

    I want to use the internal clock of the BNC NI USB-6259 (.. 80 kHz 120 kHz).

    In the document:
    High speed M: Series Multifunction DAQ for USB - 16-bit, up to 1.25 MECH built-in BNC connectivity. / s,.
    is written:
    Or sample DI source clock: Any PFI, RTSI, HAVE sample or convert clock, AO, Ctr n out internal and many other signals sample clock
    The digital subsystem doesn't have its own dedicated internal synchronization engine. Therefore, a sample clock must be provided another subsystem on the device or from an external source.

    How can I use internal clock case OR USB - 6259 BNC for the acquisition of digital data in my own big software?
    With what other subsystem on the device can generate a source of the clock? How?

    It is possible to set a clock on an internal counter (for example ' Dev1/ctr0"):
    Creates channels to generate digital impulses that define the freq and dutyCycle and adds the channel of the task that you specify with taskHandle.
    DAQmxCreateCOPulseChanFreq (taskHandle, "Dev1/ctr0" units, clockName, idleState,
    initialDelay, freq, the duty cycle); works

    But it is not possible to drive this internal clock to a terminal (for example "/ PFI0/Dev1"):
    DAQmxErrChk (DAQmxCreateCOPulseChanFreq (taskHandle, "/ PFI0/Dev1", clockName, units, idleState, '))
    initialDelay, freq, the duty cycle); does not work: error DAQmx: measurements: type I/O of the physical channel does not match the type of I/O required for the virtual channel you create. Name of the physical channel: PFI0. Name of the virtual channel: clock

    The sample clock source can be derived from an external terminal (for example "/ PFI0/Dev1"):
    Sets the source of the sample clock, the sample clock rate and the number of samples to acquire or generate.
    DAQmxCfgSampClkTiming (taskHandle, "/ PFI0/Dev1", maximumExpectedSamplingRate, DAQmx_Val_Rising, ")
    DAQmx_Val_ContSamps, bufferSize); works. Acquire or generate samples until you stop the task

    But it is not possible to derive the internal counter of the clock (for example ' Dev1/ctr0"):
    DAQmxCfgSampClkTiming (taskHandle, "Dev1/ctr0", maximumExpectedSamplingRate, DAQmx_Val_Rising,
    DAQmx_Val_ContSamps, bufferSize); does not work. Error: Acquire or generate samples until you stop the task: make sure that the name of the terminal is valid for the specified device. See Measurement & Automation explore valid names of terminals. Property: Property of DAQmx_SampClk_Src: DAQmx_SampClk_ActiveEdgeSource device: Terminal Source Dev1: Dev1/ctr0

    Hi datafriend,

    using what it says is correct:

    Or sample DI source clock: Any PFI, RTSI, HAVE sample or convert clock, AO, Ctr n out internal and many other signals sample clock
    The digital subsystem doesn't have its own dedicated internal synchronization engine. Therefore, a sample clock must be provided another subsystem on the device or from an external source.

    This means that if you do not use an external signal as clock you can use the sample clock to HAVE it on board or at the output of the internal counter.

    There are also 2 ANSI C examples in this regard:

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/4485

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/4488

    So in both cases you have to use a fictitious task you need only for the generation of the internal clock (HAVE or CTR)

  • NI USB - 6259 BNC DAQ: analog input signal cross on the question

    Hello

    I use the NI USB-6259 BNC DAQ unit to acquire a four-channel analog signal, and I'm having a problem with a signal that affect others. The circuit, I am running is:

    I have a wire connected to a battery (two AA batteries at ~1.5V), which then feeds the signal cable to a BNC cable, which feeds an analog BNC of data acquisition channel. The field of NBC feeds to another wire, which is attached to a conductive plate.  The idea is this: when I touch the wire connected to the battery for the metal plate, I complete the circuit and thus get a binary not anything at all about 3V.  When I tested with an osciloscope using two channels (each earth connection to the metal plate) I get independent steps whenever I touch any of the sons of the respective batteries to the metal plate (i.e. it works as expected).  However, when I use it with data acquisition, whenever I touch a wire, I get a response in all other channels (3 others), even if their respective sons does not touch the metal plate.

    No one knows why this happens, and how I might be able to stop this 'cross-talk '?

    Thank you

    Veritas

    I see, and you're right.  This request will have trouble with crosstalk.  Luckily the ground channel thing should help you.

    Configure your DAQ to collect twice as many channels as you need.  Connect your wires in the odd channels and short circuit (ground) the entries of those even.

    Now when you scan the channels it will always technically crosstalk, but it will come from a channel to the ground so that there will be nothing to interfere with your measurements.

    At least that's the theory.

  • Problems when I want to update my complete system Mavericks using a USB key with the installation program.

    I want to "Refresh" my Mavericks home cleaning system and I still have a USB key with the complete installation program.

    With this USB key, I installed successfully already before Mavericks. Now, I want to repeat the installation by booting from USB key. But when the installation starts early an alert appears, said something like "... the verification failed - something is changed on the volume...". "and the cant of the installation continues.

    I've archived the original "OS X Mavericks installieren.app" from the app store and I have properly prepared another USB key using the terminal app, referencing the original installer, but I still get this alert when I try to install with this new USB.

    It is necessary for me to work with the Mavericks, because it's the latest version of the system on which I can run Adobe Creative Suite CS6 correctly. With the later versions of OS X, I get problems on my Mac Pro (end of 2008).

    I wonder what could happen with my first USB data, as I have already installed Mavericks successfully with it under the same conditions and after that he never touched the stick again so far. What can I do? What is the reason for this? Y at - there a site where I can get help or advice to solve the problem or if necessary can I re-download an Installer 'fresh '?

    Thank you and what is Berlin

    You can make a bootable USB to install using this free program that will do all the work for you. Try running disk utility/repair disk be before installation.

    Bootable USB Flash Drive-Diskmaker X

  • How to make a bootable USB using the disc with El Capitan utilities?

    Anyone know how to make a bootable USB key using the disc with El Capitan utilities?

    Try this its worked perfectly.

    http://www.Macworld.com/article/2981585/operating-systems/how-to-make-a-bootable - os-x-10-11-el-capitan-installer-drive.h...

  • How to use a USB mouse with 8 Thinkpad?

    Hello!

    I would like to know how to use a USB mouse with 8 Thinkpad. Here in the Brazil, Lenovo does not sell any micro USB USB converters. So, I found on the market several options, but mainly focused for Android tablets and smartphones and not Windows 8.1 devices. He will work with a converter OTG? It supports this type of technology?

    Thank you!!

    You can use any cable USB OTG, it's just the cable and two connectors. I use this Setup with USB keyboard. But it is more convenient to use a Bluetooth wireless mouse.

  • How to use a USB microphone with voice dictation on MacBook Air?  Machine recognizes the USB device, but the microphone does not work.

    How to turn on a microphone USB bluetooth with voice dictation (Dragon for MAC) on the MacBook Air?  Machine recognizes the USB device, but the microphone does not work.   I don't see no response.   I use OS X 10.10.

    Version OS X?

  • Bad drift with USB-6259 devices and acquisition of data PCI-6259

    We have both a USB-6259 and PCI-6259 installed on a single computer, linked to a SBC-68, with Matlab and Toolbox of data Acquisiution.

    For the purposes of test base, I wrote a script that generates a sinusoidal signal output based MATLAB, for a single DAC output.  I wired this single DAC output to two channels of ADC of entry.  For each sample output DAC, the script also takes a sample entry of ADC on each channel.

    --> Ideally, if everything works correctly, after you run the script, I see two channels of input ADC vector.  Tracing of each channel should give me a nice sine wave in Matlab.

    --> When I made trace data, here's what I get (see attachment).

    -->, I looked at the DAC output with an oscilloscope, and the DC offset is very close to 0 (this indicates to me that the part of output DAC works very well).

    Why is there this negative DC drift on two entries?

    Forgive my lack of knowledge - I know the difference between the DIFF and CSR connections, but I don't know where is the 'setting' for DIFF/CSR (what is a button/switch on the USB-6259 case?  Is it a software control in the code?)

  • Getting started with the NI USB-6259 housing

    Hello, I'm quite new product OR. I try to use NI USB-6259 device for testing. I would like to write my application in pure C++ (Visual Studio 2005) but have not obtained from Measurement Studio for VS2005. I know it's possible to develop a full functional application for driver DAQmx without MS. I read some articles in the KB, but everywhere there is no specific information how start to develop. The paths on sites where there is default examples are not valid on my box. I have the driver NOR-DAQmx 8.7.1. Thanks in advanse.

    Thanks for the help!

    I finally found the examples using the C sources and it let me check if it is possible to develop an environment of use NI USB-6259. Now I'm thinking of creating access for this device, but I will ask on in a new thread.

    Thanks again,

    Dariusz Boczkowski

Maybe you are looking for

  • HP G62 - black screen on power on

    HelloHaving a problem with my laptop HP G62. The computer will continue to feed on, the screen does not light, but the light on the power button flashes. The indicator light next to the charging port is red, just like the light next to the button wir

  • Links not working not not in Safari and Mail.

    Since I've updated my iPhone 6 more (128 GB) iOS 9.3, an annoying problem has come to life in Safari and Mail. In Safari, I can do a search or add a site URL Web through the top bar, but then I can't navigate more because one of the links is clickabl

  • 7.6.0.105 Skype crash after forced update.

    So Skype auto just updated for me and whenever I try to open Skype it opens then crashes immediately. I tried to uninstall and reinstall restarting the computer but the same result... it doesn't let me do anything just, it hangs at startup

  • Online number does not include minutes unlimited countries?

    I'm used to be a subscriber to an online number that includes unlimited minutes in this country. This year, when I tried to renew, it does not include the minutes! I didn't know until I noticed that my credit on my account is down! Now, I had to go b

  • Error when installing the Toshiba tools and energy savings

    Hello I have a Satellite A100-771 and installed Windows XP Professional with Service Pack 2.Subsequently, I installed all the drivers. After that, I wanted to install the Toshiba Utilities and received an error message: "Toshiba common Module not fou