Help program LabVIEW

Hi all

I am facing problems with the project I'm doing with my traditions. The project I'm doing is a lot like a game with two generators and two people will have to compete and see which generates more. It must have the following functions:

-Display the current values measured by sensors in current of 2 respective generators.

-Have an array of waveform that is capable of displaying the current measured values.

-Have some sort of 'sliding bar' system that increases as the amount produced since generators increases.

-Have a scoring system for the people of ten albums that generates the most.

I know I already asked questions on the subject of some of the functions above, but attached is my vi together that our group has managed to date. I would appreciate if someone can point out our mistakes that we made, improvements we can make to improve our project.

The problems that we have so far:

-Cannot write the measured values for the file using "write to the spreadsheet" excel (not sure if we have problems in our program that will lead to this)

-We currently use several LEDs to the 'sliding bar' (we do it wrong?)


Tags: NI Software

Similar Questions

  • How to debug the program Labview that runs in the target of the RT of a Compact RIO

    I use CRIO-9073 for the acquisition of data from sensors. Program Labview is written in RT target and target FPGA. It is posssible to make step wise execution for the program written in the target RT and FPGA target the way purpose us for the debugging of the program in general OS.

    MJM,

    The only way to use the debugging on a VI wrote to FPGA tools is to simulate running on the host computer. You can then deploy the compiled FPGA code on the target and run your VI RT in debug mode if you use the communication of the façade with the host PC.

  • How to send a nxt program labview in the mindstorm block

    Hello

    I would like to know how to send a writing of nxt program on labview in the mindstorm block for not using usb and bluetooth connection

    In order to start a program directly with the block

    Thanks for your your answer attentionand

    Hello

    National Instruments does not directly support the LEGO Mindstorms Nxt please refer to this KB see were you can ask for help.

  • Need help with LabVIEW code for motor control.

    Hello

    My name is Sasi. I'm a grad student BME working on my thesis topic of assessment for back pain spine implants. To do this, I'm building a test machine that would apply pure moments of a specimen of the spinal column. I use LabVIEW 8.5 to implement the control of a brushless AC servo motor. My requirement is

    Step 1: Initialize the engine.
    Step 2: Start moving it to a uniform to the right PLAN (this value of RPM too user can enter).
    Step 3: while doing step 2; at the same time read the couple cell data (acquisition of data using Asst.). DAQ o/p is 0 v to 10 V; 0 v is 10 Nm n
    10 v is + 10 Nm
    Step 4: What torque reached + 10 Nm, i.e. 10 V, the engine stops.
    Step 5: from the position where the motor stopped (IE not need to return to the initial position) start moving in the opposite direction to the same
    Uniform rpm as in step 2 at the reading of data in the cells of the couple.
    Step 6: once more what torque reached-10 Nm, i.e. 0 V, the engine should stop.
    Step 7: Repeat "Step 2" to the "step 6' 3 times.
    Step 8: Reset engine position.

    So far, I managed to get the engine to move backward @ a desired vel, the accl, deceleration for 3 cycles before n n. I enclose my code. I have a problem inserting the code for reading DAQmx amidst all this. Can someone help me.

    Thnks,

    Sasi.

    Hi Sonia,.

    I took a quick glance to your problem and I think I have a solution for you.  I certainly agree with the suggestion of the use of parallel loops Lynn.  This will allow the portion DAQmx run uninhibited by the part of the motion, and vice versa.  In addition, you need only perform an iteration of the loop of the movement whenever the voltage level exceeds a threshold.  Thus, by performing an iteration on the code of movement in the same loop are you iterate over DAQmx code, you essentially waste processor.

    I created a VI that should do what you are wanting.  I tested it on me and it works very well.  You have a tweak a few things to apply to your system (such as motion Council DAQmx and physical channel ID, etc.).  I used two parallel loops and event programming.  Basically, the loop of movement starts the engine turns at the specified speed.  Once the engine is running, he expects the DAQmx loop to tell him that the voltage value has crossed the threshold.  When the voltage value exceeds the maximum threshold (I put a value slightly less than 10 to jitter and saturation), the DAQmx loop indicates the loop of the motion that it may end its iteration.  The motion loop stops the motion, causes a reversal and repeats the motion.  Once the movement has begun, he expects the DAQmx loop once again to tell him that a threshold was held, but this time, it's looking for a minimum threshold.  I used "Occurrences" to implement the event programming in LabVIEW.

    I've commented the code pretty thoroughly, so I hope that comments will answer all remaining questions.  The advantage of using programs that focus on the event for this is that you save time processor, and your movement is more closely synchronized with the DAQmx.  Instead of one iteration of the loop of movement as fast as you can, updates every hour, you just put in pause and wait for the other loop to tell you when to start up again.  Meanwhile, the processor doesn't have to worry about an iteration of this loop over and over again.  In addition, when the accident occurs, you catch him immediately, instead of having to wait until the next iteration.  Thus, you are more closely synchronized with the DAQmx code portion.

    I hope this will help you.  Please report if you have any questions about the code or its implementation.  Good luck!


  • How do program labview to get an average of 200 meter reading (using loop)

    Hello

    How the labview program to obtain a value average 200 reading of the multimeter (I-help using the loop) to read the voltage level of mulmeter, but I want to get an average value of all of the 200 reding how can I do?

    Thank you

    Wee

    Thanks for the pointer to James, but I think that I misunderstood.

    I enclose an excerpt from the details I have never described the use of a table.

  • programming LabVIEW 2010 how to scxi 1102 and 1503 cascade in scxi 1101 case

    How to scxi 1102 and 1503 cascading if 1101 scxi for labview 2010 programming

    just test ok

    LabVIEW 2010 latest

  • Need help of LabView on loops

    I'm doing a LabVIEW MyRIO project on how to display the values. Basically, I give myself a LCD screen and a keyboard. I'm supposed to show three sequences in the order. First, it must ask the user to enter a number on the keyboard to choose his field of interest. Then depending on the number, the user is prompted again to choose another number to specify the particular value he or she wants to watch. Finally, the value is displayed and the user can choose to return to the previous sequence interface by pressing a key. Each of the three sequences are able to "hold" until the user presses a button.

    I am able to attend the second interface using all loop inside a structure of the case, but I don't know how to start pressing a button to return to previous sequences. I need help on this particular part.

    Thanks in advance!

    The code that looks way too complicated for the problem you described.  Where is the state machine that we suggested to you?  Why so many useless people sequence structures?

  • Download program labview on several robots

    Hello

    I'm new to LabVIEW and robotics kit. My question is how to download a simple example (avoidance of obstacles) on several robots at the same time. I am able to download separately one by one and it is caught in time. Is there a way in such a way that all the robots with ethernet cables are connected to the switch and controlled at the same time and each of them while giving the ip address or the name of the program?

    Thank you

    Goutham

    Great news.  In fact, we have a range of Configuration software in real-time in LabVIEW which can copy the image to a target and then apply this image to other targets.

    You can find the palette able IO > System Configuration

    What you have to do is copy the image, and then you can download the image to your robots.

    This option, or one of the other two should do the job.

    Finally, remember that if two starter kit robots are pointing towards each other, the sonar sensors will interfere with each other.  If you use the stock starter kit, you can run difficulties running several robots using both the sonar sensor if they will compete.

  • Program LabVIEW will hang between 33% and 50% of the time.

    I have a problem with a Labview program, I did. I have two programs that do the same thing. One is as a flat sequence, and the other is in the form of State machine.

    As explained in the link below, I would like to use a microcontroller to perform wiring for automation of a measurement process. A separate current source and volt meter will be used.

    https://forums.NI.com/T5/LabVIEW/sequence-a-good-idea/TD-p/2601333

    I did some simple test programs that I join since then. The problem is when running, that the labview program crashes, but not all the time is to run the program.

    For example: Hall 1.2.vi will correctly work twice with the third time, he is executed, it crashes. If Cancel you and try again, it will run again twice without any problem with the third hanging. It is in the flat sequence format (was in a flat sequence, but merged windows because I thought that was the cause). From what I can tell, the program crashes when calling Keithley 6517 unique Read.vi. Two connected Keithley devices are connected to the computer via GPIB to 16 and 27. The way I checked if it was this vi the cause or contributed to what I deleted the program never hung and it. I find it very strange that it crashes exactly on the third attempt every time.

    Simple.VI Hall 1.3 will work the first time and hang the second time. If it works 50% of the time. It is in the format of State Machine. It hangs in the case entitled "Measurement 1" that contains the Keithley 6517 unique Read.vi.

    I used the running highlight button and watched the program to run. Curiously, it only crashes when you use this button. So I tried to add some delays/waiting in different places without success.

    This could be the cause? As a side note, I say that the program is suspended for two reasons. The principal is the program does not run so the execution arrow is always black. The second thing is that if you notice at the end of the labview program, I have a block he who turns to the power source which does not happen when it crashes. I have to turn it off manually, and then click the abort program button to stop labview.


  • With the help of LabVIEW FFT

    The FFT LabVIEW uses the usual term of eponential:

    e ^ (-i * 2 * pi * k * n/N)

    Is it possible that I could change this term to include a constant and perform the FFT as usual? that is to replace the exponential term above with something including a constant 'c ':

    e ^ (-i * 2 * pi * k * n * c/N)

    I actually use a 2D on a square table 2D FFT, but hopefully a solution to the case 1 d above would be easy to apply.

    If it's more math than the programming problem, a point in the right direction would be always greatly appreciated!

    The only parameter that you can control is N, the number of samples in the dataset.  You can try to do 1/N ' = c/n.  See if this will give you the results you expect. If c < 1,="" then="" n'=""> N and fill the input data will be required.  For otherwise, a reduced supply is necessary.  Pay attention to how the data is compressed so that you don't miss any information.

    Lynn

  • programming LabVIEW for nor 5122

    Hello, I just started working on a pxi system. I was wondering if anyone has useful resources for writing code for NOR-5122 (high speed scanning) and NOR-5421 (AWG). I've never programmed for pxi and while I looked at the examples in the examples to find section, I still can't understand things. Does anyone know of the tutorials or books or a reference to help me get a better understanding of how to program and eventually being able to create complex programs. Thank you. I really need to learn to program and your help would be very appreciated.

    Hi Boss,

    NI Signal generators help and digitizers AND high-speed main resources are available to work with these devices.  Under the subdivision of the programming of each help file, you will find a road section which includes a tutorial for the installation step by step of a pilot session.  In addition, you will find a reference section that describes each VI driver in detail.

    If you are not able to get a specific part of your application to function properly after reviewing these sources, you can certainly ask for help on the specific issue forums.

    Brian G

  • former program labview 5.0 to 8.6

    One of you could convert this old program 8.6.

    I'm using labview 8.6. Traditional DAQ 7.4.4.

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/2949

    Thank you!

    Hi Oly,

    Here you go (LV7.1...)

    Are you sure you want to use the functions of traditional data acquisition? This device is not supported by DAQmx?

  • Help: Program changed by default for Internet Explorer, the .lnk files.

    So yesterday, I did something stupid. I managed to change the default program for all my .lnk for Internet Explorer files. I am running Win 7 (64).

    When I double-click on any file on my desktop, it tries to open the file with Internet Explorer. It is the same for most of the program files in my Start menu. I met some difficulties for this problem, but all were for the latest operating systems such as Vista and XP so I didn't run the risk of ruining my registry even more by running an obsolete program. If more information is needed just ask.

    Help ASAP would be greatly appreciated.

    Thanks in advance people.

    Hello

    Reset the lnk - files shortcut link (LNK).

    Restore the Type Associations by default Windows 7 file Extension
    http://www.SevenForums.com/tutorials/19449-default-file-type-associations-restore.html

    How Unassociate a Type of Extension file in Vista and a utility to help (Windows 7 too)
    http://www.Vistax64.com/tutorials/91920-unassociate-file-extention-type.html

    How to set default Associations for a program in Windows 7
    http://www.SevenForums.com/tutorials/2630-default-programs-set-programs-default-associations.html

    How to change the default program opens a file Type in Windows 7 http://www.sevenforums.com/tutorials/12196-open-change-default-program.html

    How to associate a file Type or protocol default program in Windows 7
    http://www.SevenForums.com/tutorials/9154-default-programs-associate-file-type-Protocol.html
    How to show or hide the Extensions of types of files in Windows 7
    http://www.SevenForums.com/tutorials/10570-file-extensions-hide-show.html#post101629

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Help programming c#, Excel, Visual Studio, MySQL

    I have an assignment of my campus to create a visual studio c# use & mySQL program, this program must import data from excellent to the program, and then save to mySQL, but I can't do it... I am a beginner to create a program... can you help me please?

    because I am looking for the tutorial but I; m not find...

    Please help me...

    Thank you...

    Hello

    Your question is beyond the scope of this community.

    Please post your question to the MSDN Visual Studio Forums.

    https://social.msdn.Microsoft.com/forums/vstudio/en-us/home?category=VisualStudio

    And/or transfer your question in the SQL Server TechNet Forums.

    https://social.technet.Microsoft.com/forums/SQLServer/en-us/home?category=SQLServer

    See you soon.

  • How do I program labview to read all 8 compact fieldpoint modules?

    I am new to fieldpoint and I my set-up block diagram to read 8 strain gauges using a SG-140 module.  My basket is filled with strain gauge modules 8 SG-140, and I need to know how to fix my diagram to read all 8 modules of SG - 140.  So, I need a total of 64 strain gauge readings 8 modules of SG - 140.  Can I do this without really copying what I've already done 8 times more?  Is it possible to use a loop or something to read the 7 other modules?  I appreciate any help I can get.

    My opinion about not having to duplicate the table of index based on what your VI was showing at the time.  Once you have the VI implemented with multiple modules, then you will need to implement an array of unique Index stretched far enough to get all the channels of interest.  From a 2D array, you need to connect both the row index and column index for a single scalar element.  So first channel would be 0 and 1, then 0 and 4, canal next 0 and 7.  The next module would be 1 and 1, 1 and 4, 1 and 7.

