Effective way to make and receive pointers with C/C++ DLLs in LabVIEW

What is the best way to pass a handle using the dll programmed in Labwindows/CVI between call node of the Labview library?

I read a very useful on post

https://decibel.NI.com/content/docs/doc-9080/version/5 on and the reception of pointers with dll C in Labview.

However, my request is for the Labview interface with a camera.  In the camera API, it defines

#define void * CameraHandle

And then a CamHandle variable should be used by a lot of other functions.

In CVI, if not used as DLLs in Labview, I would

Sub OpenCamera()

{CameraHandle ;} CamHandle

Sub SetParameter (CameraHandle CamHandle)

{

}

void CloseCamera (CameraHandle CamHandle)

{

}

If CamHandle is a type void *, how can I make it since one node/function in Labview when I use the Setup to call a library function?  In the post I read, it say how to get the value of the arrow tip using a pointer to the value, and then dereferencing pointer.  However, what I need, is to pass the pointer itself.

Thank you very much!

Best,

Charles


Tags: NI Software

Similar Questions

  • I have FaceTime disabled through restrictions on my daughter's phone.  However, she is still able to make and receive calls FaceTime. If it is limited, how this phenomenon is happening and is there a way to prevent it from happening in the future?

    I have FaceTime disabled through restrictions on my daughter's phone.  However, she is still able to make and receive calls FaceTime. If it is limited, how this phenomenon is happening and is there a way to prevent it from happening in the future?

    How do you know that she can always use Facetime?

    Could she learned/guessed the password restriction?

  • I have a question regarding windows mail. I was send and receive mail with no problems until last Thursday. I can still receive mail, but I can not send.

    / * moved from answers Feedback * /.
     
    I have a question regarding windows mail. I was send and receive mail with no problems until last Thursday. I can still receive mail, but I can not send. My email is with bellsouth.net and comes in my computer through windows Messaging.  I spent an hour and a half on the phone with bellsouth, and they say that the problem is with my windows mail.  I tried to use a restore date, and that did not help either. I will post a copy of this message, as I keep getting.  Your server suddenly put an end to the connection. The possible causes for this include server problems, network problems, or a long period of inactivity. Object 't', counts: 'mail.bellsouth.net', server: 'mail.bellsouth.net', Protocol: SMTP, Port: 25, secure (SSL): no, error number: 0x800CCC0F thanks for any help.

    Sometimes, WinMail settings get screwed up and you must remove the account and then add it back back.  Make sure first that the antivirus software not interfere (see www.oehelp.com/OETips.aspx#3).   Delete your account completely, then close WinMail.  Then compact and repair the database of WinMail (see www.oehelp.com/WMUtil/).  Add your account to mail back once again, and then make sure you have the correct settings under Tools | Accounts | Mail | Properties | Servers and | Advanced to what AT & T Specifies to WinMail (or OE).  Then see if it works.

    Steve

  • How to make and receive an email that is password protected?

    A seller wants us to send and receive emails that are protected by Word. I don't want this option to apply to all other communications. How do I configure this?

    Assuming that your attachment is a Word document, you must protect by using Word.

    You can also compress the document with e.g. Winzip and protect the records.

    It's nothing that can be done with Thunderbird.

  • Send and receive mail with Outlook Express.

    I can receive email with outlook express, but can't open it. The message body is empty. I can't type in the area of the body to create messages. When you try to send a message I get this error message. "message cannot be sent because it has not been downloaded. It DOWNLOADS EVER! I tried to send many messages to test and get the same message. My cable company is puzzled also. I need help!

    Hi Gary,.

    Take a look at the following link and see if the steps it help:

    Let me know if you need help!

    Cody C
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Problem sending and receiving mail with Windows Live Mail

    I've never had any problems with Outlook Express, but since I installed WLM, I get a lot of mistakes as well to send and receive e-mails.
    I always get the same error number: 0x800CCC0E
    Error text is:
    The connection to the server has failed.

    Object "Kit costs spreadsheet".
    Server: ' smtp.accu - cast.us'
    Windows Live Mail error ID: 0x800CCC0E
    Protocol: SMTP
    Port: 25
    Secure (SSL): No.
    Socket error: 10013

    Apparently, I can't give up WLM and return to the OE. Need help. Thank you

    I apologize for wasting your time. I'm afraid that I can't help.
    Maybe you should call Qwest. I have problem with your battery - cast.us as the name of the smtp server, but I can't explain it.
    Switching to port 587 smtp # is the right choice, because Qwest has put a block on #25.
    But I can't solve your problem.

    Godd luck.

    t-4-2

  • Can I send and receive emails with Firefox?

    Can I send and receive emails using firefox?

    Firefox is not messaging components, but you can use webmail on sites like Yahoo! Mail and Gmail.

    Or you can use Thunderbird. https://www.Mozilla.org/en-us/Thunderbird/

  • A way to send and receive the SMS messages on ThinkPad T440 with Sierra EM7345

    I have a T440 with Sierra LTE. It works fine to connect to mobile networks.

    But here in New Zealand, one of our suppliers also provides free wifi hotspots to customers on certain plans. To use this property, I have to enter a password which is sent to me by SMS.

    Is it possible that I can display SMS messages sent to the SIM card inside my laptop?

    Now, I need to remove the SIM card from my ThinkPad (with all the hassles that implies), paste it into my phone, get the password, then transfer the SIM card in my ThinkPad (and often do not, it is y no food taken located nearby, so I can't restart because I had to disable the internal battery during the installation/uninstallation of the SIM card).

    So, if someone can point to a way I can just see these SMS messages on my ThinkPad, I'm grateful enernally.


  • I have a legitimate Windows XP disk, but it has not all the Service Packs. Is there a way to make another disc bootable with all three of service packs?

    I need a Windows XP bootdisk with all service packs. I have a drive (bought) under license or legitimate only it doesn't have any service pack on this disc. I downloaded all three service packs, but how do I make a Windows XP bootable disk with all three service pack on the drive also? BTW; I have Windows XP, Vista and Windows 7 partitioned on my main computer with boots double.

    The process is called "slipstreaming".  There are a number of Web sites with detailed directions.  Here are a few: http://tinyurl.com/3t3epzn

    Personally, I have had success using nLite.  Others swear by Autostreamer.  Or you can do it manually.

    There is some confusion about the "Gold" XP update (with no service pack) to SP3.  If you have installed XP Gold and you want to update your existing installation, you must update to sp1, 1A, or 2 before upgrading to sp3 again.

    For this reason, some people suggest a slipstreamed sp1a or sp2 using your CD-ROM CD but XP and then to a sp3 CD based on one that you just created.

    However, a lot of sites claim to have created a CD of sp3 XP slipstreamed successfully from a CD of XP Gold (which is what you seem to have).  See http://www.theeldergeek.com/slipstreamed_xpsp3_cd.htm

  • Send and receive problems with e-mail messages

    When you click send/receive status shows received mail line, but it does NOT appear in the Inbox. My ISP has recently changed their security settings, but the old version or settings of the server (110 and 25), nor the new SSL (995 and 465) settings seem to work. Some test messages and view the web messaging server but not downloaded

    Talk to your service provider. Ask a technician to help you. Changes have been made. They should be able to help you.

    t-4-2

  • CS5 - most effective way to wire and independent streams of two blocks of text in the same document?

    Greetings...

    I am responsible for creating a 100-page instructor guide and I looking for a little guidance in the use of independent text blocks that thread the length of the document.  The idea behind the use of two columns, is that the first column (left) must be used for the notes 'instructor-only', advice, etc..  The second column (right) should be used for the text of the student guide.  Two columns (or blocks of text) would need to move independently of each other.  In other words, when the left column is filled with text placed on the page, the flow of additional text in the left column on page two, left column on page three, etc.  Same thing applies to the right column.  There is no link or thread of the text between the two columns on the same page.

    I tried to reproduce this in a two-column table format, however, the table row height is limited and overset text will not continue the table in the block of text on the next page.

    Thank you in advance for your help!

    Set up master page text frames.

    If you use facing pages, put on the student to the student and executive trainer instructor on master pages.

    Be very careful when your document is redéroule however. Take a look at this discussion, we had recently on the subject:

    http://forums.Adobe.com/message/3588735#3588735

    HTH,

    Substances

  • the most effective way to make vista aster

    I am 63, new computer, need serious help to speed up vista, help

    Hello

    Here's how to make vista faster... Follow all the steps
    performance http://Windows.Microsoft.com/en-in/Windows-Vista/Optimize-Windows-Vista-for-Better

  • The most effective way to log data and read simultaneously (DAQmx, PDM) high data rates

    Hello
     
    I want to acquire the data of several Modules cDAQ using several chassis to
    high data rates (100 k samples per second if possible). Let's say the measurement time is 10 minutes and we got a large number of channels (40 for example). The measured data is written to a PDM file. I guess, the memory or the HARD disk speed is the limits. For the user, there must be a possibility to view the selection of channels in a graph during the measurement.

    My question: what is the best and most effective way to save and read data at the same time?

    First of all, I use an architecture of producer-consumer and I don't want to write and display the data in the same loop. I expect two possibilities:

    [1] to use the 'DAQmx configure logging.vi' with the operation 'journal and read' to write the data to a PDM file. To display the data in a second loop, I would create a DVR samples documented and 'sent' the DVR for the second loop, where the data will be displayed in a graph (data value reference). This method has the disadvantage that the data of all channels is copied into memory. Correct me if I'm wrong.

    [2] use 'DAQmx configure logging.vi', but only with the "journal" operation to write the data to a PDM file. To view the selected data, I had read a number of samples of the TDMS file in the second loop (I'm currently writing the TDMS file). In this case, I have only one copy data from the selected channels (not), but there will be more HARD drive accesses necessary.

    What is the most effective and efficient solution in this case?

    Are there ways to connect and read data with high frequencies of sampling?

    Thank you for your help.

    You say that the measurement time is 10 minutes. If you have 40 channels and you enjoy all CHs at 100 kHz, it is quite a number of values.

    In this case, I always try to approach under the conditions of use. If a measure is only 10 minutes, I just connect all PDM data and create a graphic module that could be in the same loop of consumers where connect you the data. You can always work on the raw data files big offline afterwards, the extraction of all the information you need (have a look at the product called NI DIAdem: http://www.ni.com/diadem/)

    The main issue is that the user needs to see in the graph (or perhaps a chart can be useful too). Lets say that the graph is 1024 pixels wide. It makes no sense to show multiple data to 1024 points, Yes? Every second will produce you 100 data points k per channel. What is the useful information, which should see your username? It depends on the application. In similar cases, I usually use some kind of data reduction method: I use a moving average (Point by point Mean.VI for example) with a size of the interval of 100. This way you get 100 data points of 1000 per channel every second. If you feed your graph every second with these average values, it will be able to data points in 1024 of the store (as a default) by channel (curve), which is a little more than 10 minutes, so that the user will see the entire measurement.

    So it depends on the frequency at which you send data to the consumer. For example, collect you values 1024 by iteration of the producer and send it to the consumer. Here you can make a normal means calc or a bearing (according to your needs) and he draw a graphic. This way your chart will display only the values of the last 10 seconds...

    Once I programmed some kind of module where I use a chart and not a graph, and the user can specify the interval of the absolute timestamp that is traced. If the data size is larger than the size of the chart in pixels, the module performs an average calculation in order to reduce the number of data points. Of course, if you need to see the raw data, you can specify an interval that is small. It all depends on how you program zoom functions, etc... In my case I hade a rate of 1 Hz, so I just kept all data in RAM limiting the berries to keep 24 hours of data, so that technicians could monitor the system. In your case, given the enormous amount of data, only a file read/write approach can work, if you really need access to all of the RAW data on the fly. But I hope that the values of working capital means will be enough?

  • Best way to make my SSD works again with a single partition

    There are 2.5 years, I replaced the original on my computer with a SSD hard drive. Months after I installed the beta version of Yosemite, the latest operating system for Mac at the time. To do this, the system created a partition on my drive, in which he has installed the beta version of Yosemite.

    I have today on the same partition, I installed Yosemite, Sierra macOS running. In the other, I have all files, so I want to eliminate. However, when I try to do this by using the disk on my Mac utility, it is not possible; I get a message that says I can't delete the first volume of the disc. When I try to increase the size of the partition on which macOS Sierra operates, so reduced the size of the other, the system won't let me.

    I would like to know what is the best way to make my SSD works with only one partition.

    You cannot delete the last partition that was created, that not 1.

    You can clone the content from the 2nd to the 1st, then you can remove the 2nd.

  • Cannot make or receive phone calls after the upgrade to iOS 9.2

    Last night, I could make and receive phone calls. This morning I upgraded to iOS 9.1 to 9.2, and now I can't make or receive calls.

    Any call I make - other iPhones, to landlines, whether on my list of Favorites or not - says 'call X... '. "(where X is the name of the contact - X is omitted if I don't dial a contact). After a few seconds, the phone says "Call ended." and I get three quick tones.

    When they call me, it goes to voicemail once they hear 1 or 2 rings. I don't hear anything. The call does not appear in the 'recent' folder, but I received a voice message.

    I don't have to "do not disturb" lit.

    My iPhone is a 4 s, which can be a key because my wife has a 5. She has just upgraded and has no problem with calls. We are both on the Sprint network, using 'Ting' which is a dealer - so our actual provider's Ting. My phone says "Version 9.2 (13 c 75)", carrier "Sprint 23.0" and model MD377LL/A."

    I turned the phone on and off several times, and also to do a reset (now hold both power and home until the apple logo appears). neither helped. I double-clicked the original key and removed the phone application and all other applications, then restarted the phone application, which also helped.

    WiFi works.

    A related issue is to: IOS 9.2 update .

    OK, now it works.

    I think that what I had was specific to my carrier - as well as anyone with this problem likely needs to communicate with their provider!

    For Ting (Sprint), here's what I had to do:

    1. to connect to a Wi - Fi network

    2. dial # 873283 #.

    3. press the call key

    4. press "Start Service Update" and wait a minute or two.

    5. press on "Full Service Update" and wait a minute or two for the phone to reconnect to the Sprint network.

    6. once the upper line shows that Sprint is connected, I could make and receive phone calls.

    Greg

Maybe you are looking for

  • How can I activate the plugins?

    Hello I can not activate the plug-ins. Today, I had a problem with firefox using too much CPU resources. I restarted my browser in safe mode to see if addons are the cause. I also disabled all the plugins. After I found the defective addon, I inexpli

  • Satellite A350: Highlight text, and then delete or BACKSPACE will not erase the text

    I have a new Satellite A350. When I surligner highlight the text, then try to remove or back up it will not delete the text. This happens in the line URL, Windows Mail and Word. The key SUPPR and button both work individually, but I'm used to being a

  • HP pavilion dv7-6c95dx: camera and fingerprints does not.

    I use the Hp pavilion dv7-6c95dx (win 7-64 bit). It's the old product. Now, I don't use camera and fingerprints. I'm trying to find the driver but I don't know where I can download and what is it (drivers for camera and fingerprints). Pls show me the

  • HP 8560w GPU update?

    Hi, I have HP 8560w with Quadro1000M graphics card and I would like to know if I can pass it to the chart harder? What is the best possible upgrade from the top of this tower?

  • Age of empires II graphics problem.

    I am running the game on a MSI gx630 with windows 7 installed.  The problem I have is that the water stains chestnuts, cyan and violet; the grass and trees also have red spots.  Someone else on the forum was having the same problem so I tried what th