LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Operator Checkoff Program

Hi i'm just new to Labview and was hoping for some guidance, my project is basically as follows:

 

  1. Operator enters Order number and quantity of units required (e.g. xx Order number / x units)  
  2. A screen appears with graphical representation of the x units  
  3. As operator completes each unit they click unit 1, unit 2 etc., and as they do the graphic turns green  
  4. Order number and unit number get saved to a text file
  5. When Final unit is complete, a pop up tells operator order is completed
  6. Excel sheet is filled out with timestamps and details

Any help is appreciated thanks

0 Kudos
Message 1 of 9
(2,880 Views)

Hi Padraig,

 


@Pádraig wrote:

Hi i'm just new to Labview and was hoping for some guidance


Did you notice those "Training resources" offered in the header of the LabVIEW board?

 


@Pádraig wrote:

my project is basically as follows


You have several steps written down: these are basically the states of a staemachine. LabVIEW comes with a huge library of example VIs and example projects, one of them being a statemachine example project…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(2,870 Views)

Do you want somebody to do your homework for you?

If so, you've come to the wrong place.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 3 of 9
(2,826 Views)

@Pádraig wrote:

    6.  Excel sheet is filled out with timestamps and details


"Excel sheet" (in LabVIEW) can mean two things.  One is a true "Excel Workbook", a file with the extension .xlsx.  Creating this requires either the Report Generation Toolkit (an "add-on" that has a separate license and purchase cost) or the use of third-party additions, and generally requires "extra expertise" in LabVIEW.

 

The other is what LabVIEW calls a "Delimited Spreadsheet", a plain text file that has lines of text representing rows of a Spreadsheet, with entries in each line separated by a "delimiter".  The default "delimiiter" in LabVIEW is a <tab> character -- if you choose to replace the <tab> by a <comma>, you get a file format known as "Comma-Separated Value", or a ".csv" file, which Microsoft "unhelpfully" identifies with an Icon that suggests that it is an Excel file.  Delimited spreadsheets are fairly easy to write and read -- use the Delimited Spreadsheet functions in the File I/O Palette, and if you don't know how to do this, look at the LabVIEW Help and Examples.

 

Bob Schor

0 Kudos
Message 4 of 9
(2,820 Views)

Thanks for the Help Paul.

0 Kudos
Message 5 of 9
(2,809 Views)

Cheers for the other replies, I didn't know about the examples (my 2nd day of learning). From reading through the forums I think the biggest challenge will be incorporating a dynamic front panel. From all my searches I wasn't able to find anything that would work, does anyone know if you can generate X amount of Boolean functions?

 

Example: I enter quantity number 3, I would like 3 Leds/Button to show up. Then if the next time round I put in Quantity 50, it would have 50. Is there anything that works like this? 

 

Thanks, 

0 Kudos
Message 6 of 9
(2,806 Views)

@Pádraig wrote:

From all my searches I wasn't able to find anything that would work, does anyone know if you can generate X amount of Boolean functions?

 

Example: I enter quantity number 3, I would like 3 Leds/Button to show up. Then if the next time round I put in Quantity 50, it would have 50. Is there anything that works like this? 

 


I think you are asking "How do I create an Array of Boolean Controls" (or Boolean Indicators -- do you understand the distinction between a Control and an Indicator?).

Go to the Front Panel.  Put down a Boolean Control (or Indicator).  Right-click and choose "Change to Array".  Done.

 

Note if you are using a pretty old Version of LabVIEW (like LabVIEW 7), you might not have "Change to Array".  In this case, you go to the "Containers" Palette (I'm not 100% certain of the name on your system), choose Array, and put it on the Front Panel.  Now drag your Boolean (or anything else you want to make into an Array) into it.  Done.

 

Bob Schor

0 Kudos
Message 7 of 9
(2,803 Views)

Hi Pradaig,

 


@Pádraig wrote:

Example: I enter quantity number 3, I would like 3 Leds/Button to show up. Then if the next time round I put in Quantity 50, it would have 50. Is there anything that works like this?


When usability allows I would use a (MultiColumn)Listbox for this job: the user can also select single lines in the list and you can change the backgroundcolor of the whole line to whatever you want…

 

When usability is a concern (like needing big buttons for touchpanels) I would use an array of clusters to allow easier labels for each entry/element in the list/array!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 9
(2,800 Views)

@Pádraig wrote:

Cheers for the other replies, I didn't know about the examples (my 2nd day of learning). From reading through the forums I think the biggest challenge will be incorporating a dynamic front panel. From all my searches I wasn't able to find anything that would work, does anyone know if you can generate X amount of Boolean functions?

 

Example: I enter quantity number 3, I would like 3 Leds/Button to show up. Then if the next time round I put in Quantity 50, it would have 50. Is there anything that works like this? 

 

Thanks, 


Use an array of booleans.  A property node for the array will let you set the number of rows or columns.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 9 of 9
(2,775 Views)