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

Tags: NI Software

Similar Questions

  • 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

  • Filter low pass analog (anti-aliasing filter) external to the NI USB 6251 housing

    Hello everyone!

    -I m trying to acquire an analog signal of tension (high frequency content) using a connected to an edge NI USB-6251 BNC-2110. I learned in this Labview Forum that NI USB-6251 has no analog low-pass filter programmable (or anti-aliasing filter), so that I can't help but jitter when scanning my signals. For my application, the cutoff frequency of the analog low-pass filter must be equal to 100 kHz or MORE (maximum of 500 kHz). A possible solution to solve my problem, would be to work with an external analog low-pass filter before you scan the voltage signal. Based on this I'd like to know:

    (1) national Instruments develops analog external filters? I need a filter which also has one output, analog, so that I could send also the low-pass analog filter filtered signal to my NI USB-6251 box to scan correctly it!

    (2) what model of external low pass filter would be compatible with the NI USB-6251 housing?

    Any help would be much appreciated!

    Best regards!

    Hello

    all high resolution of the M series (628 x) cards are equipped with a filter low pass which can be enabled or disabled programmatically. For the anti-aliasing filter feature, examine the boards of National Instruments DSA (dynamic signals Acquisition) acoustic and vibration measurement
    currently the NOR 9221, 9225, 9227, 9229, 9233, 9234, 9235, 9236, 9239 and 9237 C Series modules feature anti-aliasing filters. These modules are intended for the high accuracy measures for which anti-aliasing filters are a necessity.

    Houssam Kassri

    OR Germany

  • 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)

  • Apple Watch magnetic charging Dock is compatible with the adapter USB 12W power and if so, is the adaptor 12W shorten the charging time?

    Apple Watch magnetic charging Dock is compatible with the adapter USB 12W power and if so, is the adaptor 12W shorten the charging time?

    Yes and no.

  • Satellite M30X-129 loses connectivity with the external USB device

    I have a problem with my laptop that has regularly been do worse and I can handle is no longer!

    Whenever I work with external devices via USB ports (all kinds of devices but my external hard drive Smartdisk CrossFire and my iPod in particular), after a certain period of time (sometimes minutes, sometimes hours) the laptop loses connectivity with the device.

    If happens to be listening to the music, download photos from a camera or laptop computer for the ' net or sync of the iPod, the connection is cut off, turning off the device and I have to start all over again!

    I'm almost at the point of launch of the laptop by the window, so any help is most welcome.
    Thank you
    Abderrahman

    Hello

    This happens also with the external USB mouse?
    This occurs if the power adapter is plugged or only if the laptop running on battery?

    In-hubs properties > Device Manager USB root-> power management
    You will find the option called allow the computer to turn off this device to save power.

    I would recommend the brand and disable this option.

    Maybe it helps.

    By the way; When do you update the operating system? I think that it s there long time, perhaps some system files or registry entries are corrupted or a 3rd party application affect the USB functionality?

  • Hello. I have Photoshop CS4. Can I use this with the latest Mac OSX version10.10.1?

    Hello. I have Photoshop CS4. Can I use this with the latest Mac OSX version10.10.1?

    Hi Sonste,

    Greetings.

    For many people, it worked, and for some, it didn't.

    CS 4 could give you a run-time error java you can download an installation

    Java for OS X 2015-001

    Suggest you check the link call

    http://www.Mac-forums.com/OS-x-operating-system/317803-Adobe-CS4-Yosemite-10-10-a.html

    Concerning

    Rohit

  • How to use photoshop with the same account on more than one laptop?

    How to use photoshop with the same account on more than one laptop?

    a single user license entitles you to two facilities simultaneous/activations.  so, what's the problem?

  • Acquisition of vibration with the NI USB-9234 using the NIDaqMxBase library

    I have a NI USB-9162 linked to a NOR-9234 properly configured and installed under OpenSUSE 11.3. It's the output of ldaq:

    >lsdaq
    --------------------------------
    Detecting National Instruments DAQ Devices
    Found the following DAQ Devices:
    NI USB-9234: "Dev1"    (USB0::0x3923::0x72B5::0164852A::RAW)
    --------------------------------
    

    I'm developing a simple application to acquire the values of vibration of a project connected with an accelerometer.
    We start from the example of acquireNScans - AnlgStart.c of NIDaqMxBase 3.4.5 documentation.

    Unfortunately, the program fails and generates the following error:

    "DAQmxBase Error -200428: Value passed to the Task/Channels In control is invalid."
    

    Then I realize that the NI9234 doesn't support analog and digital triggers so I have decided to try with the acquire1Scan.c (a scan without triggering):

    int main(int argc, char *argv[])
    {
        // Task parameters
        int32       error = 0;
        TaskHandle  taskHandle = 0;
        char        errBuff[2048]={'\0'};
    
        // Channel parameters
        char        chan[] = "Dev1/ai0";
        float64     min = -10.0;
        float64     max = 10.0;
    
        // Timing parameters
        uInt64      samplesPerChan = 1;
    
        // Data read parameters
        float64     data;
        int32       pointsToRead = 1;
        int32       pointsRead;
        float64     timeout = 10.0;
    
        DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));
        DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_Cfg_Default,min,max,DAQmx_Val_Volts,NULL));
        DAQmxErrChk (DAQmxBaseStartTask(taskHandle));
        DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByChannel,&data,samplesPerChan,&pointsRead,NULL));
    
    printf ("Acquired reading: %f\n", data);
    

    Also this program fails and gives this error:

    DAQmxBase Error -200077: Requested value is not a supported value for this property. (Timing Mode)
    

    How can I get at least a single data value of the accelerometer of the device using the NIDaqMxBase API?

    Hi giaulo,

    The examples that you have tried to run are not compatible with your device.

    The 9234 does not support analog triggering, so examples of "acquireNScans" - AnlgStart.c do not work.

    He is also unable to make an acquisition of single point because is based on the architecture of delta-sigma ADC. Here is a knowledge base article explaining the limitation:

    KB 4SU94SH7: DSA Hardware Support a Point Acquisition?

    This is the reason why the "acquire1Scan.c" does not work.

    You will need run one example making an acquisition in the buffer. "acquireNScans.c" would be a good to watch. Be aware of all these examples, the default is +/-10V input range. The 9234 can only input +/-5V, so it will take a few changes. Also as you try to read an accelerometer, IEPE excitement is probably necessary. I've attached an example which is based on the example of "contAcquireNChan.c" that defines the range and allows the excitement for the device correctly.

  • The site with the details of our House has a "Brochure to download" which, for our House doesn't lose virtually all of its text but is OK, once downloaded, or on Internet Exp?

    The site is of Symonds and Sampson. You can click on the 'Download Brochure"which then displays the brochure in pdf format. In the case of our House, virtually all of the text is missing. However, it downloads to the computer properly and everything works fine in Internet Explorer.

    There is a bug in the default built-in pdf viewer.
    There is nothing wrong with your PDF file.
    See the attached screenshot to see what I received when I opened
    the link in my Firefox.
    I use Firefox 26.0 on Windows 7.
    When I opened the link that I saw that it was missing some texts.
    I've also seen the notification of 26.0 Firefox:

    This document PDF may not appear correctly.

    I opened the PDF file in Google Chrome and loaded perfectly.
    I will report this bug.
    This bug will be fixed in a future version of Firefox.

  • Apple TV 4 cannot be used simultaneously with the other Apple TV

    We have just added a 4 AppleTV to our collection of the 2nd and 3rd generation AppleTV (all run wifi that we're not wired Ethernet in the House). For the first week or so it was no problem to start the 4 AppleTV and one of the other two, but since yesterday on the AppleTV 2nd generation (just to set market and access to iTunes or my library, not really look anything like that) not only causes the AppleTV 4 deadly freeze, but I end up having to restart the modem and the router with the computer (note that) (, meanwhile, the AppleTV 2 seems to work but I get annoyed at to get the 4 works again and just had to turn off so I don't know how stable, it has been). I have a modem/router Netgear of Cox (even when the AppleTV 4 wasn't running, SpeedTest has returned a normal wifi speed) I only use as a modem and a Terminal Airport Express as my wifi router. My operating system in Windows 10. Nothing updated (other than the Synaptics touchpad software) between when he was working Friday and when he decided to stop playing at the same time on Saturday. Once the computer, the AppleTV 4, the router and the modem has restarted, I once more have access to my iTunes to the AppleTV library and play something.

    I still have intermittent problems where the AppleTV 2 and 3 suddenly decide that they cannot see my library and I have to restart iTunes (which is completely unrelated to the current issue and I'm sure function of the way that Windows treats Hello), but in the case of the AppleTV 4 trying to run at the same time as the AppleTV 2 restart iTunes does nothing. Even with completely disconnected the AppleTV 2, restart iTunes (and even the computer) and restart the AppleTV 4 I'm not even to mirror content access purchases through the iTunes store or iTunes on Windows to the AppleTV, so my conclusion that I had to reboot the router and the modem, which was the only way to return the feature.

    At one point we tried to replace the AppleTV 4 with 3, and he was unable to work as the AppleTV 2 and these two have been exploited in tandem for about 3 years now generally without interference other than a problem when we suddenly decides that he cannot see my sharing even if the other is played.

    If someone has any ideas as to why I am suddenly unable to run two AppleTV at the same time, I would like to know. I don't have time to get into it tonight we try to watch a movie, but I think to restore the AppleTV 4 factory settings and see if that solves this problem. I'm also fooling around with the configuration of the 3 units when I have the House to myself and are not trying to keep anyone entertained. I'll post back tomorrow if I can get 2 & 3 or 3 & 4 at the same time. I hope I get lucky and be able to operate in any combination again.

    Just a quick suggestion. Have you given different names mountain BIKING? Apple protocols for colocation and AirPlay are based on these names and get confused if devices with different IPs claim the same name.

  • Generate a binary sequence with the NI USB-6008

    Hi all

    I'm new to LabView and I am trying to generate a binary sequence with a box NI USB-6008. The sequence, I'm currently generate is a counter of 5 bits, i.e. 00000 00001 00010, 00011... 11110, 11111 placing each bit in a different digital IO of the of the 6008 NOR, so that I can use the County as the bits of selection in a decoder/demux.

    I managed to simulate the binary sequence and produce a graphical interface, but I have not found how to generate the sequence of bits with the NI 6008.

    Totally, I'd appreciate any help you could provide. Thank you very much.

    Hi JosephM,

    Good Afternooon and I hope your well today.

    I just tested the code on a 6008 and also released the above code is very complex - I was for some reason any fixed on using Boolean tables.

    Please see the attached code, in LabVIEW 8.6.

    Mind you, I have configured the task as a channel for all lines. i.e. digital single I spent, is the task value should apply to all channels selected in the entry. So if you select only port0/Dev8/$line0 for example, the DAQmx driver will examine the LSB of the digital and work so $line0 must be true from the false. It will NOT update all other channels. So when I select line0:4 - it will update the first 5 lines (bits) in digital. As the code generates a number from 0-32 he emotional generates 00000 to 11111.

    I hope this finds you well and sorry for the first post!

  • With the NI USB-6009 analog input lag

    Hello

    I try to acquire analog signals with NI USB 6009 using LabVIEW. (The signal is 50 Hz of the functional generator).

    However, the acquired singnal has dynamic splitters, which is NOT observed by my oscilloscope.

    I have no idea why this phase shift occurs.

    Any information is welcome. Thank you for reading.

    An image file will not help. Post your real VI. If Firefox does not work, use explore or Chrome to fix your VI (s)!

    You have here a Subvi, I don't see what's inside and how it is configured. In addition, this while loop is ridiculous: there is no button to stop him running. Never use the red button to abandon for a normal shutdown of a VI!

    Why you have configured NChan NSample? Measure a unique signal, Yes? For example, use 1 channel only.

    Edit: why do not you play first with an example given, delivered with LabVIEW?

    Your LabVIEW, go to the Help menu--> find--> material and output examples--> DAQmx--> entry--> and open 'Input.VI - constant tension!

    This VI allows to enjoy your analog signal.

  • Software AIO with the only USB 3.0 systems problems

    I just had problems with the installation of PSC 1510 and J5780 to be connected systems USB 3.0 only as a Fujitsu Lifebook A544 under W7 - 64.

    In both cases, download the latest package and stopped installation:

    http://www.Club-PAC.de/download/HPj5780-error.PDF%C2%A0

    W7-64 systems are fully patched, a "naked" before first Installation HP look so no HP software - lay before.

    Note: alle USB3.0 ports are in good condition!

    Reference:

    http://h30492.www3.HP.com/T5/Drucker-und-all-in-one-GER%C3%A4te-installation-und/installation-Softwa...

    http://h30492.www3.HP.com/T5/Drucker-und-all-in-one-GER%C3%A4te-installation-und/HP-J5780-keine-Inst...

    Solution (at least for Fujitsu of A544):

    If possible, use BIOS routines disable the functionality of USB 3.0 and USB 2.0 only instead.

    Windows will then take some time to install drivers for USB for USB 2.0 devices, but after that, the HP AIO software installation will succeed.

    Now, you can reactivate the USB 3.0 feature in the BIOS. Believe it or not, software, printer, scanner still doesn't work.

    Add on: evidence for quality control: using scanner in German will have Dutch expression on the button "Cancel"...

  • can I use Skype with the Ipad Pro or any other IPad?

    I want to know if I can use Skype with any kind of IPads?

    You can - the latest version of their app requires iOS 8 +: https://itunes.apple.com/us/app/skype-for-ipad/id442012681?mt=8

Maybe you are looking for