How can I get rid of -200492 error in Delphi?

I am using Delphi for my developement. Earlyer, old Ni-DAQ and a MIO-16-E1 served as input device. Now the new one, M6221 works only with NI-DAQmx. So i had to convert to C routines into pascal. Anyway i wrote the following code:
status := DAQmxCreateTask ( '',taskHandle );
showmessage('Status: '+inttostr(status) );
status := DAQmxCreateAIVoltageChan(taskHandle,'Dev1/ai0','',DAQmx_Val_Cfg_Default,-0.1,0.1,DAQmx_Val_Volts,null);
showmessage('Status: '+inttostr(status) );
DAQmxCfgSampClkTiming(taskHandle,'',1000,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,1000);
showmessage('Status: '+inttostr(status) );
until here everything works, all status values are 0.
status:=DAQmxReadAnalogF64(taskHandle, -1,1,DAQmx_Val_GroupByScanNumber,
data, ct, 10, 0);
data: array[0..1000] of double;
ct : longword;
and
function DAQmxReadAnalogF64(taskHandle: TaskHandle;
numSampsPerChan: i32;
timeout: f64;
fillMode: BOOL32;
var readArray: array of f64;
var sampsPerChanRead: uint64;
arraySizeInSamps: u32;
reserved: int64
): i32; cdecl; stdcall; external nidaqmxdll;
The status variable is after calling this : -200492 as DAQmxErrorCAPIReservedParamNotNULL = (-200492);
I do get it even i use variant type in the function declaration and I pass the delphi's null variable.
What can I do?
Thanks.
Technical and Economical University of Budapest
Gulyas, Csaba
email: [email protected]

