Problem writing to the buffer of the device

Hello

I have a problem with writing the values to an analogue output. You can see the following code.

So my problem is, when I call the function PostHolding (0.004), I put a few values in a table and the end of this function, I write the table in the buffer of the device to the analog output.

The call is the following: DAQmxErrChk (DAQmxWriteAnalogF64 (taskHandle, (PostHoldingTime * sampling rate), 0, 10.0, DAQmx_Val_GroupByScanNumber, PostHoldingArray, NULL, NULL));

I checked the table and the number of values for each channel, and there is all right.

So now I come to the loop and the if clause (table a good values). With generatePatter(), I generate a pattern, it is a global. The return value shows me how many values are in the model. When I call now DAQmxErrChk (DAQmxWriteAnalogF64 (taskHandle, (newPointer-g_Pointer), 0, 10.0, DAQmx_Val_GroupByScanNumber, g_TotalPattern, NULL, NULL)); He should write my new model similarly in the buffer of the device. When I start the task I would see the first table in the PostHolding function, then the second table of the second function. And here is the problem that I always see the table from the PostHolding function, but not the second of the generatePattern(). I don't know where is the failure.

I have the same problem, when I call the function (green in the picture) PostHolding after calling generatePatter(). Here, I see the signal from the generatePatter() function but not the signal of the PostHolding function.

I hope someone can help me?

Best regards

Hello

Thank you for your response. I already found the failure. When you create a channel, you must say how many samples gets channels. I forgot to calculate additional examples to my first sample.

DAQmxCfgSampClkTiming (taskHandle, "", DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, SampleRate, samples);

Best regards

Tags: NI Software

