09-21-2010 09:56 AM
Hello,
is there a more comfort possibility to enter a lot of values in an array constant in the block diagram? I want to built a constant with several hundred values without typing them in. For example with cut and paste?
Thanks,
Christian
Solved! Go to Solution.
09-21-2010 10:06 AM
It would really depend on what kind of dataq you are trying to generate. If you can tell us what you are trying to do with your data then we can make better suggestions.
Basiclly you would use a for loop and generate you data that way. See the example below:
This example will generate 500 points of random data between 0 and 1.
09-21-2010 10:34 AM
If you can read the data from a file or database, you can simply load the data and output to an indicator.
Select the indicator on the block diagram, right click and select "Change to constant".
09-21-2010 10:41 AM
This is one of my most-used Quick Drop shortcuts. You can copy data to the clipboard and create an array in LabVIEW.
http://forums.ni.com/t5/LabVIEW/QD-Shortcut-Paste-to-Array-Constant/m-p/1088366#M481582
Before this, lots of throwaway VIs were written to read files. You can now export to the clipboard, LV needs to close the loop and let you import as well.
09-22-2010 09:53 AM