I am trying to make a call to a dll to have labview return a buffer filled with data stored in an array. The proble

m that I am having is that to do this I need to fill two different structures, one containing a pointer to a double, which I don't think I can do without perhaps a wrapper function. The biggest problem is that I don't know how to even go about doing this.I have two structures that I need to fill in order to read a block of data from a given DLL which are
typedef struct CHBL_ORDER_T {
INT32 lBlock; // block number, set by user (typical 0)
INT16 sChan; // channel number, set by user
UINT16 usFlags; // only DATA_1OFN at the moment
INT32 lChSR; // channel sampling rate, returned by open
INT32 lFirstMP; // BSR MP not greater than "open sta
rt"
INT32 lBuffLen; // required CHSR based buffer size
INT32 lIncr; // distance between two buffered values
UINT16 usMask; // Mask used before Shift
INT8 chShift; // number of right shifts
} CHBL_ORDER, *PCHBL_ORDER;
typedef struct CHBL_FETCH_T {
double *pdblMin; // min or 1 of n array
double *pdblMax; // max array (either solo or along with MINMAX
INT32 lPos; // (set by user), returned by fetch
INT32 lNum; // (set by user), returned by fetch
} CHBL_FETCH, *PCHBL_FETCH;
I am trying to do the data block access with labview on page 18 of the attached pdf document.
I also have a c code exapmle attached in the zip file, the function in c i am trying to do is in Sample2Dlg.cpp
if anyone can help me out I would greatly appreciate it.
Attachments:
BS_Toolbox_(Ford).PDF ‏160 KB
sample2.zip ‏55 KB

m that I am having is that to do this I need to fill two different structures, one containing a pointer to a double, which I don't think I can do without perhaps a wrapper function. The biggest problem is that I don't know how to even go about doing this.I believe you are right about needing to create a wrapper DLL. To do this, just create a DLL which includes a function that accepts a double. Then, it uses this to make a pointer to that double and send it to your original DLL. When that function returns, you return this info to LabVIEW in form of a regular double. Basically, there is just one more layer of code which you use for translation between LabVIEW and the DLL you are currently using. You need to create that layer.
J.R. Allen

