LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read Data from csv. and iterate over array entries

Hello,

 

In my programme, I want to excite with a different amplitude for each frequency. For this I would like to use a csv. file. The values in it are the individual amplitudes that are to be used one after the other.
I have a csv. file containing the individual Amplitudes. Here is a screenshot of my block diagram and my csv is attached.

jonas5647_1-1678961647729.png

 

Numbers 1,2,3,4..... come from the blue wire. These are to call the individual entries from the array. It works for the first one and then no longer. What can I change to solve my problem?


Greetings Jonas

0 Kudos
Message 1 of 2
(503 Views)

The "experienced users on the Forum" often dislike "pictures of LabVIEW code", particularly those that show only a small "piece of the puzzle", largely because we cannot "interact" with it (or, sometimes, even see it clearly).  We certainly can't "edit" it to straighten the wires and make them run left-to-right so we can understand the data flow they represent, to say nothing of being able to execute the code and see how/if it actually runs.

 

Several questions (without looking at your "picture", which really is a mess ...)

  • Do you know how to read a CSV file in LabVIEW?
  • Do you know how to (correctly) interpret and parse the results of this read?
  • Do you know (in LabVIEW) the structure to "iterate over array entries"?

If the answer to any of these is "No, I don't know about that", then there are numerous "Learning" tools, including on the first page of this Forum, that can get you started.  When you come back, attach your LabVIEW code (all of it is best -- if you are using a LabVIEW Project file, .lvproj, you should compress the folder containing the Project file and its associated VIs and attach the resulting .zip file).  Should you be running the "latest" version of LabVIEW, be aware that many of the "experts" are probably not running LabVIEW 2022, so you should consider doing a "Save for Previous Version".

 

Bob Schor

Message 2 of 2
(489 Views)