Maybe you are looking for

  • What safe Air Shou

    So, I would like to start recording my screen on my iPhone and I've heard of what is called Air Shou. First of all, I would like to know if it is safe. It would damage my phone somehow? Secondly, is it legal. Why is it not on the app store? Finally,

  • Direct download 10 bootcamp drivers windows 6?

    Hi, I wiped the SSD and loaded 10 Windows on my MacBook Pro retina 2012 successfully, but now I can't find the drivers anywhere.  Where can I get these drivers and why should I do you make it so difficult for your customers?  any other brand/model, I

  • my iphone 6s battery dies at 40%

    my battery died often in 40%, but am not sure why?

  • Need Driver of Communications Simple PCI for my Satellite L635-113

    I need PCI Simple communication driver.Model: Toshiba Satellite L635-113Operating system is Windows 7 Home Premium 64-bit.Additional information: Vendor ID: 8086: 3B 64 device ID I wish a response with a smart solution. Thank you.

  • How can I get the file Library.photoslibrary from Yosemite to open in Mavericks

    Hello! I have downgraded from Yosemite to the Mavericks, and I'm moving my files to the Mavericks. I have a Library.photoslibrary file opening problem Photo with the Mavericks. That's what I tried: ILife 11. Installed iPhoto and updated to 9.4.3 worm