Controlling a bcd 7 segment lcd with labview

I am pretty new to the Labview environment and am having a problem which involves converting a decimal value into its equivalent 4 digit binary number which then needs to trigger the appropriate boolean value to control a bcd 7 segment LCD.
For example, decimal 9 gets converted into 1001, and you have four boolean variables D,C,B,A, the converted binary nine needs to trigger D and A while leaving C and B off. Is this possible in Labview and if so any advice
Regards Shaun Oxley
[email protected]

To convert a decimal number to boolean I like to use the "Format to String" function with %b for a format specifier. A number goes in and a boolean "0101110..." string comes out. Once you've got the string, you can break it down by characters or turn it into an array of U8 to do lot of fun array stuff to it. I've attached a quick example that demonstrates a few tricks with strings and arrays. It will take a number and output the four LSBs in booleans for you. Fit for wiring to some DIO functions maybe!
Dan Press
www.primetest.com
Attachments:
number_to_binary_booleans.vi ‏23 KB

Similar Messages

  • Controlling VI Logger 1.1.1 with LabVIEW 7.1

    I have LabVIEW 7.1 on my system and installed VI Logger (1.1 them upgraded to 1.1.1). I would like to programatically control VI Logger with LabVIEW. There are references to VIs under the Advanced pallate to do just that, but I cannot find them or any help files to explain what to do. Where do I find these VIs?

    Hello,
    Thank you for contacting National Instruments.
    After you install VI Logger, the VI Logger Subpalette should appear on the functions palette. See the attached screenshot.
    If they do not appear there, try to reinstall VI Logger.
    Let me know if you have further questions.
    Sincerely,
    Sean C.
    Applications Engineer
    National Instruments
    Attachments:
    VILoggerVIs.bmp ‏2305 KB

  • LCD with Labview

    I was looking projects and I found this document on how to use LCD screens with LabVIEW, specifically on the myRIO platform. However, I was confused by the wiring schematic, since I am relatively new to using LabVIEW and the MyRIO platform. I understood the wiring diagram for everything except for J2. I did not know what J2 was. Could anyone explain what it is for me?
    This is the document that I was looking at:
    https://decibel.ni.com/content/docs/DOC-30485
    Thank you in advance.

    Hi, Jonathan
    I think J2 is just a connector. This will connect to myRIO device.
    You can look PCB picture, you will find J2 wire to the LCD and other pins.
    Patrick
    Certified LabVIEW Developer

  • Control izarc or winzip or winuha with labview

    Hi.
    I have a lot of data with my acquisition program.
    The idea is to compress it to file it.
    How can I make an automatic program with labview to compress datas with winzip or izarc or winuha or anything else???
    It's very important for me because my data can be more than 4 Go then compressed less than 300 Mo !
    Can somebody help me on this point???
    Thanks in advance.

    DFGray wrote:
    > As another option, you can use zlib (a very commonly used freeware library) directly from LabVIEW. Its compression algorithm is very similar
    to WinZIP, so you should get similar results. Search for <B>LabVIEW Windows
    Routines for Data Compression</B> at the main ni.com prompt or try the
    following link <snip>
    As the original developer of the OpenG lvzip library I just want to say
    that it does make use of the zlib library internally. What I did was
    merging the "zlib" library by Jean-loup Gailly and Mark Adler with the
    "zip/unzip" code from Gilles Vollant and changing the export type of the
    functions so that the same VIs could be used to call either a unix
    shared library of that code or a Windows DLL version.
    The next version currently under testing will support adding new files
    to an existing archive, deleting files from an archive as well as
    extracting password protected files.
    Rolf KAlbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Control DC Motor (start and stop) with LabView

    I never used Lab View before. For a project, we have to use Lab View to make a small dc motor (HP:1/2, RPM 1725) start, and stop. I have no idea how to do this. Any advice/help anyone? Any tutorial or vi. would help!

    Hi there,
    Search for “H-bridge” for a common DC motor control circuit, the input terminals from the bridge can be controlled using any DAQ device with digital output lines from LabVIEW. For example: https://decibel.ni.com/content/docs/DOC-17062
    Regards,
    Alejandro | Academic Program Engineer | National Instruments

  • Usb LCD with Labview

     Hi, I am trying to use a Pic18f4550 with the LabVIEW to communicate with an LCD display 4*20. All I need it to do is display text on the LCD screen, someone has done this kind of application that can tell me some tips on how to do this?

    Please continue in the same thread

  • Can I control the POSIDYN SDS 5000 driver with LabView?

    Hey all,
    I am working on the automation of some high power syringe pumps, the proposed driver is Stoeber POSIDYN SDS 5000 driver (http://www.stoeber.de/TDE/G5/DOKUV56D/442277_01_PHB_SDS_5000_en.pdf).
    Can this driver be controlled via the NI CAN CompactDAQ (http://www.ni.com/white-paper/12316/en/)?.
    I don't understand the level of integration of the NI CAN interface with generic CAN drivers. In concrete, I want to know if I will need custom binary/ASCII commands or if the NI XNET CAN API will provide the necessary function blocks. If anyone has an example VI that would be great.
    Thanks for your time.
    E.

    Hello Cheve,
    Thanks for using National Instruments forums! Answering your question, yes it is possible to control the POSIDYN 5000 with the XNET driver, just to let you know XNET is the software layer that allows specific hardware to execute CAN commands (as well as LIN and FlexRay) and performs all the communication between NI hardware and your application. For a better understanding you can check the CAN Loopback Test.vi within the Find Examples section in LabVIEW (Help --> Find Examples…).
    Have you already thought about which HW platform you will use? Do you need portability with more than 1 POSIDYN driver or your system will just be mounted in a bench? If you can provide me with this information I will be glad to help you with a recommended hardware platform that fits your needs.
    If you plan to use cDAQ the modules that you can use are the 9861 and 9862.
    http://sine.ni.com/nips/cds/view/p/lang/es/nid/209347
    http://sine.ni.com/nips/cds/view/p/lang/es/nid/210072
    Hope you find this information useful!

  • Control a m061-fd02 step motor with labview

    i am trying to control a m061-fd02 step motor via cdaq 9178,and i dont really know how to begin,can some one help me

    Thank you both for posting on NI Discussion Forums. It looks like you are close to finding an answer to your questions. Also, our engineers at National Instruments would be glad to help you find the products that you need to meet your applications needs. We are here to help.
    I believe that this post should have been made in the Motion Control board rather than the LabVIEW board. These forums are moderated by NI engineers. By posting in the correct board, the posts are routed to the correct engineering teams so that we can assist you all more efficiently.
    Applications Engineer
    National Instruments

  • Controlling Hamamatsu Camera with LabVIEW

    I am using a Hamamatsu 1394 ORCA-ERA Camera in order to save microscope images on a PC. Im my lab, we are attempting to automate the process of saving an image from this microscope, and coordinate the time of the image capture with a function performed with LabVIEW. 
    As the 1394 name implies, this camera is connected to our PC using a firewire port. Is it possible to control the function of this camera with LabVIEW through a firewire port? What additional LabVIEW libraries would I need in order to perform this task, if any? Finally, is it possible to use LabVIEW to control a program called micro-manager that we currently use to save images? I know the Hamamatsu API supports both programs, but I am not sure if cross-communication between them is supported. 
    Thank you for reading, any response is greatly appreciated. 

    You say the API supports LabVIEW.  Does it have any example code for you to start with?  Typically driver sets include examples to make it easier to work with their API.
    If it works with that API, I'd see if you can get that to work with taking the images without using the second program.  You can typically use something like system exec on a Windows machine to run programs.  I'm not sure of anything that works similarly for a Mac.  Does micro-manager have an API you can use to make calls to it?

  • How can I control PIC programmer with LabVIEW

    I need to control a PIC Programmer (MPLAB PM3) with LabVIEW. How to do this?

    Hi Paul.
    I am working on a project that is using LabVIEW to communicate via serial communication with 4 programmers (Com 1, 2, 3, & 4). I am currently using the Microchip PM3 programmer DOS utility PM3CMD.exe to send/receive commands from the system exec.vi in LabVIEW. I am attempting to program simultaneously with 4 programmers, but the PM3 programmers are returning a database error if I try and communicate with more-than 2 programmers at a time. I noticed that you have some experience with some drivers from Microchip and using serial commands.
    Do you have any suggestions that may help me.
    Thanks.

  • How can i control the Tektronix AFG3022 with LabView 7.0

    I am trying to control the Tektronix AFG3022 Function Generator with LabView 7.0. Is there a premade program I can download and use?

    If it is not in 7.0 make new thread and ask nice if someone can convert to labview 7.0.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Interfacing a piezioelectric actuator with Labview

    im looking at controlling a Melles Griot piezoelectirc actuator with Labview to obtain real time data of voltage vs displacement. However, i do not know how to write the program for a closed loop function block. Ie, i need to ask the actuator to move a distance by applying a suitable voltage when there is resistance to motion.

    Unless you are using LabVIEW RT on a PXI system it's not a good idea to do control loops in LabVIEW or any other Windows based software. On Windows the timing behavior is not deterministic. That means the loop cycle time varies. The loop cycle time directly influences the control algorithm. The faster a PID loop runs, the lower your Kp, Kd, Ki values need to be. Thus on a system like Windows without deterministic timing it's hard or even impossible to get a stable system.
    A much better choice is the use of a motion control board, e. g. the PCI-7344 or PCI-7342 board. These devices run the PID loop onboard in realtime and you only need to set parameters like travel distance, speed and acceleration. You can use quadrature encoders or analog signals as feedback signals and
    with the latest release of the driver software, NI-Motion 6.0 there is also an assistant included that helps you to eliminate the effects caused by static friction that are immanent to piezo systems.
    Please visit the following link to get more information:
    http://www.ni.com/motion
    Best regards,
    Jochen Klier
    Applications Engineering Group Leader
    National Instruments GERmany GMbH

  • Speeding the Keithley 6485 readings with LabView

    Hi All,
    I'm new with LabView and with current measurements. I'm using a Keithley 6485 Pico-Amp to recored the current changes in microchannels. I downloaded the instrument drivers from the NI website and I tried to control the Pico-Amp current readings with LabView 7.1 but the rate of readings from the Pico Amp was slow ( a reading every 0.5 s). I tried to change a lot of parameters and I found the main problem causing such slow measurements is the read VI for the Pico-Amp was very slow in the while loop.
    is there any way to recored fast continuous measurements from the Pico-Amp using the read VI in a while loop with LabView 7.1?.  or if there is another to do fast recordings form the Pico-Amp with LabView? 
    I appreciate your help and suggestions.
    thanks

    thanks a lot guys for your suggestions and comments.
    at the present time I'm using the analog output of the Pico -Amp to recored the readings via a Daq since I couldn't control it form the drivers. So,  I only control the Pico Amp from the front panel.
    Dennis, thanks for your suggestions and it is true that fetch multi-point is faster but it is still not fast enough since I want reading at a rate of 40-50 Hz. if you know of a way to increase the readings rate to the frequency I need it will be helpful.
    F. Schubert, thanks for comments. I don't know how to change the NPLC since when I change the value in the VI an error message appears and Labview terminates. the NPLC setting is 1 and PLC 60 Hz.
    I attached a sample of VI I'm using to find the readings from the Pico-Amp and I would appreciate any suggestions to improve the readings rate. also how can I change the NPLC value of the device?
    Thanks
    Message Edited by Zeyad on 09-13-2007 11:51 AM
    Attachments:
    Pico_AMP_tests_2.vi ‏125 KB

  • I need to control a Ransco temperature chamber with LabVIEW

           I need to
    control a Ransco temperature chamber with LabVIEW.  The temperature chamber requires four BCD digits
    plus a – /+ bit and some control lines.  I have a piece of hardware attached to my PC
    called LabJack.  LabJack has 16 digital
    input/outputs, 8 analog inputs and 2 analog outputs.  What I would like to do is control the
    temperature chamber with LabVIEW using the LabJack as an interface.  Has anyone in the group done this or something
    close to it before?  Also has anyone used
    LabVIEW to control a LabJack for any purpose? 
    I would be interested in looking at what you did and what drivers and VIs you used.
    Thanks,
    Gary

    Try reading this thread. It might not be terribly helpful to your application, but it might answer some questions. Also look at the Labjack site to look for the LabVIEW VIs that they have written.

  • How can I programati​cally control the names of files output from Labview into .pdf format (ie with Adobe PDF Writer or Distiller)​?

    I would like to save some data forms for a standard test controlled with labview in a pdf format. Due to the large number of forms and test reports, I would like to have Labview automatically assign the .pdf file name based on test number already contained in the labview code. How can I do this.
    Note: This question is very similar to:
    "Labview and Adobe Acrobat output" posted by John Balone on 1/26/2000. The reponses offered good suggestions but it is not clear to me how to implement them.

    This information is essential if you plan to use the Acrobat Distiller printer driver and any of the examples listed here:
    http://zone.ni.com/devzone/devzone.nsf/webcategori​es/EADE78F29101E8DB862567AC0058596B?opendocument&n​ode=DZ52095_US
    -Graeme, rayodyne.com
    Attachments:
    1_-_Printer_Configuration_with_Acrobat_Distiller.jpg ‏64 KB
    2_-_Printer_Configuration_with_Acrobat_Distiller.jpg ‏33 KB

Maybe you are looking for

  • How do I delete my iCloud account from Apple?

    I have an iCloud account which I never used.  Wanted to delete it to minimize the potential hazardous of being hacked.

  • Why can't I sign in on my G4?

    I'm sure that I have done something terribly stupid, so here goes: I decided to decrypt my vault file (hoping to save memory), which took about an hour. The computer asked for my Mac OSX sign in. I inserted the short form of my administrator's name a

  • How do i delete a program off of a mac?

    i've had my mac for a while but i was wondering how do i delete a program off of it i've just been taking the folders the program is in and dragging it to the trash? is that the right way.

  • I dont have the u2 ablum

    for some reason i cant down load the new u2 album on to my laptop. its on my iPhone but not on my laptop. i listen to most of music on my laptop. so please someone help me get the new album onto my laptop please!!

  • PCI-5124 compatibil​ity with PCI-X (PCI eXtended)

    Can I install PCI-5124 to PCI-X (PCI eXtended) slot? It physically fits but I want to make sure it will work and not be damaged when it is powered up. Solved! Go to Solution.