buffer size and sync with the cDAQ 9188 problems and Visual Basic

Hi all, I have a cDAQ-9188 with 9235 for quarter bridge straing caliber acquisition module.

I would appreciate help to understand how synchronization and buffer.

I do not use LabView: I'm developing in Visual Basic, Visual Studio 2010.

I developed my app of the NI AcqStrainSample example. What I found in the order is:

-CreateStrainGageChannel

-ConfigureSampleClock

-create an AnalogMultiChannelReader

and

-Start the task

There is a timer in the VB application, once the task begun, that triggers the playback feature. This function uses:

-AnalogMultiChannelReader.ReadWaveform (- 1).

I have no problem with CreateStrainGageChannel, I put 8 channels and other settings.

Regarding the ConfigureSampleClock, I have some doubts. I want a continuous acquisition, then I put the internal rate, signal source 1000, continuous sample mode, I set the size buffer using the parameter "sampled by channel.

What I wonder is:

(1) can I put any kind of buffer size? That the limited hardware of the module (9235) or DAQ (9188)?

(2) can I read the buffer, let's say, once per second and read all samples stored in it?

(3) do I have to implement my own buffer for playback of data acquisition, or it is not necessary?

(4) because I don't want to lose packets: y at - it a timestamp index or a package, I can use to check for this?

Thank you very much for the help

Hi Roberto-

I will address each of your questions:

(1) can I put any kind of buffer size? That the limited hardware of the module (9235) or DAQ (9188)?

The samplesPerChannel parameter has different features according to the synchronization mode, you choose.  If you choose finished samples the parameter samplesPerChannel determines how many sample clocks to generate and also determines the exact size to use.  But if you use streaming samples, the samplesPerChannel and speed settings are used together to determine the size of the buffer, according to this excerpt from the reference help C DAQmx:

Note that this buffer is a buffer software host-side.  There can be no impact on the material available on the cDAQ-9188 or NI 9235 buffers.  These devices each have relatively small equipment pads and their firmware and the Driver NOR-DAQmx driver software transfer data device to automatically host and the most effective way possible.  The buffer on the host side then holds the data until you call DAQmx Read or otherwise the input stream of service.

(2) can I read the buffer, let's say, once per second and read all samples stored in it?

Yes.  You would achieve this by choosing a DAQmx Read size equal to the inverse of the sampling frequency (during 1 second data) or a multiple of that of the other playback times.

(3) do I have to implement my own buffer for playback of data acquisition, or it is not necessary?

No, you should not need to implement your own stamp.  The DAQmx buffer on the host side will contain the data until you call the DAQmx Read function.  If you want to read from this buffer less frequently you should consider increasing its size to avoid the overflow of this buffer.  Which brings me to your next question...

(4) because I don't want to lose packets: y at - it a timestamp index or a package, I can use to check for this?

DAQmx will meet you if all packets are lost.  The default behavior is to stop the flow of data and present an error if the buffer of the side host DAQmx overflows (if, for example, your application does not pick up samples of this buffer at a rate equal or faster than they are acquired, on average).

If, for any reason, you want to let DAQmx to ignore the conditions of saturation (perhaps, for example, if you want to sample continuously at a high rate but want only interested in retrieving the most recent subset of samples), you can use the DAQmxSetReadOverWrite property and set it to DAQmx_Val_OverwriteUnreadSamps.

I hope this helps.

Tags: NI Hardware

