Need program in labview to generate 8 control bits using DAQ

Hi,
           8 bits are to be generated using NI USB base myDAQ card and virtual instrument developed in LabVIEW 8.6.
                                                              could someone send me a labview program for generating control bits.

Homework?
Have a look at the examples shipped with LV.
Greetings from Germany
Henrik
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

Similar Messages

  • How can I set the sampling frequency in Labview if I am not using DAQ?

     I am working with bluetooth to send my four signals from my circuit to the computer. So, I am using VISA to acquire the data in labview. Since as you know its not possible to use DAQ while using bluetooth. 
    anyway after getting the signal I need to filter ir for analysis part and I am using filter express VI from signal processing's functions. However, I am getting error, since I dont have the sampling frequency set and I am not able to set it in my filter function either.
    I was wondering If there is a way of making labview recognize the clock-timer as the sampling rate or any other way to set the sampling frequency somewhere before the filters. 
    here is the program, you can take a look at it.
    Attachments:
    shift final - Copy.vi ‏363 KB

    Sender side is sendng 2 bytes of FF in the begining of the loop and 2 bytes of zeros between each signal, I am attaching the code as ICCV8 file (I will also attach it as a notepad file), so you can see what I mean. I had written some solutions for that as well in my program before but not sure if it was correct or not. I tried to search for  FF bytes as a string, after getting each 18 bytes. But apparently it doesnt find the FF, I reckon because of wrong conversions beforehand, so it stops the programm there. Im attaching the that program now as well. could you please take a look?
    Attachments:
    main.c ‏2 KB
    bluetooth code.txt ‏2 KB
    ok - Copy.vi ‏159 KB

  • Seeking freelance job: LabVIEW and/or Controls, or other electrical engineering jobs

    Hi all,
    I am starting my consulting business and look for projects that need skills like LabVIEW, real-time controls, embedded system, etc.  I am located on the east coast and able to travel occasionally, especially during the summer time. Please contact me (jianchu at gmail dot com) if you or your associates need help.
    Thank you!
    --Jason

    Ineterested people can contact me at [email protected]
    If anybody is also looking for outsourcing the LabVIEW development works, or planning to start a new LabVIEW development branch in India, I am interested in taking up these responsibilities.
    Thank you. 

  • Error downloading Captivate 7 to my laptop.  Need the 32bit version not the 64 bit [was: Question]

    I had an error downloading Captivate 7 to my laptop.  I need the 32bit version not the 64 bit

    I used the link from the adobe rep.  I clicked on the amairi 64 bit
    download link.  Not sure exactly how to answer.  Can I get the link again
    and download the correct version (32bit)?

  • Labview example for data capture using 5102 scope card

    How can I program a Labview Vi to control, and capture a waveform using the 5102 scope card. I need to be able to set it up to continually capture a waveform (Channel 1 and Channel 2) when triggered on a rising edge of channel 1 and then store the data on disk automatically, then wait for the next trigger.
    Any help or tips as to how I could do it would be helpful.
    Thanks
    Allan

    Allan,
    Please find the attached zip file that has some useful LabVIEW examples with scope 5102
    Zvezdana S.
    National Instruments
    Attachments:
    scope.zip ‏181 KB

  • 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 with LabVIEW code for motor control.

    Hi,
    My name is Sasi. I am a BME grad student working on my thesis topic of evaluating spine implants for low back pain. For this I am building a test machine that would apply pure moments to a spine specimen. I am using LabVIEW 8.5 to implement control of a brushless AC servo motor. My requirement is,
    Step 1: Initialize the motor.
    Step 2: Start moving it at a uniform RPM to the right (This RPM value too user can enter).
    Step
    3: While doin Step 2; simultaneously read torque cell data (Using DAQ
    asst.). DAQ o/p is from 0 V to 10 V; 0 V being -10 Nm n
                10 V being  +10 Nm
    Step 4: When Torque value reaches +10 Nm, i.e 10 V, the motor stops.
    Step
    5: From the position where motor stopped (i.e no need to reset to
    initial position) Start moving in the opposite direction at the same
                uniform RPM as in Step 2 while reading torque cell data.
    Step 6: Once again when torque reaches -10 Nm, i.e. 0 V, the motor should stop.
    Step 7: Repeat 'Step 2' to 'Step 6' 3 times.
    Step 8: Reset motor postion.
    Till now I have managed to get the motor to move forward n backward @ a desired vel, accl, n deceleration for 3 cycles. I am attaching my code. I am having problem inserting the code for reading DAQmx amidst all this. Can anyone help me out.
    Thnks,
    Sasi.
    Solved!
    Go to Solution.
    Attachments:
    Test_012609.vi ‏35 KB

    Hi Sasidhar,
    I took a look at your problem and I think I have a workable solution for you.  I definitely agree with Lynn's suggestion of using parallel loops.  This will allow the DAQmx portion to run uninhibited by the motion portion, and vice versa.  Plus, you only need to iterate the motion loop whenever the voltage level crosses a threshold.  So, by iterating on the motion code in the same loop that you are iterating on DAQmx code, you are essentially wasting processor.
    I created a VI that should do what you are wanting.  I tested it out myself and it works great.  You might have a tweak a few things to apply to your system (like motion board ID and DAQmx physical channel, etc.).  I used two parallel loops and event-based programming.  Basically the motion loop starts the motor spinning at the specified velocity.  Once the motor is spinning, it waits for the DAQmx loop to tell it that the voltage value has crossed the threshold.  When the voltage value exceeds the maximum threshold (which I set to a value slightly less than 10 to allow for jitter and saturation), the DAQmx loop signals the motion loop that it can finish its iteration.  The motion loop stops the motion, reverses the direction, and starts the motion again.  Once motion has started, it again waits for the DAQmx loop to tell it that a threshold has occurred, but this time, it is looking for a minimum threshold.  I used "Occurrences" to implement the event-based programming in LabVIEW.
    I have commented the code rather thouroughly, so hopefully the comments will answer any remaining questions.  The benefit of using event-based programming for this is that you save processor time, and your motion is more closely synchonized with the DAQmx.  Instead of iterating the motion loop as fast as you can, checking for updates each time, you just pause it, and wait for the other loop to tell you when to start up again.  In the mean time, the processor doesn't have to worry about iterating that loop over and over again.  Also, when the occurrence does occur, you catch it immediately, instead of having to wait until the next iteration.  Thus, you are more closely synchronized with the DAQmx portion of the code.
    I hope this will help you.  Please post back if you have any questions about the code or its implementation.  Good Luck!
    Message Edited by Wes P on 02-03-2009 05:18 PM
    Wes P
    Certified LabVIEW Developer
    Attachments:
    Motion and DAQ.vi ‏59 KB
    DAQmx Loop.png ‏24 KB
    Motion Loop.png ‏17 KB

  • Program LPC2378 with code generated by LabView ARM embedded, without using LabView

    I would like to use the C files that are originally generated in LabVIEW ARM embedded module, and use Keil software (or other lower cost) to load these files into custom boards with LPC2378 controller without LabView.  Are there detailed instuctions for this?  I am using version 8.6 and the ARM embedded module is 1.1.  
    My reason for this task is boards are being made in a maufacturing facility oversees, and they need to be programmed at their end. 
    I read a forum describing the use of  hex files, but not enough detail for me to figure this out.
    Thanks in advance.

    Hey Bob,
    What you're looking to do should be possible. You'll just need to build the application in LabVIEW, then you should be able to use the uVisions command line to deploy the system. As for the C code itself, it gets generated when you build your build specification and you should see it placed in the same directory as your labview project in a folder named the name of your project. For example, if your project were called My ARM Project, you'll see a folder called "My ARM Project" created/updated whenever you build the build specification in that project and it will contain the C Code. To see the code organized logically, after building your build specification, right-click on the ARM target and select "Show Keil uVision". This will open a uVision window in "LabVIEW mode" and you'll be able to see all of the C files associated with you application; your VI specific code will be under a folder titled "VIs". You could also just open the C code files from disk in uVision, which is what you'll need to do if LabVIEW isn't installed. The main LabVIEW project can be found in the built directory described above as the LabVIEW.uvproj file in the "target"/Application/"uvision version"/Project directory. For example my main file was built in MyProject\EK_LM3S8962\Application\4.01\Project. From there, you'll need to follow uVision's process for compiling and deploying the target code from their command line:
    Command Line
    http://www.keil.com/support/man/docs/uv4/uv4_comma​ndline.htm
    Hope this helps!
    --Ryan_S

  • Need Help on How to Generate Pulse Width Modulation signals

    Hi,
    I am New in using NI board and programming using LabView. I have no idea on how to start to generate, use what function in order to create a PWM signals.
    My project needs:
    -PWM signals with 15kHz frequency.
    -Duty cycle varrying from 0%, 25%, 50%, 75%, 100%.
    -By using the generated PWM signals to control the half-bridge (MOSFETs) of boost converter and buck converter to varying the voltage of 24V battery to feed in my DC motor.
    The NI board that I use is (NI - sbRIO-9642).
    Can I have a clear view on what to use, how to generate, and by using what functions to generate the PWM signals.
    Sorry for the inconvienient, but I really desperate for help in this. Thanks a lot. I am appreaciate it.
    The attached is the circuit the half-bridge motor controller that I will used.
    Attachments:
    half bridge.jpg ‏13 KB

    Hi Ronald,
    in this thread a very similar question came up. You can use the same approach on your sbRIO.
    For the frequency you gave you should use the FPGA present on the sbRIO - as is shown/discussed in that other thread! I also suggest that other thread because of the "deadtime" feature used to prevent shortcut problems when switching your MOSFETS simultanuously...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to implement autotuning pid in labview in flow control process????

    I tried the same way as Example available in LabVIEW..... that is general auto PID simulator... But that didn't worked out for me.....

    The 'General Auto PID Simulator.vi' example uses the technique "PID Relay" feedback where it tries to calculate the PID values based on the relay feedback, but using the PID also in the loop:
    (http://zone.ni.com/reference/en-XX/help/370401H-01/lvpidmain/pidrelay_alg/)
    This technique works, but it requires initial PID parameters that will make the relay setpoint stable and it is able to obtain the results you are expecting.
    Now, for flow control, you can try the most classic techniques. Please use other shipping examples that start with "autotuning" and in special this:
    C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\control\PID\Autotuning PID Online.vi
    In this VI, you can choose other techniques like open-loop step response, closed-loop step response and the original 'relay feedback' where it doesn't have a PID inside the estimation loop.
    Anyway, here you have more information about those techniques http://zone.ni.com/reference/en-XX/help/370401H-01/TOC4.htm.
    One more thing: keep in mind that depending on the plant parameters, a PID could not be suited for your application and a more complex controller need to be developed.
    Hope this can help you...
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Need Help w/Labview

    I need urgent help on a program that I am suppossed to design using
    labview(5.1), in conjuction with circuit boards designed by national
    instruments. The program calls for controlling Eurotherm 818
    temperature controller and National Instruments ER-8 relay control
    board. Both controls use digital and analog I/O board designed by
    national instruments. I appreciate all the help I can get.
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    Check out the Functions>>Structures>>While Loop. You can set the
    condition and wire it to the stop, or you can use a boolean switch.
    Beware, though, if you use the latter, wire it to an inverter and then
    to the stop.
    Hope this helps.
    Jon A. Rinkenberger
    Atmospheric Physics Research Laboratory
    Physical Science Department
    Embry-Riddle Aeronautical University
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

  • 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

  • "cwui"Error loading control. A newer version needed. The defaultsettings for the control will be used.

    各位先進:小弟最近在執行一個執行檔(.exe)時,跳出了"cwui"的視窗,上面寫著"Error loading control. A newer version needed. The defaultsettings for the control will be used."執行檔沒辦法動作,不知道是哪個地方出問題了...煩請各位解答我的苦惱之處!!感激不盡~

    請看看您的錯誤是否跟下面這個一樣
    http://digital.ni.com/public.nsf/allkb/627F8B1A99A72DBC862578770051FB9B
    若不是的話煩請提供您
    1. 錯誤訊息截圖
    2. 作業系統版本(是否是64-bit)
    3. LabVIEW版本
    4. 佈署端電腦所安裝的Runtime Engine版本
    5. 程式中有使用到的module或toolkit,例如:DSC, OPC server....等
    謝謝!

  • "problem installing LabVIEW Interface Generator"

    Hello,
    I am running labview 7.1, windows xp sp2.
    I am interested in trying out the new labview interface generator, but something seems to be going wrong on installation.
    I download and run the executable, it unpackages a bunch of stuff pretty fast, then it starts unpackaging an "MDSPlus" package that takes a very long time (20 minutes). Then the MDSplus install wizard comes up, I press ok/next. Then another very long wait while it installs, then finally a message saying MDSplus installation complete, click close to exit which I do. Then that wizard goes away, as does the extracting zip dialog. No errors, everything seems fine.
    But then when I open labview, there is no change: same old tools under tools/instrumentation. There is no "interface generator" on the list produced by add/remove programs (top level or under National Instruments). The only thing added is MDSplus.
    Have attempted several times, rebooted, etc. Still no new tools.
    Thanks in advance
    TR Livesey
    Dynamic Signals LLC

    Hi TR:
    Thanks for your patience.   I think we (at NI) started barking up the wrong tree.  I went back to your original post and notice you said things like MDSplus, 20 minute install time, etc.   I'm wondering if this is something as simple as you are running the wrong installer.  The self-extracting archive file for the LabVIEW Interface Generator tool is named "driverctolv.exe".   Is this what you downloaded and are running?  If not, please go back to the web site:
    https://sine.ni.com/apps/utf8/nigb.guestbook?code=GB_INFOLVINSTDRIVER&lang=US&gb_prof_id=4982&scode=...
    Fill in the info again, select "Continue" to get to the next page.  If you are running Internet Explorer, right-click on the "Download the utility for LabVIEW 7.1" link and select "Save Target As...".  You should see the filename at this point.  Verify that it indeed has the name listed above.   After download then run the extracting archive.  The installer should take no more than a minute or two to install (no where near 20 minutes) and the dialogs should not indicate MDSplus.
    I did a few Google and other searches on MDSplus.  It seems that there are VI wrappers around MDSPlus libraries.  So, maybe you are also using this product separately?  
    If, for some reason, you are indeed launching the driverctolv.exe and somehow the MDSplus installer is being launched, we really need to take a totally different approach to problem solving.  But, maybe you can confirm before we go down that path.
    Again, thanks for your patience.
    Noel Adorno

Maybe you are looking for

  • W530 Boot Failure with out any BSOD

    I bought my thinkpad w530 in Oct. 2012. It works perfect until recent month. At the beginning, it can't wake up in the sleep mode. If I connect the AC power, it reset the BIOS time. And nowadays, when i power off this laptop, it can't boot. And I rem

  • Mailboxes in another forest

    I'd like to ask what are my options on a scenario described here: Two AD forests without any trusts between (let's call em old and new) Old has users and Exchange 2000 New has the same users (with new samaccountnames) and Exchange 2013 There's no nee

  • IWeb not opening

    Added a new podcast tonite to my webpage & iTunes. All seems fine. I then ran a backup for iWeb (that didn't seem to run properly) & now when I try to open iWeb, it won't open & I get a message that says, "index.xml file is missing." "Can't open file

  • I need to download CVI 9.0.1

    Can you give me a link to download CVI 9.0.1 CVI Full Dev?   2009 requires a new RTE and I cannot upgrade all my machines at this time.

  • What is CK11 and CK24? And what role do they play in A/c Detrn. ?

    Hi, What is CK11 and CK24? And what role do they play in A/c Detrn. ? Regrds, Binayak