Labview questions

Hi
I am trying to learn Labview, but i do not have any other programing knowledge. I learn tutorials from documentation. Now I am trying to practice by trying to solve questions. Unfortunately i came across with these two questions. If someone can help with.... and if is appropiate to post such kind of questions here.
 QN 1.
Create a VI (while loop with a STOP button) that is the control center for a loading station for trucks. The
loading station can hold up to 5 trucks, which are loaded with cargo simultaniously. A can enter – signal
indicates to incoming trucks that they can advance into the loading station. A can leave – signal allows a
truck to leave the station if it is on. Trucks can leave the station if there are still more than 3 left in the station.
An additional wait – sensor indicates, whether there are one or more trucks waiting.
QN 2.
Create a VI (while loop with a STOP button) that is a card game. For each turn 3 cards are dealt from a stack
and an amount of 5$ is subtracted from the capital. The initial capital is 250$. The card set consists of cards
seven, eight, nine, ten, jack, queen, king, ace. Having three cards of same value (color doesn't matter) 200$
are added to the capital; having three cards forming a sequence (e.g. nine, ten, jack or queen, king, ace)
seen from left to right (color doesn't matter) 50$ are added to the player's capital. Pressing the once more
button starts a new turn.
Thanks

Is this you?
Post what you've done so far, ask specific questions and folks will rush to help!
</jim>
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

Similar Messages

  • Unanswered Labview Question

    Hello All,
    I have searched the entire NI forum to get the answer of the following question. But still I couldnot get the answer.
    Which of the following only plots data in evenly distributed intervals along the x-axis?  A) Waveform GraphB) Waveform ChartC) XY GraphD) Both A. and B. E) Both B. and C.
    The confusion is whether option A or option D. But I guess the answer is option A, since Waveform Chart can plot a single value which is not evenly distributed
    Please verify and give your comments.
    Solved!
    Go to Solution.

    Lavanya_sri wrote:
    Hello All,
    I have searched the entire NI forum to get the answer of the following question. But still I couldnot get the answer.
    Which of the following only plots data in evenly distributed intervals along the x-axis?  A) Waveform GraphB) Waveform ChartC) XY GraphD) Both A. and B. E) Both B. and C.
    The confusion is whether option A or option D. But I guess the answer is option A, since Waveform Chart can plot a single value which is not evenly distributed
    Please verify and give your comments.
    The answer is obvious once you realize that the person who wrote that question did NOT know that a chart that has a data type of of "Waveform" would use the "t0" value of the waveform to plot that data (provided "ingnore attribute" is NOT set).
    So forget about using a waveform data type and then try to answer the question.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Newbie Labview Question: Array of clusters

    1: i am a student
    2: this is not homework or a graded project
    3: I'm a pretty capable programmer, but that's in text-based languages. ;-)
    I have a sensor feed which contains 4 channels. I need to leave all 4 channels active, but I want to select one of them to graph at any given time. The data from the NI driver for the hardware comes as a 1x4 array of 2-element clusters.
    Normally, I'd just index to the desired element in the 1x4 array, and feed that cluster to the appropriate graphing tool, but I'm missing something. I swiped a display element from the NI driver example VI's, but any time I insert blocks between the data feed and the graph I get "bad connection" errors.
    I've been googling and book-looking for several days now, to no avail, I'd appreciate any help in this question.
    in the image at ( http://dl.dropbox.com/u/4286123/LabviewHelp.jpg  ), what block do i need to insert into the highlighted wire to be able to select and graph only one of the 4 data channels, controlled by an integer source?
    Many thanks.
    Solved!
    Go to Solution.

    Use the Index Array funtion found in the Array palette.  Wire in the index number of the waveform you wish to display.
    - tbob
    Inventor of the WORM Global

  • MATLAB DataPlugin for 64-bit LabVIEW

    Where is the 64-bit LabVIEW support for writing Matlab .mat files?  Or is the source code available for the 32-bit version (http://zone.ni.com/devzone/cda/epd/p/id/4178) so that someone can compile their own?
    Thanks,
    D

    To clarify what Chris said, 64-Bit Operating Systems with a 32-Bit emulation (x86 directory) are certainly fine with 32-Bit LabVIEW. (this excludes Windows XP 64-Bit as it has no emulation layer)
    Most general 32-Bit vs. 64-Bit LabVIEW questions are covered in this KnowledgeBase article.
    To summarize, you'll have full LabVIEW functionality with the 32-Bit version.
    The 64-Bit version of LabVIEW is really only recommended for Vision applications that need the additional resources for large image processing. 
    As another note, currently, most of our software also only supports 32-Bit versions of The MathWorks, Inc. Software.  
    MATLAB® is a registered trademark of The MathWorks, Inc.
    Applications Engineer
    National Instruments
    CLD Certified

  • I get the error "Cannot open port" when I want to display the directory content of one FTP servers with LabVIEW's internet toolkit functions. What is the problem? I'm logged on on the server.

    Is anyone experimenting this kind of problems or has resolved it? Thanks. I use LabVIEW 6.1 with Windows 98.

    Squish,
    This forum is for CAN questions. I would strongly urge you to repost your question to the LabVIEW General category and this is a LabVIEW question.
    Also, does the FTP Browser shipping example that comes with the Internet Toolkit work? If it does, then I would suggest studying that example. If it does not, then I would suggest reposting your question and giving much more detail about which VI is giving you the error and a general overview of the program.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Active x and event callback in Labview

    I have an active x written by Aanderaa Instruments (makes
    weather and hydrology sensors), it contain various methods and events to get
    the next line of records from a sensory scanning unit. The connection is
    through the COM1, so far i have wired it up only using the methods to get next
    record level, but then I have found that sometimes it does not get the complete
    record from the COM port. So to solve that I have to use an event in the active
    x to check for new record available. So what I want to do is send the event
    (when complete record available) to VI that uses the get next record method to
    pick up the data from the COM1 port and then send the data back to the main VI
    for processing, plotting and writing.
    My problem is that when I connect the output from the GetNextRecord method to a
    indicator that I then wire on the connector pane to be an output from this
    VI  get an error that there is a wire function conflict. I have tried to
    explain a bit better in the attached pdf file with diagrams.
    The reason why I want to export the data back in the main VI is because it runs
    continuously collecting data every 2 min and I plot them on a graph and write
    them to a file so it will no work to have all that done in the event callback
    VI that will only run ever 2 min, then it will reset the graph the whole time
    and I want continuous data plotting for 10 days of historic data records. I
    also have a few other sensors that come in through a connector board that are
    written o the same file.
    hope somebody can give me some hints
    Attachments:
    labview question.pdf ‏721 KB

    Duplicate post, click here for the original: http://forums.ni.com/ni/board/message?board.id=170&message.id=135639#M135639
    LabVIEW Champion . Do more with less code and in less time .

  • Event callback with active x in labview

    I have an active x written by Aanderaa Instruments (makes
    weather and hydrology sensors), it contain various methods and events to get
    the next line of records from a sensory scanning unit. The connection is
    through the COM1, so far i have wired it up only using the methods to get next
    record level, but then I have found that sometimes it does not get the complete
    record from the COM port. So to solve that I have to use an event in the active
    x to check for new record available. So what I want to do is send the event
    (when complete record available) to VI that uses the get next record method to
    pick up the data from the COM1 port and then send the data back to the main VI
    for processing, plotting and writing.
    My problem is that when I connect the output from the GetNextRecord method to a
    indicator that I then wire on the connector pane to be an output from this
    VI  get an error that there is a wire function conflict. I have tried to
    explain a bit better in the attached pdf file with diagrams.
    The reason why I want to export the data back in the main VI is because it runs
    continuously collecting data every 2 min and I plot them on a graph and write
    them to a file so it will no work to have all that done in the event callback
    VI that will only run ever 2 min, then it will reset the graph the whole time
    and I want continuous data plotting for 10 days of historic data records. I
    also have a few other sensors that come in through a connector board that are
    written o the same file.
    hope somebody can give me some hints 
    Attachments:
    labview question.pdf ‏721 KB

    Hello!
    I checked the PDF file with snippets of your code and it looks alright, no issues or comments regarding that from my side. However it is really difficult for us to troubleshoot when we don’t have the ActiveX control available and even though we had access to the control it would still be quite tricky to find the cause of the problems you are experiencing since we don’t have the hardware and so on.
    I found one link only that mentioned wire conflicts when talking about COM objects and ActiveX and you can find it here:
    http://digital.ni.com/public.nsf/websearch/0CED780​C5D5EDCD5862569D9005AE1FA?OpenDocument
    Regards,
    Jimmie A.
    Applications Engineer, National Instruments
    Regards,
    Jimmie Adolph
    Systems Engineer Manager, National Instruments Northern Region
    Bring Me The Horizon - Sempiternal

  • How to detect baby crying using labview and webcam?

    Hi, I am new to labVIEW. I have a project that it requires me to develope a application to detect various types of  baby crying using labVIEW.The hardware we use will be webcam or kinect xbox 360. The system for my computer is windows 7. I used to try to create a threshold frequency to detect baby crying,but it not work well. So  I want to ask what else method should I use to develop this application that can differentiate baby crying with other kind of sound( like normal talk, music...) correctly? As I just start learning labVIEW, hope the method to be easy to understand. Thanks.

    This is not really a LabVIEW question, but a signal processing question. Do you have a set of crying sounds in order to be able to calibrate whatever algorthm you are trying to implement?
    LabVIEW Champion . Do more with less code and in less time .

  • Labview command-line interface

    Hi,
    I have another simple Labview question.   I am trying to determine if Labview is suitable for my purposes.  I have no data acquisiton needs and Labview was suggested to me as a language for GUI development.  I am going to start learning Labview to give it a fair shake for GUI development, because I have some experience in C# and Java.  However, the graphical programming aspect of Labview might be advantageous.  My question is Can Labview be used to develop a command-line application?
    Thanks for your help,
    Will

    OK, so you just need a command-line version of the application you already have? LabVIEW has an application method that allows you to get the command-line arguments passed into a LabVIEW app:
    This will allow you to call a LabVIEW app from the command line and pass in some arguments. The LabVIEW app doesn't need to display a GUI.
    Note that when I say "LabVIEW app" I mean code that you've compiled into an application that you run with the LabVIEW Runtime Engine. I'm not referring to the LabVIEW application itself.
    Message Edited by smercurio_fc on 03-06-2008 12:28 PM
    Attachments:
    Example_VI_BD.png ‏1 KB

  • Why does LabVIEW allow me to have 2 controls with same name

    Here's a general LabVIEW question:
    Why does LabVIEW allow me to have 2 controls with the same name in the same VI?  It seems like this only increases the chances of confusion.  Especially when someone is just looking at a block diagram (or documentation of a block diagram).
    No other programming language that I know of allows this.  I realize that uniqueness of name is not as critical in LabVIEW as it is in any text based language.  For example, in a text based language, if I had 2 variables called abc and I wrote a statement
    abc = 12;
    the compiler would not know which abc was being referred to.  In LabVIEW, if we had 2 controls called abc, the equivalent of doing an abc=12 is writing to a local variable (which is always linked to one of the controls) and there is no ambiguity.  Still, someone looking at the code cannot figure out which abc is linked to unless he does a right click>>Find>>terminal (or a double click).
    Even though I have never and never will name 2 controls the same, I think it would be a nice constraint to see enforced by LabVIEW.
    Any input from NI engineers on this?
    Message Edited by S G on 12-18-2007 03:38 PM
    S G
    Certified LabVIEW Architect, Certified TestStand Developer, Certified Professional Instructor
    Attachments:
    Trial1.JPG ‏21 KB

    I know when you copy and paste a control or indicator, LabVIEW automatically increments the label. But since you can hide the label, and show or hide the caption, there must be another mechanism that LabVIEW uses to keep track of all the controls. I thought I remember back in the "old days" (ver 6 or 6i) LabVIEW would give you an error if you tried to make two controls with the same name. Perhaps that was LabWindows/CVI.
    I don't know where the index is actually stored, but if you look at a property node linked to the Pane, you will see an array of references to the controls and indicators. Since the references are stored in an array, I assume that any local variables are tied to the index of that array. Since the labels themselves are properties of the control, I guess there's no reason to limit what that label is. They all have a unique index number.
    Interestingly, this array of references grows from the beginning. That is, any new control or indicator is put at index 0, not the end of the array.
    B-)
    Message Edited by LabViewGuruWannabe on 12-18-2007 08:45 PM
    Attachments:
    Labels.png ‏12 KB

  • Is possible connect micrologix 1100 to Labview without the license of Rslinx?

    I dont know if this problem can solve here or in the AB forums but i will try here...
    I need  connect the MicroLogix 1100 to labview to read some PLC registers, I have all the licenses for  Labview (DSC, ni opc server..etc) but I haven't  license of AllenBradley,it is supposed that i need  rslinx classic to connect the plc but only  i have rslinx lite, then; the use of OPC is restricted to my
    There is another possibility to connect them? Help me please
    PD. Excuse me my english isn't my native Lenguage... 

    markayp wrote:
    I dont know if this problem can solve here or in the AB forums but i will try here...
    I need  connect the MicroLogix 1100 to labview to read some PLC registers, I have all the licenses for  Labview (DSC, ni opc server..etc) but I haven't  license of AllenBradley,it is supposed that i need  rslinx classic to connect the plc but only  i have rslinx lite, then; the use of OPC is restricted to my
    There is another possibility to connect them? Help me please
    PD. Excuse me my english isn't my native Lenguage... 
    How is this a LabVIEW question?
    Talk to Allen-Bradley since they apparently own the rights to the Rslinx software.

  • Zebra serial question

    While this isn't strictly a LabVIEW question I'll post it in the hopes that some of you have experience. I am trying to talk to a Zebra TLP3842 via a usb-serial adapter. I have successfully communicated with the printer through its own usb port, using the simple report vi's, but it seems very limited in what I can do that way, for instance sending a Zebra command string ends up just being printed as the string I sent, rather than sending it "raw". So, seeing some recommendations on here I got as usb-serial adapter. Unfortunately I seem to be missing something. When a send an example, copied from the programming manual, to the printer, all I get is a feed to the next label, ejecting the label without any printing. I know that the printer will print, both from the previous test with the USB connection and also from the self dump mode, but all I get through the USB-Serial path is a blank label.
    The string, copied right from the ELP2 manual:
    A50,150,0,4,1,1,N,"Example 4" <newline>    (the character for <newline> doesn't copy)
    P1 <newline>
    I've used both the simple serial example from the LabVIEW examples and have sent the string directly, via the VISA test panel in MAX. I did a loop back of my serial adapter to make sure it was sending. Both ends, computer and printer, are set to the same serial settings.
    LabVIEW 2009
    Thanks in advance
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

    First this may seem like a silly question but have you verified that the printer you have uses EPL. That model printer comes in two flavors. One uses EPL for label formatting and the other uses ZPL. If it is an EPL printer as mentioned earlier all commands MUST be terminated with a carriage return ('\r') follwed by a line feed ('\n').
    Try sending "UQ\r\n" to the printer. If it is an EPL printer it should return configuration data about the printer inclduing the model number and firmware version. If this fails then try sending "~hi" to the printer. If you get a reply to this it is a ZPL based printer.
    You can download both the EPL and ZPL manuals at www.zebra.com.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How to recognize certain word or voice (like cry) using labview and kinect?

    By using labview and kinect, how to recognize some sample world like 'ok', 'help', and voice like crying and screaming?

    This is not really a LabVIEW question, but a signal processing question. Do you have a set of crying sounds in order to be able to calibrate whatever algorthm you are trying to implement?
    LabVIEW Champion . Do more with less code and in less time .

  • GPRS networking : Noob question

    I am making a wireless remote data acqusition vi. This is not exactly a labview question, but I do know that quite a few labview guys have done wireless remote data acqusition, and like me are from engineering and non IT background, so you guys will understand my noob conceptual problem. Any experience shared will have kudos.
    1. If my understanding correct for my gprs network? 
    I got the below ordinary USB wireless modem people normally use for internet browsing. 
    I plug the usb wireless modem to my laptop. I go to whatismyip.com, it shows the IP address 220.255.7.139. I type ipconfig, it shows the IP address is 119.234.164.229! So why is the two Ip address shown is different? I as a noob thinks that whatismyip.com is showing the gateway address of my usb modem gprs network visible to the internet. And ipconfig is showing the ip address of my usb modem inside the GPRS APN but not visible to internet. Is my understanding correct at this point?
    2.  I then unplug and plug the usb modem, check the ipconfig, and repeat. I notice each time the Ip address shown in ipconfig is different. This shows that the modem ip inside the GPRS APN is a dynamic IP, not a static IP. Is my understanding correct for point 2?
    3. I unplug and plug the usb modem, and check whatismyip.com. I notice the each time ip address shown in whatismyip.com is different. This shows that my usb modem gateway is appearing as a dynamic IP address in the internet, not a staic IP as one noob would intuitively think. Is my understanding correct for point 3?
    4.  So below is my overall understanding of my usb modem core GPRS network architecture. Is my conceptual understanding correct?
     5. So now I have a Sierra Wirelessmodem RavenXT, which manual claims that my PC vi can find the  RavenXT inside the GPRS APN with the help of DDNS (dyndns.com) without the need for static IP.  Well from my understanding, DDNS would only work if the RavenXT has static IP inside the APN.  If the RavenXT has dynamic IP inside the APN , from my understanding above, the DDNS cannot find the dynamic IP in the GPRS APN, because dyndns.com is in the internet world, there is no DDNS in the GPRS APN. So the DDNS concept generally would not work if the office PC is to find a remote modem wirelessly and the IP addresses inside the GPRS APN are dynamic. 
    But however DDNS for Sierra Wireless Raven XT  is used extenstively in USA. So I estimate that USA's GPRS APNs generally assign static IP inside its private network, unlike the GPRS networks my country. Is my understanding correct? What is your experience of this?
    Message Edited by sunflower2772 on 02-05-2010 03:10 AM

    I'm no expert on these matters but I'm fairly certain that for 1 to 4 you have concluded correctly.
    Not having dealt with DynDNSso far I'm not sure about the last point. DynDNS as far as I understand it, only is a simply service to register your dynamic public IP adress under a fixed DNS name, so you can refer to your dynamic IP system from the world wide web by a static DNS name. As such I'm not sure why the dynamic internal IP address should be even an issue.
    Modems supporting DynDNS simply will on the assignment of a new external IP address forward that address to the DynDNS service as new address to the configured DynDNS name. If a modem doesn't support that out of the box I'm pretty sure DynDNS supports a protocol interface where you could write a small LabVIEW VI to register a new IP address for an existing DynDNS name. Maybe it doesn't even require your VI to know the currently used external IP address as it could easily see that from the originating address of the connection.
    The modem itself will simply forward any incoming connection to your computer, independant of its dynamic internal IP address, provided your network rules in the modem are configured for that correctly.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Using Global Mapper SDK with LabVIEW

    I am actually new to using any SDK with LabVIEW.The basic idea behind the whole thing is to plot lat and long coordinates into global mapper cutomized app through Labview.I mean I am acquiring data in labview, but i want to display the coordinates in global mapper.For that what I have to do.I don,t have much idea abt MFC too.
    Solved!
    Go to Solution.

    Hello sets,
    I found some resources on the Global Mapper site that you may find helpful. They seemed to have the same questions as you, and an employee helped answer some questions.
    Global Mapper SDK for LabVIEW Software: http://www.globalmapperforum.com/forums/technical-support/8917-global-mapper-sdk-labview-software.ht...
    Global Mapper and LabVIEW: http://www.globalmapperforum.com/forums/sdk/9116-global-mapper-labview.html
    Are you using LabVIEW, LabWindows/CVI, or Measurement Studio? This is a Measurement Studio board, but if you have LabVIEW questions, I suggest posting to the LabVIEW board. (http://forums.ni.com/t5/LabVIEW/bd-p/170)
    Regards,
    Jason D
    Applications Engineer
    National Instruments

Maybe you are looking for