LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to not use formating on a Spreadsheet String to Array function?

Solved!
Go to solution

Hi,

I am trying to convert a csv string containing a cluster into an array of strings as part of a profile definition for temperature/humidity chambers. I don't want to apply any formatting to the output array because the values aren't the same type. Can I just use a blank string to wire the formatting terminal? I attached the VI. I've also seen some wiz-bang csv writing/reading stuff, but this is a school project so I can't use the code.

 

Thanks,

Simon

 

 

0 Kudos
Message 1 of 4
(2,763 Views)
Solution
Accepted by SimonGoodson

Just use %s as your format string.

 

Don't use Array to cluster and then unbundle cluster.  That is a hack, a Rube Goldberg.  Just use Index Array.  That is resizable downwards so you can get the successive indices.

0 Kudos
Message 2 of 4
(2,760 Views)

Thanks!

0 Kudos
Message 3 of 4
(2,743 Views)

A few more comments:

 

 

  • Since "open" and "save" are never true at the same time, use a single case structure with three cases (save, open, idle). Create a boolean array from all your buttons and convert to a numeric for a unique selector value for each combination.
  • Your toplevel while loop needs a small wait. Currently your program uses 100% CPU while not doing anything except spinning the empty loop as fast as it possibly can (see also). Ideally use an event structure, because nothing needs to happen unless one of the buttons is pressed.
  • If you would use latch action booleans, you would not need to reset them back to false with a local variable.

 

0 Kudos
Message 4 of 4
(2,727 Views)