LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why 24 input number, doesnt save?

Solved!
Go to solution

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.

 

 

0 Kudos
Message 1 of 10
(3,185 Views)

Can you please show us the code instead of letting us guess what you might be doing? (Please attach the code in 2011 version)

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 10
(3,176 Views)

of course, I forgot to attach picture.

 

 

0 Kudos
Message 3 of 10
(3,168 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 10
(3,160 Views)

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

0 Kudos
Message 5 of 10
(3,147 Views)
Solution
Accepted by topic author behzad1

Reading materials wouldn't help unless you try it practically. 

 

Check the attached snippet with Replace Array elements.

 

ReplaceElements.png

-----

The best solution is the one you find it by yourself
Message 6 of 10
(3,138 Views)

Hi behzad,

 

online training starts here!

 

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 10
(3,135 Views)

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/

 

0 Kudos
Message 8 of 10
(3,131 Views)

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


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 9 of 10
(3,097 Views)

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?

0 Kudos
Message 10 of 10
(3,093 Views)