10-28-2014 04:06 AM
Hello
my program produce some number(like picture). I used matrix to save numbers. I have 2 qustion:
1- Can I use another way to save them instead of matrix?
2- when save each number, last number be clear! and, at the end of progran, I have just one of 24 numbers and others be zero. what is the problem? can u help me?
tnx
Best Regards.
Solved! Go to Solution.
10-28-2014 04:10 AM
Can you please show us the code instead of letting us guess what you might be doing? (Please attach the code in 2011 version)
10-28-2014 04:28 AM
of course, I forgot to attach picture.
10-28-2014 04:33 AM - edited 10-28-2014 04:33 AM
Hi behzad,
why do you use a matrix instead of a 2D array?
THINK DATAFLOW!
What result do you expect, when you replace a value in an empty matrix?
Where do you store values from previous iterations?
Did you do all those free online courses offered by NI? Did you learn the basics of DATAFLOW? Did you learn how to keep values from one iteration of a loop to the next?
You're around here for quite some time and it seems you did not learn the basics until now…
10-28-2014 05:02 AM
Hi GerdW, how r u?
I used of 2D array but I couldnt add number in each itteration. actually, my number(random number in this example) cant match with 2D array block. cent be wired. by the way, I want use that array in next part of my program. can we read from 2D array in write mode?
What result do you expect, when you replace a value in an empty matrix?
Where do you store values from previous iterations?
I add a number to matrix, do u mean isnt true? my new number dosnt write in a new place?
Did you do all those free online courses offered by NI? Did you learn the basics of DATAFLOW? Did you learn how to keep values from one iteration of a loop to the next?
You're around here for quite some time and it seems you did not learn the basics until now…
No, I couldnt find that. I read 600 pages of some pdf and around 100 pages of this forum untile now. but that was unsuitble for my questions often. I didnt know there something like dataflow! is not forum for new man? and basic questions?
now, can u show me, how can I do this?
Best Regards
10-28-2014 05:16 AM
Reading materials wouldn't help unless you try it practically.
Check the attached snippet with Replace Array elements.
10-28-2014 05:19 AM - edited 10-28-2014 05:28 AM
Hi behzad,
DATAFLOW is explained in the LabVIEW help!
is not forum for new man? and basic questions?
Yes, forum is meant to ask questions. Even basic ones. But when it comes to learn the very basics of a programming languages you should use all tutorials offered for FREE!
how r u?
I appreciate this topic…
I add a number to matrix, do u mean isnt true? my new number dosnt write in a new place?
You don't add, you replace an element. Atleast the function used is named "SetMatrixElement", which resembles ReplaceArrayElement… Did you read the context help of that function?
Additionally you don't store any values for the next iteration of your loop!
10-28-2014 05:23 AM
You cannot expect that the people here in the forum will/can help you if you do not do at least some effort toward learning the very basics of LabView.
If you cannot do the described task in LabView, you miss the very basic programming principles in LabView. Or are you a student and this is a homework...?
So instead of reading hundreds of pages (why???), start to learn LabView using the free online courses, start with Core 1.
If you have a valid LabView licence (either student or normal), you can have access to the self paced learning site:
http://www.ni.com/self-paced-training/
10-28-2014 06:43 AM
Just because everybody keeps mentioning the free online training...
3 Hour Introduction
6 Hour Introduction
LabVEW Basics
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Learning NI
Getting Started with NI Products
10-28-2014 06:48 AM
I have this problem in writing to Excell too. when I write a row of number in excel file, previous infomation be clear. while I want make a database in Excel. is these similar problem?