09-10-2015 02:49 PM
Hello,
Newbie here looking for some advice on how to configure an array then grab some data to display. I have tried a couple things but it I can't get it to behave how I want it...
these are where the values are spit out of my loop the controls the equipment.// that write to text file doesn't work either 😕
IN the end I would like to display somethiong close to this
09-11-2015 08:59 AM
Hi Justin_t.
I'm not sure that I quite understand your question, but I do have one article that might help you out. I have attached an example of how to Write to a Spreadsheet in LabVIEW.
https://decibel.ni.com/content/docs/DOC-36448
Good Luck!
Casey L.
Application Engineer
09-11-2015 09:57 AM
1) To analyze array, make the array - autoindexed tunnel on the output of the loop (or build array with shift registers, bad practise though).
You can stream to text (spreadsheet) file or write entire array after you are done. Help-> Find examples.
2) Array Max&Min - it gives value and index,
3) max&min (absolute(array-(max-3))) - location of the element, with value closest to the maximum-3
4) all arrays (A,B,Gain, etc) should have the same size. max&min (Gain) gives index. Index array picks element from array at index
>> IN the end I would like to display somethiong close to this
Format array to array of strings (Number to fractional string), show in table, Property node -> Active Cell, Cell background can highlight cells. Arrows, pointing to elements - possible, but will require some work. Much easier will be to make a button "Locate max" and scroll table (property node -> Index values).
PS bold are labview functions from palettes.
09-11-2015 10:17 AM
Are you trying to have your output be an Excel (.xls, .xlsx) file, complete with a Graph? If so, you cannot use the simple "Write to Spreadsheet File", which really writes a Tab-delimited Text File (that you can make a Comma-separated Variables, or .csv, file that Excel can read). My recommendation (if you want to use Excel) is to use the Report Generation Toolkit.
Bob Schor