BLCL, if you haven't solved that one yet, rather than pass the array declaration, pass (which in Delphi is a pointer to the array), declare the array as such:
Type
TFloatArray = Array[0..8191] of Double;
pFloatArray = ^TFloatArray;
Var
ReadAI : pFloatArray;
{Other Code}
Procedure BangHeadAgainstDAQmxAPIusingDelphi(Sender : TObject);
Begin
Try
Try
// your code here
SetLength(ReadAPI, 1000 {or some relevant value});
_ReturnResult := DAQmxReadAIF64(Task, ,,, ReadAPI {don't remember the call, but this is the pointer to the data storage array},,,,); //Remember, do not dereference the array.
{code to do something with the data}
Finally
Dispose(ReadAPI);
Except
{STRONGLY RECOMMEND EXECUTING ANY DAQMXAPI CALLS IN A TRY..EXCEPT SEQUENCE}
end;
end;
end;
Hope this helps.
Jim
Oh, and just looked at your post again.
Modify your declarations, I would rewrite it as
var sampsPerChanRead: Pointer;
(note the address reference @ in front of ct)
status:=DAQmxReadAnalogF64(taskHandle, -1,1,DAQmx_Val_GroupByScanNumber, ReadAPI, @ct, 10, 0);

Similar Messages

  • When starting Firefox 4 I get an error message. After clicking OK it nevertheless runs. How can I get rid off the error message.

    When starting up Firefox 4 I get an error message. After clicking OK it nevertheless runs. How can I get rid off the error message?
    The error message is: what happened: Type Error: Components. classes ['@mozilla.org/extensions/manager;1'] is undefined.
    It appears all the time already from the beginning after installing Firefox 4.

    Thanks a lot. The Ask toolbar created this problem. Another problem is: When searching on the web via Google, normally it is possible to type a few letters and then look what appears and then click on the wanted word(s). A number of word(s) ineed do appear, however it is not possible to select any of them as ws possible as mentioned in olders versions.

  • I am unable to update devices with Apple Configurator because of this message - unable to send ClearPasscode command to device - I am running Configurator 1.5 and ios 7.1.1.  I am unable to rename/number devices. How can I get rid of this error message.

    I am unable to update devices with Apple Configurator because of this message - unable to send ClearPasscode command to device - I am running Configurator 1.5 and ios 7.1.1.  I am unable to rename/number devices. How can I get rid of this error message.

    I've just seen this message for the first time and it's showing on 10 devices.
    What I really love about Apple Configurator is the copious amount of context driven help offered to you.
    "Unable to send ClearPasscode command to device.
    The device was disconnected.
    Check the USB connection to the device."

  • How can I get rid of runtime error r6034

    I have used itunes for windows for years now I am receiving a runtime errot r6034 & 1114. How do I get rid of there?

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99243)

  • How can i get rid of a  Error message from Symantec at start up.  I tried to delete the program but nothing makes it go away.

    It seems to be in some sort of boot up command string.   I have no idea where to look?  Thanks for any advice.  It is a long trip to the nearest apple store.

    You have probably downloaded the Norton program which is one of the least desirable helpmates you can invite in.
    Read this thread and follow the suggestions by Thomas R, one of our gurus in this field.
    https://discussions.apple.com/message/20005609#20005609

  • How can I get rid of files that cannot be imported error message

    Hello, this is my first post. I am a new mac user. I have imported my jpgs from an external hard drive which was in the most part successful, however, 14 of the files appear to be corrupted and every time I open iphoto9, I get the error message, '14 of your files could not be imported, would you like to import them now?' I have tried choosing both options yes and no and it then writes error message telling me it has created recovered photos folder. When you go to this folder it is empty and every time I restart iphoto, I get the same message. I have tried deleting all the files and re-importing only to find that the number of corrupted files has now doubled. I have also deleted the iphotos library recovered photo folders to no avail. I have tried creating a new library and importing the files to that but the same problem occurred. How can I get rid of this repeated error as I am now up to recovered folder number 47! Help!

    P Robbins
    Welcome to the Apple user to user assistance forums
    quit iPhoto and right click (control click) on the iPhoto library (in the pictures folder by default) and select the show package contents command - find the import (or importing) folder and drag it to the desktop and launch iPhoto - you should be fine now - open the import(ing) folder on your desktop and if there are any photos you want import them then trash the folder
    LN

  • How can I get rid of a 1202 error when downloading products from itunes

    How can I get rid of an 1202 error when downloading products from itunes?

    You have probably downloaded the Norton program which is one of the least desirable helpmates you can invite in.
    Read this thread and follow the suggestions by Thomas R, one of our gurus in this field.
    https://discussions.apple.com/message/20005609#20005609

  • I ran a scan on my computer and it found 1,288 errors how can I get rid of them?

    I did a scan test on my desktop and found that I have run sections(10 errors), user software settings(195 errors), system software settings(867 errors), ActiveX and com sections(78 errors), file associations(92 errors), uninstall sections(known as add-remove programs in control panel found(28 errors), current user file extensions(3 errors), shared Dlls(1 error) and in the missing help files (4 errors). How can I get rid of all these errors?

    As this is not a Firefox question, you should consider asking this in a forum that specializes in Windows questions, such as Eileen's Lounge - http://eileenslounge.com/

  • Error message pops up:  url files of type "file:" are not supported.  How can I get rid of this?

    Error message pops up:  url files of type "file:" are not supported.  How can I get rid of this?

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • In Mail, one mailbox for Recovered Message (AOL) keeps showing 1 very large message that I cannot delete. How can I get rid of this recurring problem, please?

    In Mail on iMac, successfully running OS X Lion, one mailbox on My Mac for "Recovered Messages (from AOL)" keeps showing 1 very large message (more than 20 Mb) that I just cannot seem to delete. Each time I go into my In Box, the "loading" symbol spins and the message appears in the "Recovered Messages" mailbox. How can I get rid of this recurrent file, please?
    At the same time, I'm not receviving any new mails in my In Box, although, if I look at the same account on my MacBook Pro, I can indeed see the incoming mails (but on that machine I do not have the "recovery" problem).
    The help of a clear-thinking Apple fan would be greatly appreciated.
    Many thanks.
    From Ian in Paris, France

    Ian
    I worked it out.
    Unhide your hidden files ( I used a widget from http://www.apple.com/downloads/dashboard/developer/hiddenfiles.html)
    Go to your HD.
    Go to Users.
    Go to your House (home)
    there should be a hidden Library folder there (it will be transparent)
    Go to Mail in this folder
    The next folder ( for me ) is V2
    Click on that and the next one will be a whole list of your mail servers, and one folder called Mailboxes
    Click on that and there should be a folder called recovered messages (server) . mbox
    Click on that there a random numbered/lettered folder -> data
    In that data folder is a list of random numbered folders (i.e a folder called 2, one called 9 etc) and in EACH of these, another numbered folder, and then a folder called messages.
    In the messages folder delete all of the ebmx (I think that's what they were from memory, sorry I forgot as I already deleted my trash after my golden moment).
    This was GOLDEN for me. Reason being, when I went to delete my "recovered file" in mail, it would give me an error message " cannot delete 2500 files". I knew it was only 1 file so this was weird. Why 2500 files? Because if you click on the ebmx files like I did, hey presto, it turned out that they were ALL THE SAME MESSAGE = 2500 times. In each of those folders in the random numbers, in their related message folder.
    Now remember - DONT delete the folder, make sure you have gone to the message folder, found all those pesky ebmx files and deleted THOSE, not the folder.
    It worked for me. No restarting or anything. And recovered file. GONE.
    Started receiving and syncing mail again. Woohoo.
    Best wishes.

  • My iPad is disabled, but I know the passcode.. When i connect it to iTunes it says it can't access it because it has a passcode. How can i get rid of the passcode without resetting the iPad? And if there is no way to do so, how do I completely reset it?

    My iPad is disabled, but I know the passcode.. When i connect it to iTunes it says it can't access it because it has a passcode. How can i get rid of the passcode without resetting the iPad? And if there is no way to do so, how do I completely reset it?

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.htmlhttp://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tbhttp://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Devicehttp://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htmhttp://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • How do I get rid of deactivation error 194:1 in Adobe Acrobat Pro ver 9

    How do I get rid of deactivation error 194:1 in Adobe Acrobat Pro ver 9
    It happens on multiple PCs

    All menu content, include motion, is limited to 1 Gig.  This is not easy to calculate.  This is not a common error unless you are over.
    When projects are revised, particularly numerous times, Encore may not correctly remove old elements.
    Easiest method here is probably to start the project over.  You can import the menus from the old project.
    You can also close this project, and try clearing the media cache.

  • HT4009 Whenever I go to make an in-app purchase, a message pops up saying "this is not a test user account." What does that mean and how can I get rid of it so I can purchase things?

    Whenever I go to make an in-app purchase, a message pops up saying "this is not a test user account." What does that mean and how can I get rid of it so I can purchase things?

    Try a soft-reset and see if it works after your phone has restarted (it seems ot have fixed the error for a number of people on here) : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the equivalent of a reboot.

  • The iTunes Library file cannot be saved. An unknown error occurred (-50). How do I get rid of this error?, The iTunes Library file cannot be saved. An unknown error occurred (-50). How do I get rid of this error?

    The iTunes Library file cannot be saved. An unknown error occurred (-50). How do I get rid of this error?

    Have been able to resolve this issue?... I have just exeperienced it and not happy that I can't resolve it.

  • HT4623 My iphone has 7.85gb of "other" space and won't let me update because of lack of space. How can I get rid of this "other" space?

    I am trying to update my wifes 4s to iOS 7 but her "other" has so much space taken up that it will not update. How can i get rid of "other" data space?

    tgarmy wrote:
    Now it tell me Itunes cannot backup because an "error" occured???? If i can't back it up then what do i do?
    Restart the computer and the iPhone might resolve a backup issue. Also, try resetting the iPhone by holding both the sleep/wake button and the Home button at the same time for at least 10 seconds until the Apple logo reappears. Afterward, attempt to restore again.
    Before you restore,  consider a few other things... One particular onging thread regarding "other" data has users finding that text messages with photos and/or videos taking up the "other" space. Deleting those text conversations helps regain space. (Before deleting, transfer any photos and videos you want to keep to your camera roll or computer.) In addition, check for any deleted phone voicemail messages and delete those to as well as voice memos.
    If you decide to restore, the recommendation is to restore as new phone because the backup probably has the "other" data.
    HTH

Maybe you are looking for

  • Convergence with LDAP SSL Failure

    Hello, I'm now having a problem securing connections between Convergence and my LDAP server. Once I set it in iwcadmin, ugldap.enablessl to true and change the port to 636, the following error occurs and convergence just couldn't authenticate. server

  • TimeMachine finished testing, nothing wrong but wants to start from scratch

    it doesn't say that it found any problems at all. it just wants to start a new one to enhance reliability and in fine print stating that this will make me lose my 4 months backup history!!! so what's wrong with it? ofc i'm not happy to lose all my ba

  • Acknowledgment not possible ..File adapter ..receiver side

    Hi XI Friends In my Simple IDOC to File Scenario... i am getting successfull meessage in SXMB_MONI.but in sxmb_moni ,the acknowledgment status is not possible. my inbound inteface is of file and asynchrounous type. how can i get acknowledgment . plea

  • ERRNO TEXT WSAECONNREFUSED: Connection refused

    Hi, I am facing a problem with sap gui 6.4.  I cant connect to sap server with sap gui it return a error connection refused and partner  not reached. It just suddenly show this error today but before this it work fine. The server is working fine.

  • How can I fix my ja-ck? the sound in the earphones became very bad

    I have a problem: my jack is nearly broken. when i plug my earphones, i only have "half" of the sound. the problem is fixed when i turn the plug but this is really ennoying. Thanks,