Similar Questions

  • I run windows xp on HP Pavilion 750, in the past, I have not had a problem writing to the pictures from my computer to a disc

    I run windows xp on HP Pavilion 750, in the past, I have not had a problem writing to the photos from my computer on disc.

    It now written up so I get a message cannot keep any body can help please.

    original title: problem writing Photos...

    I'm sorry, but I don't have a solution for you.  You can check the Device Manager (start > run > devmgmt.msc > OK) to see if there are warnings next to your CD burner.  If there is a caution icon, double-click the entry and see what it says under "device status".

    I don't know how you use picture & Fax Viewer to burn a CD.  The usual method, except if you have 3rd party CD burning software, is to use Windows Explorer.  This is what Windows XP Help & Support has to say on this topic:

    To copy files and folders to a CD

    1. Insert a blank, writable CD into the CD burner.
    2. Open my computer.
    3. Click the files or folders to copy to the CD. To select multiple files, hold down the CTRL key while you click the files you want. Then, under file and folder tasks, click copy this file, copy this folder, or copy the selected items.

      If the files are located in my pictures, under management of images, click copy to CD or copy all items to a CDand go to step 5.

    4. In the dialog box copy items , click the CD player record, and then click copy.
    5. In my computer, double-click the CD burner. Windows displays a temporary area where the files are held before they are copied to the CD. Verify that the files and folders you want to copy to the CD appear under files ready to be written on the CD.
    6. Under CD writing tasks, click write these files to CD. Windows displays the Assistant burn a CD. Follow the instructions in the wizard.

    Notes

    • To open my computer, click Startand then click my computer.
    • Do not copy more files to the CD that it will hold. Standard CD hold up to 650 megabytes (MB). Large capacity CD contain up to 850 MB.
    • Don't forget that you have enough disk space on your hard disk to store the temporary files that are created during the CD writing process. For a standard CD, Windows reserves up to 700 MB of available disk space. For a high-capacity CD, Windows reserves up to 1 gigabyte (GB) of the available free space.
    • After you copy files or folders to the CD, it is useful to view the CD to verify that the files are copied.
  • Problem writing to the configuration file (.ini)

    The attached vi works as stated. Why not write the data to the file, if I remove the code "wait 1 miliseconds? Section and key already exist in the file but only overwritten if I wait a millisecond on each iteration of the loop. LabVIEW 2015 (15.0.1). I tried to change the config file reference thread to use a shift register.

    I removed the waiting and it works very well for me.  You have something acting in parallel with the code which could be to mess up something?

  • The device, \Device\Harddisk2\D, is not ready for access yet.

    Event Viewer has many entries of error ID 15, which States:
    The device, \Device\Harddisk2\D, is not ready for access yet.

    What does that mean?  Is this an indication of imminent drive failure?

    Hello

    ·         Did you of recent changes to the computer before the show?

    Method 1: Check that all connectors (power and IDE) should be firmly fixed. Disconnect and reconnect to check.

    Method 2: As short-term solution, try to shut down the system, turn the power off, turn on the power and restart. If the device still does not work then it is probably a problem of material, the device or card/main controller card (or possibly the cable connection) will need to be replaced. If the device seems to work then this indicates a problem of software or firmware. Do not forget that the problem can recur again unless the root causes addressed.

    Method 3: Update the latest version of the device driver (if there is one).
    Check on the Web site of the vendor for a newer driver and if it is available then load it.

    Reference: http://support.microsoft.com/kb/283658

    Method 4: Enforcement Procedure in Windows XP check disk errors

    http://support.Microsoft.com/kb/315265

    CHKDSK warning:

    Important: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.

  • Error message "It is not possible to obtain the certificate of the device" when the synchronization of music on mp3 player

    Original title: Media Player sync problem

    I have a problem to sync music to an mp3 player. I don't know if the problem is with the device or Media Player, but every time I try to sync music from my library on my camera it comes up with the message; "It is not possible to get the certificate to the device. Contact the device manufacturer for a firmware update or other measures to address this problem." I contacted the manufacturer of the device, but they couldn't help. Is there some sort of protection stopping the copy of the files?

    Appreciate any comments, thanks

    Hello

    Cannot get the device certificate, can indicate that the device is locked by the manufacturer.

    You can check with Sony to known problems.

    http://eSupport.Sony.com/

    You can download Windows Mobile Device Center and check if it helps.

    For more information, see the links:

    Synchronize music, photos, contacts, and calendars with a mobile device

    http://Windows.Microsoft.com/en-us/Windows7/sync-music-pictures-contacts-and-calendars-with-a-mobile-device

    Download Windows Mobile Device Center 6.1

    http://www.Microsoft.com/windowsmobile/en-us/downloads/Microsoft/Device-Center-download.mspx

    Let us know if it helps!

  • Problem writing in cache file

    I get the error message "there was a problem writing to the cache file... beacause of an error of dick." The cache will now be replaced?

    What does that mean?

    I hit ok and it goes away. Fortunaely stay of my labels.

    "There was a problem writing to the cache file... beacause of an error of dick." The cache will now be replaced?

    I think the exact words for the points you leave is the path of your user account and end with "stamp"?

    If so this is caused by the preference you set for ' export automatically hides files when possible.

    And it's not nice to say, but I'm glad that you have this problem because I started to think I was the only one in the world who had seen this message

    If you go to the bridge preferences Cache section and uncheck this option, you will probably not see this message again. There is no cache files written in your records, but I saw no advantage in the fact of the bridge still needed a lot of time to read this cache file

  • Satellite P10-304: the problem writing and erasing CD - RW discs

    Some need help pls. I own a Toshiba satellite P10-304 with a combo player SD-R2412 installed. When I try to burn a new CD - RW, it does ok, but wouldn't allow no other written on the same CD in another session. The written CD - RW is then recognized as a CD-ROM. In addition, it is not possible to erase the cd - rw usinig this player. When I take the cd written for my laptop office of deletion, as it's done with success and my toshiba can then burn again. Any ideas on what to do?

    Additional information: laptop computer came bundled with "drag n dro cd" but I had to install Roxio and even tried the cd writing software provided with windows XP are done everything to nothing. I checked the 'advanced system info-error log' and the report there is 'the device, \Device\CdRom0, has a bad block'; I don't know what that means.

    Cheers.

    Nthunderbolt

    Hello

    In my opinion, it's probably caused by software. In my opinion, you should remove all burning software and verify all burning functions with windows option. After deleting some software, it can happen that, in the registry editor it is a lot of waste that will not be removed completely.

    In any case, delete all the burning software, and you can also try to remove the device from Device Manager DVD. Restart the laptop and DVD should be detected and installed correctly. Try using the option of engraving of Windows and if there is still problem writing once again please.

  • Hello my MacBook Pro model (MacBook Pro (15 inch, early 2011 am Dubai bought the Sryalsh C02FD2CPDF8 number and I am in Iran that MacBook Pro not enter the device screen when I turned on the pink vertical lines can be seen, the problem is restless))

    Hello my MacBook Pro model (MacBook Pro (15 inch, early 2011 am Dubai bought the Sryalsh C02FD2CPDF8 number and I am in Iran that MacBook Pro not enter the device screen when I turned on the pink vertical lines can be seen, the problem is agitated and it is not difficult to work with him because I like and what I should I do?))

    Serial number C02FD2CPDF8V

  • Hello. I so want to know if there is a way to keep the photos on icloud and get them deleted on your iphone, so that there is no problem of storage of the device

    Hello. I so want to know if there is a way to keep the photos on icloud and get them deleted on your iphone, so that there is no problem of storage of the device.

    iCloud is a synchronization system, not an external 'hard drive '. If you remove them on your device, they will remove icloud. To increase the available space, go settings/iCloud/Photos and select optimize iPhone/iPad storage. That will reduce the space required by 90% when it is fully effective.

  • J4580 print cartridge problem: [Tri-Color] refer to the device Documentation

    Well, I'm starting to feel like I knew better, buy another HP printer after dismal luck with two all-in-one before.

    My J4580 already gives me headaches after only 6 or more months of use.

    The unit refuses to print, declaring "print cartridge problem: [Tri-Color] refer to device Documentation to troubleshoot."  Nothing in the help documentation.  The Habs is always 90% full.  Sometimes pulling the Habs and placing back in crazy wil it restarting.  When it restarts, it prints perfectly.

    I tried the ubiquitous "clean the contacts" and other instructions help generic that I saw, but those who were without help.  The "Solution Center (Yes, good)" appears and all ithas is a link to buy more ink (!).

    Someone has an idea?  I'm about to throw it through the window of stores office, given that I can't throw it out the window of HP.

    Thank you!

    Yes * I know * and I'm sorry that I forgot to come back here.  I had a major system crash and I had to reinstall a lot of drivers for my multimedia player, GPS, and printer (!).  As this occurs, the device did not return this error - touch wood.

  • Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    Kev2012 wrote:

    Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    It would depend on what you're trying to link to?

    Here are the supported Bluetooth profiles an Apple device can connect to iOS: Bluetooth profiles supported - Apple Support

  • Tried to use iTunes to restore iPhone 5s, but the 17 error happens: "this device is not eligible for the requested build". No problem to enter the mode of recovery, apple server and the internet. Help?

    I tried to use iTunes to restore my iPhone 5s, but the 17 error happens: "this device is not eligible for the requested build". No problem to enter the recovery mode, connection to the apple Server (the software update download was complete) and internet connection. Help? I do an Apple store to restore?

    Error 17 refers to network problems. Take a look at these articles and try the suggestions:

    Solve the iOS update and restore error in iTunes - Apple Support

    Get help with iOS update or restore errors - Apple Support

  • His problem in Windows XP Home - a yellow! in the Device Manager on satellite

    When you install the audio drivers that it finds a modem on hih def audio, then when you restart it throws an error message upward. I rolled back the driver but still need to solve the problem of noise, in Device Manager, I have one yellow, another device, PCI device.

    Audio drivers appear to be there and working, the drivers are inheritance this is just? It looks like a conflict somewhere. I went from Vista after network problems now XP has sound problems.

    Ideas please

    Hi David

    I ve checked your other assignments created here in the forum and it seems that you are an owner of Equium A100-027 PSAAQE series.
    Am I wrong?

    First of all, I would like to clarify a few things.
    Especially the yellow exclamation points appear in the Device Manager because anything could go wrong during the driver installation procedure or you have used everything simply a bad drivers.

    I think you first need to know if you have used the correct drivers!
    Please go to the page of the Toshiba driver and check again the driver versions and download again.
    I noticed that many users download the bad drivers and try to install it.

    On the Toshiba page, you will also find installation instructions. There are 2 txt files.
    One for XP and one for Vista.

    Please make sure you use the appropriate for the good OS installation instruction.
    Download all the drivers, then follow the order of installation mentioned in the txt file!

    Normally, everything should work ok and you should be able to install any drivers!

    Best regards

  • Problem: The device is not cleared

    Dear Sirs,

    I had a problem when take the link online and it has refused to give an online interface device.

    One of my devices, what is Rosemount TT0644, is always shown "NIF_ERR_DEVICE_NOT-CLEARED" in the shot:

    So, I'm trying to find if there are some settings to refuse my changes to the unit.

    I put "Not locked" in WRITE_LOOK of the resource pack.

    Unfortunately, it seems not to be the right way to solve the problem because my change of tag still does not work.

    She seems to be the same error.

    Is there someone to help me? Thank you very much.

    Hi aarontseng,

    1. are you able to download a program (with only its own FB) in the device in question with the clear option of devices (the download Configuration)?

    2. Please check if the SD profile you have selected is correct.

  • the ad7476A buffer size and device

    Hi, I use the BF Analog read ad7476a (modified) vi.

    But I can't get the size I want filled a tampon...

    Somehow I think the buffer is limited to an array of 128 items, but I've set with 256, when I show the initialized array, it says I have 128 elements... together using array size it shows 256...

    If this is a limitation of blackfin, please tell me the best way to build an array with progressive buffer readings...

    PS - I need a sample of 10 kHz and a good number of samples filled in a table, or calculations in real time, but I don't know how to do, please help me!

    Thanks in advance

    Hello:

    I discovered the problem... the 128 size is a parameter that can be changed when 'Configuration target - Debug Options' (ADSP-BF537 in my case)!

    Thank you

