04-07-2020 06:30 AM
Hi i'm just new to Labview and was hoping for some guidance, my project is basically as follows:
Any help is appreciated thanks
04-07-2020 06:36 AM
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…
04-07-2020 09:36 AM
Do you want somebody to do your homework for you?
If so, you've come to the wrong place.
04-07-2020 09:55 AM
@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
04-07-2020 10:09 AM
Thanks for the Help Paul.
04-07-2020 10:18 AM
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,
04-07-2020 10:32 AM
@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
04-07-2020 10:53 AM
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!
04-07-2020 02:32 PM
@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.