Similar Questions

  • How many quadrature encoders may be read together with the cDAQ-9188 chassis?

    We will record position periodically 8 engines (at the same time as we are to the corresponding samples entered analog).  It seems that the 4 built-in counters limited chassis to 4 encoders.  Is this correct?  I am familiar with modules of counter PLC which manage high-speed counting, and then the CPU posts periodically to update the total values.  This is how the NI 9401 card would work?

    Hi jtrout,

    You are right the 4 built-in counters than the cDAQ-9188 chassis 4 encoders.  The following article deals with the use of the NI 9401 card for encoder measures: http://www.ni.com/tutorial/7109/en/.

  • With the help of PrintPages in Visual Basic

    I have trouble using PrintPages with Acrobat 9.  Previously, he has worked for me in Acrobat 7, but once I updated is no longer works.

    Here is my code.  I call this function using the path and the name of the document and if I want to print all pages or just two.  The code opens the file and gives me the number of pages, but it does not print.  It does not cause an error or stop.  It passes just above this line of code and nothing happens.

    I added 'Adobe Acrobat 9.0 Type Library' (acrobat.tlb) as a reference in VB.  I have version 9.1.3 installed.

    Public void AcrobatPrint (FileName As String, PrintMode As String)

    Dim AcroExchApp As Acrobat.CAcroApp
    Dim AcroExchAVDoc As Acrobat.CAcroAVDoc
    Dim AcroExchPDDoc As Acrobat.CAcroPDDoc
    Dim num As Integer

    Set AcroExchApp = CreateObject ("AcroExch.App")
    Set AcroExchAVDoc = CreateObject ("AcroExch.AVDoc")

    'Open the file [filename] pdf.
    AcroExchAVDoc.Open FileName, «»

    ' Get the PDDoc associated with the open AVDoc
    Set AcroExchPDDoc = AcroExchAVDoc.GetPDDoc

    'Get the number of pages for this pdf [and subtract one as based zero].
    NUM = AcroExchPDDoc.GetNumPages - 1

    If PrintMode = "All" then

    "Print the entire Document
    Call AcroExchAVDoc.PrintPages (num, 0, 1, 1, 1)
    On the other
    If num = 0 Then

    "Print any document (one page).
    Call AcroExchAVDoc.PrintPages (num, 0, 1, 1, 1)
    On the other

    'Print the first two pages '.
    Call AcroExchAVDoc.PrintPages (0, 1, 1, 1, 1)
    End If
    End If

    AcroExchApp.Exit
    AcroExchAVDoc.Close (True)
    AcroExchPDDoc.Close


    End Sub

    Hello

    You call call AcroExchAVDoc.PrintPages(0, num, 1, 1, 1).

    The third parameter can be a 2 or a 3, if you then change the code works as expected.

    Extract the documentation is less than

    nPSLevel

    Valid values are 2 and 3. If 2, PostScript® level 2 operators are used. If 3, PostScript Language level 3 operators are also used.

    HTH

    Sylvie Martel

  • I was deleting files and delete something that now I can't play my music files... and my Youtube videos are no longer in sync with the songs. HD playler / Flash...? What I've done. ? How do I get it back

    I was deleting files and delete something that now I can't play my music files... and my Youtube videos are no longer in sync with the songs.  HD playler / Flash...? What I've done. ?  How do I get it back

    Hello

    As you are not sure of what you have removed for cause of your problems, I suggest that do you a system restore to a date before you start deleting these files, and then start carefully again, before to remove any file of dual control.

    How to make a XP system restore:

    http://pcsupport.about.com/od/fixtheproblem/HT/system-restore-XP.htm

    See you soon.

  • Module AO trigger using PFI on the cDAQ-9188

    I use a cDAQ-9188 chassis with an AO (NOR-9264) module.  Is it possible to configure a PFI (channel on the frame) as an input signal to synchronize an AO channel with the trigger?  Here's what I'm trying to do.  I need a channel on the AO module to switch voltages in sync with the trigger when the user "push a button".  So once the button is pressed, the channel of the AO will not change until the next trigger pulse.

    Thanks for your help

    Ben

    Hello Ben

    I hope you are well.  The consensus is that it is possible.  Have you tried this yet?  If so, can you tell me what you have tried and how you made a lot of progress?  I recommend the following VI example: Cont Gen tension Wfm - Ext Clk.vi.  Are you able to get all the functionality you are looking for this VI.  It was recommended that I'm showing you this.  We find this VI under help--> find examples and then material input output &--> DAQmx-->--> voltage analog generation.

    Please let me know how you are progressing and if you have need of all aspects of this example explained.  Thanks for choosing National instruments!

    Sincerely,

    Greg S.

  • The SD cards are recommended to be used with the cDAQ 9133?

    Embedded controllers that are the recommended type and size recommended SD cards to be used with the cDAQ Win7 9132 and 9133?

    Hardware specifications for two controllers, you will find that the SD and SDHC cards up to 32 GB are supported.  There is no model or brand recommended, but there are 16 GB (783658 - 01) and 32 GB (783659-01) maps available for purchase through the OR.  You can find those listed in the accessories section available hardware user manual.  See the fees section of the controller product page for more details.

    EDIT: Linked to the UNIFIED and product Messaging page

  • Calendar not syncing with the imac to the iphone

    Since getting my new iphone 6 s, my calendar was not syncing with the iMac. It's with the iPad

    I tried both icloud and itunes with no luck

    Hi Torquoise,

    Thank you for your participation in the communities of Support from Apple.

    I see that your iPhone 6s is not synchronize calendars with your iMac using iCloud or iTunes. You synchronize your iPad using iCloud?

    I would suggest troubleshooting and first with iCloud because you want to synchronize between your Mac and multiple iOS devices.

    Get help using iCloud calendar.

    Best regards.

  • Creative cloud storage limit not sync with the management plan. 2 GB display on the application instead of 100 GB.

    Creative cloud storage limit not sync with the management plan. 2 GB display on the application instead of 100 GB.

    Hi Christian,

    Please check the help below document:

    Applications creative Cloud back in test mode after an update until 2015 for CC

    Kind regards

    Sheena

  • I recently installed turboc ++ software and I had problem with the color scheme of windows7 home basic

    in windows 7

    Control Panel-> appearance-> display-> change colors->
    After that I only have 5 options, with the exception of windows 7 standard & basic windows color scheme 7
    I have windows 7 Home Basic Edition

    Seems that the installation of Turbo C++ runs in compatibility modeof Windows.

    I hope this helps: http://www.sevenforums.com/tutorials/258-color-bit-depth-display-settings.html

  • iTunes asks me to erase and sync with the computer, I have always used

    I have Apple's music service and I did a new playlist on my computer in iTunes. I went to manually transfer the playlist and the option was no longer available, and he said that iCloud music library was on and it does not give me the option to manually add music. I turned iCloud music library off on my iPhone and the option to add manually the music once again appeared in iTunes. When I clicked "Sync Music", he acted as if I've never used this computer to add music and said it would erase all the data and sync with this library. Did register for Apple music destroy my ability to still add music manually from iTunes? It is quite frustrating. Please can someone explain if there is a way to listen to my new playlist without erasing and reloading of music again?

    I use a Macbook Pro. All the software on the phone and the computer is up-to-date.

    If both your device and your library are implemented for Apple music then you don't synchronize with iTunes. Content or playlists added to the library appears on the device and can be listened to or downloaded by Wi - Fi.

    TT2

  • MY FONT SIZE HAS CHANGED WITH THE LAST UPDATE AND I CAN'T SEEM TO RETURN TO NORMAL.

    WITH THE LAST UPDATE OF THE FONT SIZE CHANGED ON MY EMAIL ACCOUNTS AND PAGES OF MY WORK.  IT OF SMALL, I CAN'T READ IT EVEN WITH GLASSES ON. IT IS MAGNIFIED 150 TIMES.  MY COMPANY, HE CHANGED THE RESOLUTION WHICH HAS CHANGED MY SIZES OF ICONS, BUT DOESN'T HAVE ANYTHING DONE TO MY FONT SIZES.  THE HAD ME ALSO DO SOMETHING WITH MICROSOFT THAT DOESN'T WORK ANYMORE.  SO THEY HAD ME CONTACT MICROSOFT WHO CAN HELP ME BECAUSE I CAN'T AFFORD TO PAY TO GET ANSWERS TO MY QUESTIONS.  I AM ALREADY 3 HOURS LATE FOR WORK IN TRYING TO SOLVE THIS PROBLEM.  CAN SOMEONE OUT THERE HELP ME?

    Hi ELLA SMITH (KELLY).

     

    Welcome to the Microsoft community forums. Please post your query and giving me the opportunity to help you.

    I'm sorry for the inconvenience caused.

    I will guide you on the issue of the police.

    (1) you are on a domain network?

    (2) the Windows updates were installed?

    (3) what happens when you try to change the font sizes, you get an error message?

    I suggest you refer to the link to verify that Windows update have been installed.

    http://Windows.Microsoft.com/en-us/Windows-Vista/see-which-Windows-updates-are-installed

    Method 1:

    You can check follow them the links below, if that helps:

    (1) change the Windows fonts

    http://windowshelp.Microsoft.com/Windows/en-in/help/bdc9d003-777b-4B1E-9664-2957f50870bd1033.mspx

    (2) fonts: frequently asked questions

    http://windowshelp.Microsoft.com/Windows/en-in/help/0caf0419-6990-45de-8D71-67f14a3ae4c71033.mspx

    (3) how to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista

    http://support.Microsoft.com/default.aspx/KB/936212

    Method2:

    un) make system restore, choose the date where the screen resolution and the fonts were ok as your restore point.

    (b) when these updates come to install again, do only ONE AT A TIME. After each installation, check if the screen is ok, and then next update and so on.

    c) in this way, you'll be able to simply update is the cause of this problem.

    If the problem persists feel free to post us. We're here to help.

    Thank you.

  • Problems to recognize and sync with the smartphone Blackberry Q10 with PC

    Thanks in advance to all.

    My BB Q10 was not reproduce my calendar and added duplicates to my contact list whenever I have synced.  So, I uninstalled their software thinking Backberry link I re-install and solve the problem.  Now my PC does not recognize the phone (I tried the 'activate fix mass storage) and BB tech support says that I need to install a "div" ("you must contact Windows to request assistance on their part on the .msi file that your computer needs.") in order to download and re - load in the BB Link software.
    I know that the problem comes from my PC because I connected the phone to my wife and it was immediately recognized, and you are prompted to install the BlackBerry link.
    I know I'm a fossil with Windows 7 and Blackberry, but any help would be appreciated. Thank you

    Like so many people, I had a nightmare trying to connect my Q10 and before that a Z10 for LINK.  After reading a lot of posts become completely disillusioned, until I found a post on the opening of the control panel/Device Manager and see if BB Q10 was listed and had a yellow triangle next to it and then try to reinstall the drivers.

    So I plugged my BB to the computer with a USB cable

    Open panel / but Device Manager there is no device listed outside the "RIM Mass Storage Device."

    What made me think...

    With the always-connected BB, on BB, I opened the settings / storage access and disabled USB mass storage.

    On the control panel / Device Manager, immediately "RIM Mass Storage Device" icon in the taskbar, a window and disappeared popped up saying "search drivers."

    This has changed then automatically to "Install drivers" and "Finish."

    In Control Panel / Device Manager a new device popped up in the area of 'No' called 'peripheral network RIM.

    Then I opened the link and it is immediately connected to my BB Q10...

    Then I went there immediately disconnect and link back to the Q10 spilled the USB Mass Storage 'OFF '.

    Certainly, there is a bug here...

    I lost several hours tinkering with this whole process, and it's a nightmare of flashing.  While this may not work for everyone, I hope this works for some of you...

  • Palm TX - calendar office empty and now it seems that it syncs with the device.

    Hello Forum members, Palm

    I have Windows 7 and I synchronize my Palm TX for desktop 6.2.2 via bluetooth.  Two weeks ago, I loaded my calendar of office, and it was empty.  I have made several attempts to synchronize my device to the desktop computer in the hope to recover my datebook\calendar and it seems that the synchronization stops during the update of datebook\calendar.  I uninstalled and reinstalled the desktop software, I also imported the appointment file... but it is also empty.

    Any assistance will be greatly appreciated, thank you in advance :-)

    Lori

    There may be the database at the source of the problem. Click on the following link for the program called DbFixiT. This program has a trial version that you can download and install on your Palm OS device. The trial version will search the database and then to declare the corruption. You can then search records at the origin of the problem and fix them yourself or you can buy the program and do it automatically repair records.

    http://www.pimlicosoftware.com/dbfixit.htm

    To install the program, the value of all lines of "doing nothing" except quick installation or install if you use Palm desktop 6.2.

    After installing the program on your handheld, the scanner and scan also to BLOBs in the calendar.
    After you clean up the database on the handheld, set the conduit in hotsync for handheld overrides desktop and perform a hotsync.

    The best way to protect your data is to export the data in each category of Palm Desktop in a separate folder on your PC.

    Create a new folder on your PC somewhere that suits. Name it something like Palm Desktop data. Click on the link below and follow the instructions on this page for the export procedure.

    http://KB.hpwebos.com/wps/portal/KB2/common/article/28734_en.html
    Make sure you only select everything for the beach in the export window.

    With the data stored in the created folder, make a copy of this file and save it on a USB key, cd - rw or external hard drive.

    Whenever you change in Palm Desktop, export the data that has been changed in this file and save again to external media.

    With this process you can always import the data in Palm Desktop, whenever you have a problem with the data in Palm Desktop, or if your computer/hard drive/device crash.

    For reference purposes, click the following link to the support page for your device on the kb.hpwebos.com Web page.

    http://KB.hpwebos.com/wps/portal/KB/na/tungsten/TX/unlocked/home/page_en.html

    There are links on the page the user Troubleshooting Guide, how to, downloads, etc.

  • __Details: studying why 38% (11 007) events were lost during data collection. Settings for Windows event trace (ETW, Event Tracing for Windows) buffers, the buffer size and maximum is perhaps best not according to data sets are collected. __

    need to know how to enlarge events tracing buffers

    What is the size of your swap file? increase the size and place it in the root of your systemdrive!

    André "a programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • Networking the cDAQ-9188 - no 'network devices' Max

    Hi all:

    I have problems connecting my NI 9188 cDAQ via ethernet to my computer. MAX does not display it in his repertoire, or it displays "network devices". Based on the guide NOR offer, I don't know what else to do (I can't access the modules in a LabVIEW project which is my problem).

    I used the tool online browser that seems to be the equivalent of MAX and works very well - I can see the IP address of the controller and it shows what chassis slots are used by what the map.

    I tried manually inputing this IP in a remote system to the MAX, but that hasn't worked.

    Any ideas on how I can networks controller on my computer so I can actually use in a LabVIEW project.

    I have LabVIEW 2012 32 Bit. Would a student version be the cause of the problem?

    Thank you very much.

    cuaerospace wrote:

    I am familiar with the method you describe, but I agree with all the power cycling to get some of these products to work. I had to do this several times with the cRIO. Any chance you could give a little more than a description step by step explcit of your approach? Thank you!

    Good so here's what I did to try to reproduce and to have a step by step of what I had to do.

    Firstly I have reset my cDAQ so that it would be if all goes well in the mode that yours is.  To do this, I pressed the button to reset for 5 seconds then.  I have also all my network devices defined to "Obtain an IP address automatically" in the IPv4 settings in my network connections.

    After that, I start MAX.

    Go to devices and Interfaces > network devices, then I right click and choose Find devices.  It took a lot of time and the list was empty, but then I noticed that while he was always looking in this window, the MAX window showed my cDAQ-9188, who was a white device.  There, he registered the IP address as 169.254.93.149.  At this point if I went to the device to the MAX I saw where he sometimes States under network settings that no network adapters found.

    So I closed MAX and open my "view network connections" in Windows, I just searched that term in the start menu.  Then for my device properties, went to the IPv4 properties, set the IP address of 169.254.93.0 with 255.255.0.0 default gateway.  It is, so I'm on the same subnet as the appliance.

    I then restarted MAX now when I go to the device under devices, network and network settings I can set static IP and subnet is 255.255.0.0 10.10.10.100 then save.  Then closed MAX.

    Then I went back to my view network connections, the static value of what I really wanted is 10.10.10.0

    MAX then launched.  Find my device that is always white, click Add the device.  And then all is good.  I don't know if all these steps are necessary, and I don't know if there is an easier way, but it worked for me.

Maybe you are looking for

  • What is the best way to place an alias of the Recycle Bin on my desktop?

    Application of small trivial customization here.  Using OS X 10.11.4, what is the best way to create a trash can on the desktop?  I already tried the Terminal command to place the alias, but I'm unable to change the icon.  Given that I have with this

  • G530 WiFi problem

    Laptop Lenovo 3000 G530, Windows 7. The problem with WIFI (D-Link DSL-2640U router), the laptop can not find the network (from a mobile phone network can see and connect to it). The switch is on Wi - Fi, the combination Fn + F5 does not show anything

  • implement WinMail

    I would like to set up my win - mail.exe. This way I can click on a name and send an email (IE my water company) when I click on a window appears and says "windowsmail couldn't start because MSOE." DLL could not start", this has happened since I got

  • can not run on my Windows 7 machine restoration

    I'm just trying to restore my computer to an earlier time and it will not, any idea why?  I am running windows 7.

  • Strange behavior in QML

    I have a strange problem with a QML file. My first level NavigationPane has an attached SystemDialog: attachedObjects: [ SystemDialog { id: confirmCancelDialog title: qsTr("Confirm") body: qsTr("There are unsaved changes.") confirmButton.label: qsTr(