Maybe you are looking for

  • Pavilion dv6-1334us: how to change the brightness of the screen?

    Hi all: I used the HP Pavilion dv6-1334us and wXP for 7 years. Recently, I think that the brightness of the screen is a little too low/dark. I wish to address to the top/more brighter, but can not find the key/path! Could you please tell me?        -

  • Satellite L650-1PF Display driver seems to be corrupted on the ftp site

    Hello I have a Satellite L650-1PF model and had to reinstall Win7 (64-bit version) because of a disk error.I tried to find the driver to correct display for this model and got the following file: * display - 20110110152358.zip *.It is an ATI, version

  • Signal directed to a T61 exploded

    Hi all. Can someone help me with this one? Signal LED that everything has exploded in the last month, one by one... T61 works fine (about 2 years), but the leds are all off... It doesn't bother me much, but I would like to know what has happened and

  • Lakeshore temperature controller

    Hello Forum, I downloaded the drivers for Lakeshore 331 temperature controller and I'm trying to implement, without success. (I'm a time-out error to my VISA playback function). So, I used my base series write and Read.vi to check if the cables and p

  • Error Code Ox64c refers to Windows Autmatic Update

    Need how to solve the problem with the error Code Ox64c. It occurs when the automatic updates of Windows on a system of XP Service Pack 3 cannot be installed. I'm going to circlces on MSN regardin this problem