What is easier to program in labview?

i need to send a number that i enter in the labView interface to a
microcontroller and based on that number create a PWM signal to vary
the duty cycle of a computer fan to create a desired speed.  I am
wondering which way is easier to program for sending data to the
microcontroller(USB, serial port, parallel port).  I also need to
read in the tachsignal to display to tachometer reading of the fan as
well.
this may sound like a weird question but what exactlly would labview
put out the the data link to the microcontroller to represent that
number
that i have put in.  I know that it will be digital data and that
will be converted to analog signal in the microcontroller.  
I am just wondering how when i read in that analog signal i can figure
out what PWM to make. 
i am new to labview and have to do this for senior design. 

Serial communication will probably be the best way to do this.
LabVIEW sends commands as strings to the microcontroller and when you read from microcontroller it will be a string in LabVIEW. You will need to typecast the string to whatever your controller is sending.
Here's a link to Serial Communication - Basic Serial Write and Read. It will give you a basic idea of how serial communication is done in LabVIEW. There are also examples in LabVIEW under Help-> Find Examples that might be able to help you also.
http://zone.ni.com/devzone/cda/epd/p/id/2669
Regards
Krista S.
Applications Engineering
National Instruments

Similar Messages

  • What's it take to get LabView up and running?

    Hello. I'm new to LabView and in the process of learning what I can about it by working through a couple of training books. Anyway, what do I need to get LabView 6.1 to control Agilent and Anritsu test equipment -- specifically voltage supplies, a network analyzer, and a spectrum analyzer. I presently have a GPIB card in the computer. Is any other hardware required to get this operational? Where do I find drivers? Thanks for any response.

    Assuming you've got cables to connect your GPIB card to your instruments, I don't think you need any additional hardware in order to use LabVIEW to automate the control of the instruments.
    I'll assume that your GPIB card is installed and functional if not, try its self-tests or go to http://www.ni.com/support/gpib/ for help.
    To install LabVIEW instrument drivers for your instruments, go to http://ni.com/idnet and browse or search your way to the drivers you need. This will give you a suite of LabVIEW VIs to programmatically control your instruments from LabVIEW.
    After you download and install the drivers (instruction links on the driver pages), you can get up to speed by examining the Application Example that will likely appear in the palettes for your i
    nstruments. There's also a CD available of all of our instrument drivers; you can request one from your NI sales engineer.
    As a final note, the LabVIEW Basics I training course (http://ni.com/training) does an excellent job of teaching this topic (the final day of the course) as well as teaching LabVIEW programming fundamentals.
    Best of luck,
    John Lum
    National Instruments

  • How can we call a C program in Labview

    Hi
    a) In one of our application we have to call a C progran in Labview. I am not able to call it. Can somebody help me.
    b) When we call a C program ,is  Labview makes block diagram for it.
    Please reply
    Thanking You

    hi there
    well, then we need more information what you mean with a "C program". are you talking about C source code, a command line executable, a high end executable with a GUI, a dll, ActiveX.... what are the parameters you have to pass? what parameters are returned from the "C program"? please post some code....
    as a startup you could search the examples shipped with LV. open the example finder from the runtime menu.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • I want to write a program in LabView then pass the test results to teststand to check if it pass or fail without displaying the test stand program,

    I want to write a program in LabView and create an execute but I want to be able to pass test results to test stand to find it the unit pass ar fail the test then save the data to a database. How would i go about it.

    What's confusing is your statement that you want to do this "without display the test stand program". You can minimize the TestStand UI to the task bar but if you don't want TestStand to be running, how can TestStand evaluate the result. Explain a little more please.
    In the message body of your post, you just say you want to create a LabVIEW exe and pass the results to TestStand. What I would recomend is that instead of an exe, you create a dll and use TestStand's DLL adapter to call it and return the results. TestStand will evaluate it and do the logging.

  • I want to send 10 bit ADC from PIC via serial communicaton. i send it separetly 8 bit first then the other 2 bit. how to program in labview to capture those two packet then combine it togother

    i want to send 10 bit ADC from PIC mCu via serial communicaton.
     i send it separetly 8 bit first then the other 2 bit (2 bit --> with zero at 6 bit from LSB).
    how to program in labview to capture those two packet and then combine it together
    so i have 10 bit in lab view
    thank you

    Close, but now quite. You need to specify to the VISA Read how many bytes to read, not how many bits. Thus, the input would be 2, not 16. It's also not clear why you're trying to use the "String to Byte Array". The Type Cast will give you a number based on what data type you wired. You're basically telling it how to interpret the string. In this case we're telling it to interpret the string a 16-bit value, so we'll get a 16-bit integer. I know you said you wanted a 10-bit, but you can't have that. You'll get a 16-bit with 6 bits set to zero. Note: I did not completely understand what you said so we may need to change this slightly, but we want to get the communication and reading collection working first.
    Also, since you seem to be setting this in a loop you probably want to monitor this or to collect the data. For that you need a shift register. See attached for a modified version of your attempt. You need to set the datatype to I16 or U16 based on whether the value you get from the PIC is signed or unsigned.
    Message Edited by smercurio_fc on 05-01-2007 02:28 PM
    Attachments:
    Read PIC.vi ‏21 KB
    Read PIC.png ‏7 KB

  • Need help writing host program using LabView.

    Need help writing host program using LabView.
    Hello,
    I'm designing a HID device, and I want to write a host program using National Instrument's LabView. NI doesn't have any software support for USB, so I'm trying to write a few C dll files and link them to Call Library Functions. NI has some documentation on how to do this, but it's not exactly easy reading.
    I've written a few C console programs (running Win 2K) using the PC host software example for a HID device from John Hyde's book "USB by design", and they run ok. From Hyde's example program, I've written a few functions that use a few API functions each. This makes the main program more streamlined. The functions are; GetHIDPath, OpenHID, GetHIDInfo, Writ
    eHID, ReadHIC, and CloseHID. As I mentioned, my main program runs well with these functions.
    My strategy is to make dll files from these functions and load them into LabView Call Library Functions. However, I'm having a number of subtle problems in trying to do this. The big problem I'm having now are build errors when I try to build to a dll.
    I'm writing this post for a few reasons. First, I'm wondering if there are any LabView programmers who have already written USB HID host programs, and if they could give me some advice. Or, I would be grateful if a LabView or Visual C programmer could help me work out the programming problems that I'm having with my current program. If I get this LabView program working I would be happy to share it. I'm also wondering if there might already be any USB IHD LabView that I could download.
    Any help would be appreciated.
    Regards, George
    George Dorian
    Sutter Instruments
    51 Digital DR.
    Novato, CA 94949
    USA
    [email protected]
    m
    (415) 883-0128
    FAX (415) 883-0572

    George may not answer you.  He hasn't been online here for almost eight years.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • What are the limitations of using labview 8.5.1 developers suite verses a real-time module in field point applications?

    What are the limitations of using labview 8.5.1 developers suite verses a real-time module in field point applications? Can an exe. be loaded onto a field point controller or does the controlling program have to reside on a PC for example?

    centerbolt is correct, you can't load a .exe or even run a program on the fieldPoint controller unless you have the Real Time module.  However, that does not mean you can't use your FieldPoint bank without the Real Time module. 
    From LabVIEW for windows you can make calls to the fieldpoint IO using the fieldpoint read/write functions. 
    This program runs on the PC not the FieldPoint controller.  If you loose network connection to the fieldpoint, your program will loose connection to the IO.  For many data logging applications this type of arrangement can work just fine.  However, if this is the only type of application you are ever going to run, then you may as well not buy the Real Time controller for your fieldpoint but the network controller only. 
    If your application requires more reliability, and/or greater determinism than can be achieved by running a program on windows, then you should use the LabVIEW Real Time module and develop a program that can run down on the FieldPoint controller independent of windows.
    Message Edited by StevenA on 07-22-2008 04:14 PM
    SteveA
    CLD
    FPGA/RT/PDA/TP/DSC
    Attachments:
    fp pallet.PNG ‏6 KB

  • How to use a Matlab Program within Labview

    Hi
    I saw in this forum that many users are using some matlab program
    executed in Labview program. I have actually Labview 7.1 and would like
    to use some of my matlab program in Labview. Is there an easy way to do
    it ?
    Thanks
    Thomas

    The MATLAB Script function is kinda buried in the function palette, and
    can be found under Functions >> Analyze >> Mathematics
    >> Formula.  Unfortunately this feature is not available in
    the LabVIEW Base package.  Hope this helps!
    Andy F.
    National Instruments

  • What are the advantages of using LabVIEW projects in TestStand, as apposed to just a path to a vi

    What are the advantages of using LabVIEW projects in TestStand, as apposed to just a path to a vi ?
    I am modifying an existing workspace for a new product, and it seems like more work to add the vi's into a LabVIEW project
    does it gain anything in the long run

    Hi Rusty,
    I wanted to quickly clarify on the integration between TestStand and LabVIEW Projects.
    As Jeff mentioned, some of the big benefits of using LabVIEW Projects is to organize code and to namespace them.
    For instance if you had a project called "Power Supply" that housed all your power supply code and had a VI in that called "Initialize", and another project called "Temperature Chamber" that also had a VI called "Initialize", both these VIs are namespaced by the project, so there is no longer confusion about which "Initialize" VI is being used.
    Now from a TestStand point of view, in prior version of TestStand, we lost some of this benefit because TestStand did not know about TestStand projects and called VIs simply as un-namespaced VIs. However, in TestStand 2010 (released last year, free eval available at ni.com/teststand), we added the ability to (optionally) call VIs within the context of their projects. This means that:
    VIs are now namespaced by their project, even when called from TestStand
    VIs can use project specific constructs like NI-DAQmx tasks and conditional compilation settings
    Note: When creating deployments, the VIs maintain their projects and namespacing, so this benefit holds true for deployments as well.
    Additionally, someone had mentioned looking into using lvlibs to namespace your VIs for deployment. Two comments:
    With TestStand 2010, this is no longer neccessary since the project itself namespaces the VIs
    You might also want to look into LabVIEW Packed Project Libraries, which combined several VIs into a single file. Think of it as a DLL specific to LabVIEW that is as easy to call as normal LabVIEW VIs. TestStand 2010 can call VIs that are exposed by PPLs. In addition, the deployment utility can automatically pack your VIs into PPLs for deployment.
    Hope this is helpful!
    Jervin Justin
    NI TestStand Product Manager

  • Integration of C++ program into Labview

    I have written a C++ program that generates low level code to control a machine. I would like to integrate this program into Labview. I would like to know what would be the best approach to do:
    - use CIN (code interface node). Can I take a few parameters as inputs and pass a string of characters to labview? Originally the C++ program generates a text file with the comands to control the device, I guess this can be substituted by a string control/indicator that will control the GPIB device.
    - use ActiveX
    - DLLs??
    Thanks in advance for your help.

    Madrid,
    I would recommend that you stir away from CINs. If you can compile your C++ code into a DLL, then you can easily call it from LabVIEW. CINs have the disadvantage that if you change your code in anyway, you have to update the CIN node in the diagram of the VI. However if you recompile your DLL, you don't have to inform LabVIEW that you have a newer version of your DLL. If the newer DLL is in the same path that LabVIEW is searching, then it'll link to it automatically.
    ActiveX is also a good choice. It might take more development time than creating a DLL though.
    My two cents,
    Azucena

  • Is it possible to tell me how i can make program in labview that take pixels of black and withe image and give coordinate of black or white pixels back to me.

    hello everybody
    is it possible to tell me how i can make program in labview that take pixels of black and withe image and give coordinate of black or white pixels back to me.
    Solved!
    Go to Solution.

    Here's a slightly simpler version.
    (Depending how you want to process the output, you might not need to traspose and/or reverse. Boolean to 0,1 works directly on the 2D array if needed )
    amkamyab wrote:
    it is good. i could enter 1bit image in and show it in array. now i want to take pixels coordinates. i meen i want to have (x,y) of each pixel to send it pixel coordinate to another program i wrote for steppers motor.
    Can you be a bit more specific on how the output is supposed to look like? Initially you wrote "black or white", and since all pixels are either black or white, do you want to send all pixels? In what format? In what order? Please clarify?
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    BW-Pix.png ‏8 KB

  • Quisiera saber si hay un programa en labview que sea similar a un osciloscopio

    Me encuentro realizando adquisicion de datos con una DAQ SCB 68, estos datos van a ser provenientes desde un rayo laser pero quisiera saber si puedo o ya existe un programa EN LABVIEW que sea un osciloscopio donde pueda visualizar la potencia principalmente.
    gracias

    rosiiee wrote:
    Me encuentro realizando adquisicion de datos con una DAQ SCB 68, estos datos van a ser provenientes desde un rayo laser pero quisiera saber si puedo o ya existe un programa EN LABVIEW que sea un osciloscopio donde pueda visualizar la potencia principalmente.
    gracias
    Spanish is a bit rusty but I hate translators online because often they confuse things so...
    Translation
    Subject " I would like to know if there is a program in labview that is similar to an oscilloscope"
    Body
    "I am acquiring data with a DAQ SCB 68 (note this is not the instrument just the breakout but I believe it's irrelevant to what is being asked), this data is going to be coming from a laster but i want to know if i can, or if there is an existing program in LabVIEW that would act as oscilloscope where one can visualize the principal power (not sure of direct translation, technical term)
    CLA, LabVIEW Versions 2010-2013

  • What happened to this thread? -- LabVIEW poll "Features you would like to see in LabVIEW!"

    What happened to this thread? --> LabVIEW poll "Features you would like to see in LabVIEW!"

    Warren Massey -
    Unfortunately, we were not able to migrate the polls and topics to the new system when we launched. The good news is that we still have access to the data and are investigating our migration options available.
    We will also focus on getting some new topics and polls out to the community in the next few weeks.
    Thanks!
    Molly K.
    Web Support & Operations Manager
    National Instruments

  • What is the print program for adobe form MEDRUCK_PO, How would I know that?

    Hello All,
    I am new to ADOBE forms and I have a requirement to develop a new Purchase Order Adobe Form . I need to confidure output types too. I am copying 'NEU' to 'ZNEU', and form name 'MEDRUCK_PO' to 'ZMEDRUCK_PO', but what would be the program name and form routine? How would I know the program name and form routine for new output type/form combination.
    Any kind of help is highly appreciated and rewarded.
    Thanks in advance
    Abaper

    I am working on exactly same thing - customizing pdf form MEDRUCK_PO.
    I copied MEDRUCK_PO to Z_MEDRUCK_PO and put my changes into the form.
    You will use transaction SPRO to display the current routine and form and put your changes into effect.
    SPRO-> click tab SAP Reference Image->Material Management->Purchasing->Messages->Forms(Layout Sets) for Messages->Assign Form and Output program for Purchase Order.
    In the Form column change the form name to yours - Z_MEDRUCK_PO for example. You can also change the routine name if you want.
    Take a look at SAPFM06P, specifically at includes FM06PE03 and FM06PE04.
    You will find routines adobe_entry_neu, adobe_entry_mahn and adobe_entry_aufb in FM06PE03. They call routine adobe_print_output located in FM06PE04.

  • What is the driver program & why we require driver program?

    What is the driver program & why we require driver program?

    In a Sapcript program the driver program plays an important role of calling the sapscript .
    Driver program contains Business Logic of the Program and rest all values are passed to scriprt which is called through driver.
    If it is based on output then standard forms called entry is called in the standard driver program .
    Please reward if useful.

Maybe you are looking for

  • Using broken iMac as display

    Hey guys, I have a broken iMac (27-inch, Mid 2010), it has an extensive history. First time, about last year, my Hard Drive Failed due to overheating - i took it to a local service and they fixed it however I lost all of my data. Some time after, my

  • Invoice using dtw

    I used DTW to invoice 100,000 serial numbers it worked perfectly. But the AR-Invoice status shows open and printed how can i close that invoice. Sri

  • Message Interface in SXMB

    Hi, I had configured an Message Interface and successfully tested and transported to Production. I had checked the cache and everything seems to be fine. Unusually, the MI is not appearing in the list of interfaces in SXMB_MONI.  But if i manually ke

  • BI 7.0 Vs BW 3.5

    Hi ,   !) In BW 3.5 there is a an option to link the info provider to the custom authorization object( built using the authorization relavent info object say coscenter) so that when we we execute a query built from the infoprovider, it checks for the

  • Where is weblogic.Deployer class?

    Where is weblogic.Deployer class?