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.

Tags: NI Hardware

Similar Questions

  • Hi, FCP my, library, was damaged, i, open, drank of the PCF, library and, he, worked, well, then, my, question is, which, do, with, the, old, library,?, is, again, I, working, throughout, with, the, a, used?, or, should, I, open, Abu, one, i used, each, t

    Hi, my, library, has been damaged, so I have, open, a, FCP BU library and this worked well, so my, question, is, what, do, with, the, old, library,?, is, always, workin g throughout, with, a, I have used?, or, well, I have, open, BU, one, i, used, each, times, I, open, my, project?

    Rename your backup library in order to take account of the original, and then delete the original.

    FYI: Identification will facilitate a slightly different name.

    Al

  • Windows 8 Pro with the media library is enabled, and the watermark is still visible

    Windows 8 Pro with the media library is enabled, and the watermark is still visible

    Hi all

    I have recently opted for the offer to upgrade to Windows Media Center from Microsoft and everything is is well spent, I had my product key, installed library and all was good with all countries, UNTIL I noticed that the watermark from Windows 8 is now visible saying '\n Mode Test Windows 8 Build 9200 of Pro with Media Center \n ".
    Once again that Windows is activated like her, and I quote "Windows is activated".
    Help please
    Aiden

    Open the command prompt (Admin) and then enter:

    bcdedit/set testsigning

    Now restart your computer and the watermark will disappear.

    The test mode is for test drivers. You have probably run Windows Experience Index.

  • Syncronize to acquisition of data with the generation of signals

    Hello everyone,

    My request is generate pulses on the output of two different to drive two LEDs and acquire detected pulse signal amplified photodiode.

    Actually pulses are generated by starting the writing on the analog output, and then start the acquisition (I need 200ms on average), stop the acquisition, turn off the driving LED and develop the acquisition and record the results.

    All this in a cycle it takes about 1.5 seconds to run.

    Next step would be to drive the outputs with a waveform (duty cycle of 50% of width of 250 ms) and acquire the signal of the photodiode in synchronization with the edge of the pulse.

    I tried to use the trigger function, but the examples are not clear on how to do it.

    I use NI 9205 or 9215 to acquire signals.

    Is there a particular entry to be used as a trigger?

    Thank you very much for your attention

    Hello

    I found that NI 9205 has inputto that one be used as trigger signal, i.e. AI0.

    At latest

    Eugenio

  • Confused about the disk space with the photo library

    I understand that Photos uses hard links, and that therefore the photo library should not take much more space than the old Aperture library. But in a sense, I think that's not strictly true, and ' t actually takes this amount of space.

    My current photo library is 174 GB. The old library of opening that I imported in April is 155 GBs I have a couple of other files in images, representing perhaps 10 MBs. Finder reports my folder of photos using 330 GBs.

    Worse still, the disk hard integer (which is 500 GB) said I have only about 8 GB of free. When I look at the files that take the place, it seems that the GBs 330 is exact, so the vast majority of the use of the disk is duplicated libraries.

    I kind of thought maybe I had actually an extra GBs 155 or something, because old files of opening were now linked to the photo library. But this doesn't seem to be the case.

    Can someone explain this to me? I want to blow the Aperture library, because I have no intention to never use Aperture again, but I'm afraid that there are files in this library that have never in Photos, so duplication.

    Thank you!

    My current photo library is 174 GB. The old library of opening that I imported in April is 155 GBs I have a couple of other files in images, representing perhaps 10 MBs. Finder reports my folder of photos using 330 GBs.

    Storing hard linked files is reported incorrectly.

    This is because the hard linked files are identical to the original files, and so the storage is counted twice by the Finder.

    See: Six colors: the (hard) link between iPhoto and photo

    The library of Photos that is created from your Aperture library should have approximately the same size as the original opening library, but the image inside the library are stored on the same disk as the same pictures blocks in the original Aperture library.

    But once you start working with the new photos of library, more links will break for the preview images.  If you change a photo, a new preview will created, and who will no longer be linked to the preview in Aperture. It will be saved there less storage, so. Also, if you used a custom size for previews in Aperture, the new extracted in pictures will need extra storage.

    Or, if you use iCloud library synchronization with iCloud may break references.  Original on your Mac could be replaced by iCloud original during synchronization and verification duplicates.

    If you no longer use the Aperture library, move it to an external drive to free storage on the internal drive.  If you discover missing photos in the photo library, you can access the Aperture library on external drive as well.

    See this document on what kind of reader to use: use locally mounted volumes extended, Mac OS X for your Aperture library

  • Construction of error with the sqlite3 library

    A project is built without any problem until I have add the sqlite3 library with which I get the following compilation error:

    /bbndk-2.0.0/target/QNX6/armle-v7/usr/lib/libsqlite3.so: reference to "decompress" undefined
    CC: /mnt/Projects/PlayBook/bbndk-2.0.0/host/linux/x86/usr/bin/ntoarm-ld error 1

    With the help of NDK 2.0 on Kubuntu 11.10

    Any suggestions on what I'm not doing correctly.

    Roger

    You added "libz" to your libs instead of just "z".  You can see here:

    qcc -o myTracker src/main.o -lbps -lpps -lscreen -llibz -lsqlite3 -V4.4.2,gcc_ntoarmv7le -w1 -g -Wl,-z,relro -Wl,-z,now
    -L/mnt/Projects/PlayBook/bbndk-2.0.0/target/qnx6/../target-override/armle-v7/lib -L/mnt/Projects/PlayBook/bbndk-2.0.0/target/qnx6/../target-override/armle-v7/usr/lib
    

    You want - lz.  There is no such thing as liblibz.

    See you soon,.

    Sean

  • Windows Live Photo Gallery crashes with the error "library stopped working.

    Hey everybody,

    I use Windows 7 on a PC

    Yesterday, the windows live photo gallery was working fine

    No version update has been made, and today its no longer works.

    The following message is displayed immediately after the opening of the miniature window with the button Edit is:

    "Photo Gallery stopped working.

    "A problem caused blocking the program works correctly. Windows will close the program and notify you if a solution is available. »

    I've done any writing in the community

    a. Uninstall and reinstall Microsoft essentials

    b. repair Microsoft essentials on the control panel

    c. download fix - it and search for problems

    d. research %userprofile%\AppData\Local\Microsoft\Windows Photo Gallery - not found any file Pictures.pd4 or Pictures.pd5 here, but just in case where I deleted all original images

    e. tried to look in the NVIDIA Control Panel but did not find anything which could be relevant here

    Any ideas?

    Thank you!

    Just started using photoshop, thanks for the help

  • Need of XLSX files tested to see if there is a problem with the content library

    Hello

    I have a file which causes an error when you use the library of Stellent. The file is a file XLSX and when we open and then save the file again, then does not cause the error. This leads me to believe that the file has been successfully created or something wrong with the library. More than likely it is the file. Is there any tool that I can use to test the file that will tell me what exactly is the problem? The file is automatically generated by a survey company. And so if we can show a problem with the file itself, then they will have to solve the problem in their autogenerator.

    Thank you
    Larry

    Published by: 1000345 on April 16, 2013 06:44

    Published by: 1000345 on April 16, 2013 06:45

    Published by: 1000345 on April 16, 2013 07:00

    Published by: 1000345 on April 16, 2013 07:00

    Which, in my view, that we use it for is to get out of text or metadata files to create an index on the data.

    Yes, it's also OutsideIn. I believe you can use the SDK to export research.

    If I were you, I'd do some testing base of the new version and it doesn't help, create a service request in Metalink so that management can take a peek inside.

  • The pci configuration 6143 S series for the acquisition of data with the analog trigger level? (say to .5v)

    I am interested in buying a probe voltage signals. I use NIDAQ S-series PCI-6143. My requirement is that I need to acquire only above a certain level. I tried to use the task of triggering NIDAQmx but it fails to give error-200077 code. and the description says im allowed to select only digital edge trigger.

    Help, please.

    Thanks in advance

    HI Maria,

    in fact, the message you get is itself, as NI 6143 specifications indicates that this card supports just digital triggering. You will find the list of material of the series that supports analog triggering here: that S-Series (61xx) Support analog devices triggering?, or you can use an external circuit as comparison of analog signal.

    Kind regards

    s9ali

  • Synchronize with the icon library

    I'm trying to use this feature of LV9 icon editor; the download seems to work (progress bar lights), but then I get this error to decompress:

    Error 42 occurred at NI_Unzip.lvlib: Open unzip File.vi

    Possible reasons:

    Error opening the zip file.

    «"" "String of full appeal:»»"»
    NI_Unzip.lvlib: Open unzip File.vi
    NI_Unzip.lvlib:unzip.VI
    Download iconlibrary files.vi
    NI.com_iconlibrary.VI

    I applied the patch in http://decibel.ni.com/content/docs/DOC-6301 , but it did not help.

    Can I manually unzip the library? but where?

    you are actually right.

    That's what I did to add an icon I created myself with Windows Paint:

    go to Icon Editor in LabVIEW and click on tools--> list of glyphs and the models of the icon.

    After clicking on this menu, a web page opens.

    In this web page are listed all the icons present on your PC with their absolute path.

    In my case (Windows XP), the icons are found in these paths:

    C:\Documents and Settings\WINDOWS_USERNAME\My Documents\LabVIEW Data\Glyphs\...

    C:\Documents and Settings\WINDOWS_USERNAME\My Documents\LabVIEW Data\Icon Templates\

    where WINDOWS_USERNAME is my Windows account name.

    I then copied the. PNG created with Windows Paint in one of this subfolder in the folder... \Glyphs\.

    Loading the editor icons once again, I was able to find the icon created.

    now, if you put the download of files on our website in that directory, you should be able to find them in the Icon Editor.

    Let me know if it works for you.

    Best regards

  • Problems with the Widgets Library / Compositions / presentation / Auto Play.

    I have a problem of failure when using the widget "Overview."

    The widget within the group is "Composition".

    With 'Auto Play' on...

    If I make a shortcut (button) to any element in the light table or use the options of 'Parts', 'Prev' or 'Next', continues to work option 'Auto Play '.

    I can only access other areas by direct click, it stops the 'Auto Play'.

    Can you help me solve this problem?

    Thank you very much!

    Hello

    Please take a look at this related post: http://forums.adobe.com/message/5551810#5551810

    See you soon

    Parikshit

  • Problem with the music library...

    Can someone tell me why my media player don't copy my songs automatically from my music library in my Player library?
    Please help me! :)

    Hello

    Have you tried to add songs to the library and check?

    Method 1: Run the Troubleshooter:

    Open the troubleshooter in the Windows Media Player library

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-library-Troubleshooter

    Method 2: If the problem persists, then clear the database of Windows Media Player. To do this, follow these steps:

    a. exit Windows Media Player.

    b. for Windows 7: click Start, click run, type %LOCALAPPDATA%\Microsoft\Media Player, and then click OK.

    c. Select all files in the folder and then click Deleyou in the file menu.

    Note: You don't have to remove the folders that are in this folder.

    d. restart Windows Media Player.

    Note:  Windows Media Player automatically rebuilds the database.

    Method 3: If this does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:

    a. exit Windows Media Player.

    b. If you run Windows 7, click Start, click Run, type %LOCALAPPDATA%\Microsoftand then click on OK.

    c. Select the folder Media Player and then click delete on the file menu.

    d. restart Windows Media Player.

    Note: Windows Media Player automatically rebuilds the database.

    For addition al information, see this article:

    Add items to the Windows Media Player library

    http://Windows.Microsoft.com/en-us/Windows7/add-items-to-the-Windows-Media-Player-library

    Hope this information is useful.

  • How to use the node function call library for a function in the dll with the data SUB type

    Hi all

    I would ask for your kind help

    I am facing a problem with the call library node.

    I have a C++ (stdcall) function, which has Sub as data type

    XXXX error code (hwnd, lid, getValue, * Sub data1, * Sub data2)

    data1 and data2 types are constantly changing based on the value of 'getValue '.

    Mainly I can use the call library node several times and adapt each node according to the types of data data1, data2 and extract the values and use in the code. Here is no question. Real question is:

    My question:

    How can I use a node of library time call and make a case according to the 'getvalue', who will control the data1, data2 data type. Here I really seeking solutions.

    My tests:

    I used varaints as entry to the libray call node of the data1, data2 and selected parameters in the call libraby node as "Adapt to type. Here labview just crashed.

    I appreciate your suggestions to feedbackand.

    Thank you

    Karine

    You must allocate enough space for data1 and data2, and then pass a pointer to this space. An easy way to do this is the function to initialize table. Set the U8 type and size for the number of bytes required. Pass this array to the function as a pointer of table data.

    After the function call returns, you need to extract the data in the table. You can do it manually, but a simple approach is to use the array of bytes to a string. Then, in a housing structure, use Unflatten chain to convert the string to the correct data type. This method also converts the "endianness" which will be probably necessary; Be sure to only set all entries for unflatten correctly.

  • Batch how to remove all the photos that I deleted the photo library

    After a few months of use of the Photos App and deleting photos, I would like to know how to remove the hard disk all the pictures I deleted so far. (recently deleted folder is empty).

    Thanks for any suggestions.

    If your photo library is migrated from iPHoto then you will need to remove them in iPhoto too - or if you are sure you are finished with the iPHoto library archive yoru iPHoto and delete and empty the trash

    LN

  • How to add on the photo library to another

    I used to have 3 iPhoto libraries. All of them have been converted into libraries. Now that I'm comfortable with pictures, I would like to combine my 3 libraries of photos into one.

    You can export two libraries in a file and import it into your simple/fusion/third party library or use iCloud photo library to merge in sync all your photos on the cloud she draws one and changing the system of library to the library 2 so that the photos are merged before repeating with the 3 library.

    No method transfer faces associations, projects, etc., but then as far as I know that it is not a way to transfer this information depending on the option you choose.

Maybe you are looking for

  • I can't open my gmail account

    Firefox has detected that the server redirects the request for this address in a way that will never end.

  • Changing the font styles in the table of contents usingpages 5.6.2

    Hello I am writing a scientific assignment and I have some titles that contain italic characters such as: Importance of Bacillus cereus When I create a table of contents, these italics seem to disappear and I can't do these italics without making the

  • Invisible

    Hello I want to do 'Mapping Y' invisible control when Componet X is selected and I want to do 'Mapping X' invisible control when the component is selected. Please see the joint "Invisible.vi". Any help will be appreciated. Kind regards Steve

  • LabVIEW closing command line

    Hi all I was wondering if there is a way to close the LabVIEW.exe from the command line. I came across the taskkill command as well, I found that it does not properly close the app and can eventually cause accident of LabVIEW. Why I want to do it is

  • Vista - Error Code: 8024200d (could not install Service Pack 2)

    I have tried to download service pack 2 for Vista for months and cannot operate.  It will always fail.  I also downloaded the stand alone and it does not work too. It is a part of what is in my file of windows update = "IsInstalled = 0 and Deployment