Similar Messages

  • I am trying to make a Phase Locked Loop and I have to produce a continuous output with the incom

    ing data; so I should not use a buffer which is refreshed in every 3 seconds (by this way I am not able to get a continuous output). How am I going to obtain a continuous output signal which uses a continuous buffer (or no buffer maybe), from my DAQ board?When I try to produce a continuous output (a sine wave) according to a continuously changing input data, I see that the sine wave I can get from the DAQ board output has straight horizontal lines between waves. This means the buffer creates a wave, then stops until it fills, and then creates another output sine wave again; so I can't get a continuous sine wave output from the DAQ board. How am I going to deal with it when im
    plementing a PLL in labview.

    ing data; so I should not use a buffer which is refreshed in every 3 seconds (by this way I am not able to get a continuous output). How am I going to obtain a continuous output signal which uses a continuous buffer (or no buffer maybe), from my DAQ board?Greetings:
    It looks like you need to increase your number of samples by quite a bit. Can you supply any more information, such as your sample rate, which DAQ vi you're using, etc?
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • Tour 9630 says phone in use when trying to make a call.

    We have 10 new BB Tour 9630. We have already returned one due to garbled voice. Another has developed a new condition that such that when trying to make a call it says "phone in use" when there is no call in progress. Only solution so far is to take battery out and reboot. It has happened 2 times in the past week. Taking the battery out and rebooting is not an acceptable solution. Anyone have any better ideas?
    Thanks
    Mike G

    Other than exchanging it, I would suggest upgrading the OS to the latest released and see if that helps any.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • TS3406 why do i get the message (LG-HBM760,I phone, speaker)when trying to make a call?

    why do i get the message (LG-HBM 760,iPhone,speaker) when trying to make a call?

    If you have a bluetooth device connected to the phone, it is allowing you to select the audio device you want to use to handle the call with. There should be a checkmark by the device it is going to use, and you can change that if you like.

  • I reset my iPhone but when trying to make a call, the LTE changes to 3G and then just to bell, then I get an error re: call failed

    I reset my iPhone 5 and the LTE Network showed but when I tried to make a call, it switched to 3G then just to bell and the call will not go thru. Can't receive calls either

    Hi Turtlesquirt,
    Welcome to the Support Communities!  The article below will help you troubleshoot the issue you are having with making and receiving calls on your iPhone:
    iPhone: Troubleshooting issues making or receiving calls
    http://support.apple.com/kb/TS3406
    I hope this information helps ....
    - Judy

  • HT4993 I tried to make a call bit kept getting "error message 16"  Why?

    I have a replacement iphone.  I tried to make a call from it and I got "error message 16"  Why?

    Ask your phone carrier why

  • I got a new credit card and tried to make an in-app purchase but forgot to update my info. It still says transaction is pending on the app

    I got a new credit card and tried to make an in-app purchase but forgot to update my info. It still says transaction is pending on the app

    Hi Danny724,
    Welcome to the Support Communities!
    I would suggest updating your billing information in the iTunes application, signing out of your account and signing back in; and then trying to complete the purchase.  If the issue persists, the iTunes Store Support Team can review your account with you.
    iTunes Store: Changing your payment information
    http://support.apple.com/kb/ht1918
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/HT1933?viewlocale=en_US
    Cheers,
    - Judy

  • I am trying to make an in-app purchase, which I have done many times, but now I am being told to go to Apple Support. What do I do?

    I am trying to make an in-app purchase, which I have done many times, but now I am being told to go to Apple Support. What do I do?

    Click here and request assistance. That message means to contact the iTunes Store staff and not to post in these boards.
    (93847)

  • I just got my phone replaced and I can't make phone calls. It says I have service and I can literally do everything else, including FaceTime, but no phone calls?!?!

    I just got my phone replaced and I can't make phone calls. It says I have service and I can literally do everything else, including FaceTime, but no phone calls?!?!

    try resetting your network settings, it just resets wifi and carrier settings, no data

  • Calling a C# DLL in Labview that makes a call to another DLL

    I have a set of DLLs created with C# that I am calling in Labview.  They all work fine using the .NET functions except for one DLL that makes a call to another DLL created in C. It returns an error.  Any ideas why this wouldn't work?  All DLLs are located in the same Windows directory.

    It should be discernable (by looking at the C# code) whether the C DLL needs to be registered.
    If the DLL is serving COM objects it may need to be registered at a command-prompt with
    regsvr32 <your_DLL_File_path>
    If it's supplying .NET assemblies, I think it needs to be registered with
    regasm <your_DLL_File_path>
    Although I've written a few C DLLs, none were called from a C# DLL and I can't advise what subtle things to watch-out for in this scenario.
    Do you have a way to validate/exercise the C DLL's functionality? Is it possible to through-together a C# application (not a C# DLL) that successfully uses the C DLL?
    Luck/Cheers!
    Message Edited by tbd on 12-03-2008 02:36 AM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • I am trying to install Adobe Reader my wife's laptop but "installer" hangs up and fails with a blank black screen. The machine is capable and has a Vista OS. My wife blames the machine and wants to "throw it out." She's an idiot but I need to get this fix

    I am trying to install Adobe Reader my wife's laptop but "installer" hangs up and fails with a blank black screen. The machine is capable and has a Vista OS. My wife blames the machine and wants to "throw it out." She's an idiot but I need to get this fixed.

    run the cleaner (Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs) and then retry installing.

  • Am not able to use facebook on my Iphone 4, softwareversion:iOS7.1, also tried to access through safari and chrome that i have installed it gives an error message saying: "safari could not open the page because server stopped responding",

    Am not able to use facebook on my Iphone 4, softwareversion:iOS7.1, also tried to access through safari and chrome that i have installed it gives an error message saying: "safari could not open the page because server stopped responding", i tried network reset, reset the whole device, rebooting , changing airplane mode rebooting nothing fix the issue, but i can access other sites and google , am using Vodafone as my carrier with 2g network, when at home able to access facebook.com through wifi in safari requesting assistance thank you

    If you can access Facebook while on Wifi at home, but you are unable to access it while away running on your carrier's 2G network, I could phone your carrier.  You have already completed the Cellular Data troubleshooting for the iPhone, so any limitations keeping your from connecting to Facebook over cellular will have to be answered by your carrier.

  • Just trying to make a call -

    Okay - so I'm not the best Techie on Planet Earth - but I was able to stop the old phone - upgrade to the Droid Razor Max - used it for two days successfully and now anytime I attempt to make a call - all I get is the message "mobil network not available"        Okay - so what button did I accidentally hit - or what is the SECRET CODE to get this thing to work right?   PLEEEZE HELP!
    KG57

    Figured it out. . . . . I kept trying to call out - and looked through Settings - Mobil networks . . . . changed them and changed them back because nothing was working - went to make another call just for the heck of it. . .and a message came up that I needed to insert the SIM card.   I knew I had one already in - but then decided to open and look at - and put it back in.  I pulled the removal tool that came with the phone and the little folded box in came in had instructions for insertion - and said to make sure to put the cards in gently until it 'clicks'.    
    MY CARD HAD DISLODGED ITSELF - and I did not drop the phone or abuse it - or bang it accidentally - NOTHING!   It had worked it's way loose and the message that continually came up was "Mobil Network Not Available" with no hint that something was wrong with the hardware in my hand.
    THANKS for whoever is taking the time reading these - but I'm offering this up in case someone else has the same experience.

  • My iphone5 screen flashes when trying to make a call.  I can't access any of screen features.

    My screen flashes when trying to make an outgoing call.  I am unable to access any of the screen features such as keyboard etc.

    Could be a problem with the proximity sensor. Are you using a case around your phone or a protective film attached to the screen? If yes, remove them, to make sure that the sensor is not covered.
    Also try to reset the phone by holding the sleep and home button for about 10sec, until the Apple logo comes back again. You will not lose data by resetting.

  • Why does my iPhone 5 lose signal when trying to make a call or use cellular data?

    Hello,
    I've had this problem for a few weeks now and it's becoming really annoying. Every time I try to make a call, or call voicemail, it takes me 10 or so attempts to connect. When it doesn't connect I get 'searching' in the top left hand corner whilst my phone try's to find signal again. I have the same problem when using 3G - it'll be fine for a while and then I lose my signal all together. This happens in places where I have enjoyed full signal strength in the past. I have dropped my phone or done anything to it to cause this. I've checked with my network provider, Giffgaff but it seems to be more of a phone problem rather than network.
    Has anyone had anything similar? If so how did you fix it? I'm thinking I need to take it into my local store to get it looked it.

    Hello Mathias267,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iPhone: Troubleshooting No Service
    http://support.apple.com/kb/ts4429
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/ts3780
    Have a nice day,
    Mario

Maybe you are looking for

  • Different set of music library for iphone and ipad

    Hi guys, Tomorrow I m going to buy iPad (latest model) for my mom. I m currently using iPhone 5. My question is, how do I differentiate different types of music library for my iphone and mom's ipad as I m going to use my same apple id in both the dev

  • Converting strokes to fills

    I'm creating some mobile phone content and I need to convert the stroked lines I brought in from Illustrator into fills (to increase playback speeds). What is the best way to make that conversion? Thanks

  • OS X 10.6.8 keeps freezing on my 2008 Macbook Pro

    I recently upgraded to OS X Snow Leopard and every now and then, maybe up to twice a day, my macbook pro freezes. While using the computer regulary for anything, at randomly the entire screen will blink and freeze at whatever I was on, and only the m

  • WLK1 Table mandatory field data for DATBI & DATAB missing

    Hi ABAPers, I have an issue in production i.e in table WLK1 few records have created which have data missing from mandatory field DATBI & DATAB . Can anyone tell me the reason for that and how to delete those records. Thanks, Soumya .

  • Safari 5.0 doesn't have 32-bit option

    I want to launch Safari 5 in 32-bit mode but it doesn't even look like I have an option. I've tried looking at the Activity Monitor to see which mode it is running in but it just says "Intel" not "Intel (32-bit)" or anything of the sort. When I get i