Can I use CINs whit LabVIEW RT?

I need use Code Interface Node and Call Library Function Node with LabVIEW RT. Is it possible?

LabWindows/CVI 6.0 makes it possible to create DLLs specifically intended for use in LabVIEW Real-Time. To do this, go to Target Settings. Under Run-Time Support, there will be a new option for "LabVIEW Real-Time only". What will happen now is that when you build your DLL it will check that you are not using any unsupported functions. You can then take that DLL and call it from LabVIEW Real-Time.

Similar Messages

  • How can I use "cin" to output a sting to my vi for display?

    I use vc++6.0 to debug my cin program,and my LABVIEW version is 7.0.
    what i need is a example code to output a string just like "hello world!" from cin to vi.
    who can help me?
    Thanks a lot!

    felixander wrote:
    I use vc++6.0 to debug my cin program,and my LABVIEW version is 7.0. what i need is a example code to output a string just like "hello world!" from cin to vi. who can help me? Thanks a lot!
    There
    are examples shipping with LabVIEW Full and better that show this and
    similar things. But.... why bother with CINs? Everything you want to do
    is much easier done in LabVIEW directly and if that fails using shared
    libraries (DLLs) is the future of interfacing LabVIEW to external code.
    CINs is an anachronisme from old days when LabVIEW had to run on a
    disguised command shell called Windows 3, that was trying to be a graphical user interface.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How can I use interupts in Labview

    void main() {
    while(1) { // the program wil work forever
    if( button_Send == true) // the program wil execute send if the 'send button' is true
    send();
    else // if the button is false the program will read
    read();
    void serial() {
    blabla...
    void read() {
    wait for character...
    blabla...
    this is what I made but as you might understand the program will hang in the read loop if theire is no character
    to receive. this is what I had in mind but how can I do this in LV? I read something about vi prioreties...
    anable interupt at serial port: // enable interupt
    if( RXADRESS /= 0 ) { // chack if read buffer is not empty
    void read(); // then read.
    void main() {
    while(1) { // the program wil work forever
    if( button_Send == true) // the program wil execute send if the 'send button' is true
    send();
    else // if the button is false the program will wait for the
    // send button or the interupt to accure
    nothing..
    void serial() {
    wait for serial line to clear...
    send char...
    void read() {
    if( RXADRESS /= 0 )
    wait for character... // check if the read buffer is not empty
    else
    return.

    Hi Memmo,
    I assume when you say "Lightbold", you mean the highlighting tool in the LAbVIEW development environment.....
    I also don't know if you have now implemented the serial communication in LAbVIEW or some other language, but I'll assume you've implemented it in LAbVIEW.
    A typical reason for code working in "slow-mode" and not at full speed is some kind of timing problem within the code.
    One suggestion I have is to first check the serial receive buffer before reading from the serial port. You can do this using the "Bytes at serial port" property of the VISA connection (I strongly advse using VISA if you're not already doing this). By wiring the "number of bytes" in the buffer to the read function, you only actually read what's already there. This way you skip the endless serial reads when nothing is there to read.
    Since you are now looping a serial buffer query instead of getting stuck in a serial read dead-end, you can incorporate a stop criteria in your read loop (Either a stop button or a timeout). This should solve the problem of your program becoming non-responsive in the case of no data being sent to the serial port.
    As to why exactly you are not always receiving the correct text, without code to look at, it's kind of impossible to guess where the problem might be. If you could post a picture of your block diagram, I'm sure someone can help pretty quickly.
    Hope this helps
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
    Attachments:
    VI example 2.png ‏11 KB

  • Can I use my white BT Infinity wall box as a two-p...

    I have a BT Infinity installation consisting of master socket connected to white Infinity modem box connected by Ethernet to the Home Hub, wired and wireless connections to the Home Hub are all working fine and I have internet access without any problems
    I see that the white Infinity box has two ethernet ports (one currently unused). It would be convenient to use the second one to connect my sky box to the internet, but when I connect an Ethernet lead between the two the sky box still shows no connection. Am I doing something silly here?
    Solved!
    Go to Solution.

    MKPete wrote:
    Thanks for clarifying - I will give up on that idea then. Just out of curiosity, what is in that white box in networking terms - is it a modem plus three port router, or something like that? I'm trying to imagine why it has *two* LAN ports, and a router is the only thing I can think of that makes sense for that.
    It's actually a "Home Gateway" i.e. a modem/router but it has been locked down and set up as a modem.
    If you found this post helpful, please click on the star on the left
    If not, I'll try again

  • Using cin node in labview error happen

    my name is Juan Chen , I wish to use cin node to calculate crc check code in la view. I use an array as input and a unsigned word as output. when I use while loop, error not enough memory or the memory can only read happen. what is the reason,please.

    how to use the call library function node ? in vcplusplus6 environment , if I only do rebuild all that can generate a dll, and don't use command to convert to lsb file. could I need add files cin.obj, labview.lsvb,etl to the project ?

  • Can we use LabView controls in VC %3F

    Hi,
    I was wondering if Gauge and Tank controls from LabView can be used in VC++? We have labview installed in our lab and we use the graphic controls as major part of our software. We have one software that is written in VC++. Is it possible to export the controls from Labview to VC++? I know MStudio has all those controls for VC++, but our lab is not willing to spend money on MStudio alone. Any suggestions?
    Thanks
    Vijay

    In a word, no. The controls are drawn by the LabVIEW application itself. They are not standard Windows controls.

  • How do we use if statement in labview?moreover can i use if statement inside for loop?

    how do we use if statement in labview?moreover can i use if statement inside for loop?

    The if statement in LabVIEW is the Case structure. You can find that on the Structures palette right next to the For Loop. If you're still on the same subject about terminating a for loop early, then what you do is enclose your functions inside the loop with a case statment and make one of the case's empty except for one or more constants that you might have to wire. Hopefully, the attached picture will explain what I mean. Also, as I mentioned in one of your other posts, I think this technique is not as good as using a while loop. The array in the attached example is the same size no matter what and you may have to handle stripping extra or invalid elements.
    Attachments:
    For_Loop_with_Case.jpg ‏21 KB

  • New to LABVIEW. How can I use one analog channel to trigger acquisiton of a signal on another analog channel?

    I am new to using Labview and have been tasked to write data acqusition program for my company. We are attempting to log 6 machines, each with their own asynchronous trigger (I can't use one trigger for all 6 machines). I have the idea to use (for example) ai0 for the measurement and ai1 for the trigger (for one machine), yet I see nothing in the documentation on how this is done. I have tried playing around with the DAQ express VI (I am using Labview7) but still don't see a way to have the setup I am looking for. I'm sure this is a relatively easy question, but I'm unsure where to go to look for an answer. Any helpful pointers or guidance in the right direction
    would be very helpful!

    If what you want to do is start the acquisition of channel 0 when channel 1 reaches the trigger condition and not start channel 2 until channel 3 reaches it's trigger condition, then no, you cna't do that unless you have multiple daq devices. What can be easily done is continuously acquire all channels and monitor your trigger channels. When the trigger condition is met, then perform the analysis/logging. On the Analyze>Waveform Monitoring palette is the Basic Level Trigger Detection function. Use one for each trigger channel and have it return either the index or relative time of the trigger occurance. This value can then be used to idex that portion of the measurement channel that you're interested in.

  • How can i use in the same time input line and mic to recorder in several track whit SONAR

    I have beem recording only input line because SONAR 4 not recognized the mic in, Help me!!!.
    Thank you. Sorry for my english

    LIMACAR wrote:
    How can i use in the same time input line and mic to recorder in several track whit SONAR 4. I have beem recording only input line because SONAR 4 not recognized the mic in, Help me!!!.
    Thank you. Sorry for my english
    Depending on which soundcard you have there, but if your card is capable for
    ASIO -> activate I/O drivers on Sonar/Options/Audio/Drivers -tab (mic/line sources should be listed there --> activate) and select the mic or/and Line sources on tracks "I" - dialog
    WDM/KS -> use the Surround Mixer or windows recording controls for recording source selection (mic should be listed there)
    MME32 - > same w/ WDM/KS
    If you use Asio4All --> same w/ WDM/KS & MME32
    No mic and line source simultaenously w/ WDM/KS and MME32.
    You perhaps be able to do this w/ kX drivers.
    jutapa
    ADDED:
    You can also install modded version of Audigy 2 drivers/software but I have never done this w/ Li've! 5. so I can't be sure if you get ASIO support for your card.
    Here are the instruction --> http://www.tech-pc.co.uk/audigy-2.php
    jutapaMessage Edited by jutapa on 05-25-2006 02:48 PM

  • How can i use labview.tl​b to control Labview from an external applicatio​n?

    Hi,
    I've been told by a labview engineer that i could use the file
    labview.tlb located in the labview install folder to control labview
    from an external application (in my case, a C# app). I'm using Labview
    6.1 under Windows 2000. This article confirms that:
    "ActiveX and LabVIEW"
    http://zone.ni.com/devzone/conceptd.nsf/webmain/54​01BE584FBAEECE862567C2006D36C7?opendocument
    But i've not been able to find out how to use this file to achieve
    what i want. I just want to be able to open/close labview, open/close
    a vi, start/stop a vi, hide/show a vi from a C# application. The above
    web page talks about activex but i really don't see the realtion
    between activex and that labview.tlb file.
    Is there so
    mebody around who knows how to use that file? Why does NI
    tell us that it's possible to do what i want to do but doesn't explain
    how (or hides this info very well)?
    Thanks

    Hi,
    > Hi I am fighting a similar problem and so far I found this: Calling
    > LabVIEW from C++ Using ActiveX
    >
    > http://sine.ni.com/apps/we/niepd_web_display.DISPL​AY_EPD4?>p_guid=B45EACE3E21356A4E034080020E74861&p​_node=DZ52051&p_submitted=N&p_rank=&p>_answer=&p_s​ource=External
    Thanks for the link, i actually already found this link before. I've
    found yesterday how to use Labview.tlb, just add it to the references
    of the project, it was probably too easy for me at that time:-) But
    now, i'm still stuck as there is no doc about using the interfaces and
    classes of this activex to control labview.
    The example given on your link is made is C++ and for some reasons,
    the wrapper generated for Labview.tlb when i added it to my c# project
    doesn't seem to expose the same
    interfaces and classes as the one used
    in the C++ example. I therefore can't use the C++ example in C#.
    I've tried to do something like:
    LabVIEW.ApplicationClass a = new LabVIEW.ApplicationClass();
    Just this line causes labview to launch but then immediately throws an
    exception: "Query interface for interface LabVIEW._IApplication
    failed".
    Does somebody knows how to use that control in C#/VB.NET ?

  • I would like to convert a matlab file into a .dll and use it in LabVIEW. However, when I run the .dll in LabVIEW I get an error stating "... Procedure not found". What could this be? Can anyone help me...

    I wish to convert my Matlab files into .dll's so that I can use them in LabVIEW. I am using 'mcc' and 'mbuild' of Matlab to convert my .m files into .c and .dll.
    When I try to run the .dll's in LabVIEW, I get an error message in a modal window stating some required .dll or procedure is not found.
    How should I resolve this issue. Should I add any other Matlab .dll's in course of making my .dll?
    Please help in solving this issue... Thankyou very much.

    KJV wrote in message news:<[email protected]>...
    > When I run the matlab generated dll, it is stating 'matllb.dll not
    > found'. Is it that I should set the path for matlab\bin to include
    > all the dll's before I compile? When I make dll from C, it works fine
    > in LabVIEW. The problem is from .m to .dll. The problem also arises
    > when I convert my .m to .exe. The same error of 'matllb.dll not
    > found' comes over. Should I change my matlab compiler options or
    > something else? Please help me?
    I have the same question,I don't know how to use the matlab DLL file in labview,
    I hope someone can descripe the procedure in detail.

  • All I have on my I pod touch is a white screen with multicolored lines going across screen.  What do I need to do.  I can't use I tunes because it says I have to have passcode and can't get screen to come up.  I have already tried holding both keys down.

    All I have on my I pod touch is a white screen with multicolored lines going across screen.  What do I need to do.  I can't use I tunes because it says I have to have passcode and can't get screen to come up.  I have already tried holding both keys down.

    - See if placing the iPod in Recovery mode will allow a restore.. It bypasses the passcode (and erases the iPod)
    - Next try DFU mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • How can I use LabVIEW to send the equivalent of a CTRL D (in VT 100 format) out the serial port of my computer?

    I am trying to write a vi that interfaces with a piece of OEM equipment that is set up to talk with a VT 100 terminal. I can't seem to locate the ASCII equivalent string (if there is such a thing) of a CTRL D. Is there a vi that emulates VT 100 commands?

    If I recall, CTRL-D is EOF on most ASCII tables.
    You'd probably have to use an escape sequence
    or if you can use an unsigned 8-bit that might be
    easier.
    In article <[email protected]>, TLS
    wrote:
    > How can I use LabVIEW to send the equivalent of a CTRL D (in VT 100
    > format) out the serial port of my computer?
    >
    > I am trying to write a vi that interfaces with a piece of OEM
    > equipment that is set up to talk with a VT 100 terminal. I can't seem
    > to locate the ASCII equivalent string (if there is such a thing) of a
    > CTRL D. Is there a vi that emulates VT 100 commands?

  • While using my Iphone 5, all of a sudden  black and white stripes where on the screen. I have tryed to turn the phone off and on again, but there are only the stripes. I can't use it, and nothing happens when I push the buttons. Can someone help me?

    While using my Iphone 5, all of a sudden  black and white stripes where on the screen. I have tryed to turn the phone off and on again, but there are only the stripes. I can't use it, and nothing happens when I push the buttons. Can someone help me?

    Try resetting your phone, hold the home and sleep/wake button down until the apple symbol comes up, then release. If that doesnt work, you may have damaged your phone and need to take it to an apple genius bar.

  • Can I use any acquistion card with Labview?

    I have got a non NI acquistion card, how can I use LabVIEW to program it?

    > But are all the software drivers provided by vendors recognized by
    > LabVIEW? In other terms, must these drivers get a satandard
    > architecture or protocol so LabVIEW can communicate with them? Or, if
    > I develop my own acquisition card, how can I write it's driver so
    > LabVIEW can communicate with it?
    The LV drivers for various NI products are essentially VIs that call
    into a user level DLL. That DLL does its work and returns the results
    and/or error info to the diagram.
    If the board has a DLL that allows it to work, then you can make quick
    wrapper VIs to make it fit the LV language a bit better.
    There are no architectures or protocols for drivers to replace NI-DAQ or
    other NI driver wrappers.
    Greg McKaskle

Maybe you are looking for

  • Location services is stopped working after upgrading to iOS 5

    Hi, Location services is not working after upgrading to iOS 5. How can i switch it on?

  • Bubble Chart Labelling

    I have a bubble chart where each doctor is his own bubble, and I have about 18 bubbles. Is there a way to make the labels on a bubble chart be the Doctor name, instead of the number of cases eash doctor has? With 18 bubbles it's difficult to tell fro

  • Items not visible in SAP inbox

    Hi, We have one workitem which is related to 'Deadline Reached'.  We can see 5 agents for this work items. But customer is saying that it is visible only for 1 user, rest 4 can not see. Even they can not see the 'Deadline Reched' folder in their inbo

  • Stroke color of line in LineChart

    How to change the color of line in line chart, from ActionScipt??? I've found an example of how to change the stroke of horizontal or vertical axis, but I just can't find anything clear, how to change the chart line!!!! There are many, many propertie

  • Changing colors of exceptions

    Hello experts, how can I change the pre-defined colors für exceptions in Web-Application (Web-Template), e.g. when I want to use the color blue? Thanks in advance