LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

memory is full error on notifier

Post all of your code. Right now you're showing us a picture of your steering wheel and asking us why your car pulls to the left.

 

You didn't do anything "wrong" when making that notifier... but it's just a couple of functions. Outside of context it's unfortunately meaningless for helping us to help you.

0 Kudos
Message 11 of 23
(1,063 Views)

actually i uploaded a picture in my last message i dont know why it didnt sent

now i attached a picture of my code.

this is how i want to communicate with another vi .

I will try your example 

Thank you very much

0 Kudos
Message 12 of 23
(1,063 Views)

Still not enough of your code to be of any help. 

0 Kudos
Message 13 of 23
(1,060 Views)

Now you gave us a picture of the outside of your car and are asking why it pulls to the left. Upload your *code* not a *picture of code* and we can actually see what's happening.

 

Upload the thing that ends in .vi, not .png.

0 Kudos
Message 14 of 23
(1,052 Views)

Judging from the dialog so far, I believe your experience with notifiers to be limited to none.  Are you even sure you should be using a notifier?  Are you okay with possibly dropping data if you don't service the notifier before new data arrives?

 

If you need ALL the data, use a queue.  If you don't care about potentially missing data (e.g., for display purposes only) use a notifier.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 15 of 23
(1,043 Views)

@ehsan75 wrote:

this is how i want to communicate with another vi .


Then what is that VI?  Context is EXTREMELY important here.  I question your need for a Notifier.  You might need a simple Global Variable or you might need a Queue.  But I cannot state which way to go without more context.

 

At the very least, using the code in your image, you need to obtain your Notifier reference before your loop and you need to release the Notifier after your loop.


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
0 Kudos
Message 16 of 23
(1,039 Views)

hi 

first i appreciate you and others for answering my problems.

and you were right. so i uploaded the vi files.

here what i want to do:

i want receive data from serial port then separate them then transfer each separated data to another vi and  process it.my data is continuous like temperature and it must transfer every second.

This file is what i did. if you have better idea to do this please tell me. it doesn't matter how. and i'll be appreciate if you upload to me a vi source.

Thank you 

 

 

Download All
0 Kudos
Message 17 of 23
(1,005 Views)

Three are no toplevel loops in any of your VIs. Are you using the "continuous run" function? That's not the right way.

 

0 Kudos
Message 18 of 23
(998 Views)

@ehsan75 wrote:

i want receive data from serial port then separate them then transfer each separated data to another vi and  process it.my data is continuous like temperature and it must transfer every second.


Sounds more like you should be using a Producer/Consumer, which uses Queues so you can process all of the data.  And if you are worried about timing at all, I would leave the serial communications in its own loop.  Use a consumer loop to process the data and send it where it is needed.

 

The number you are writing through the serial port should probably be a simple Global Variable.

 

But, as altenbach was trying to get to, I am seeing a complete lack or organization in your code.  Maybe a diagram showing the different modules/loops you want and how they should interact would help here.  Design before you code.


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 19 of 23
(982 Views)

i tried producer/consumer as the link you said. it didn't send data to my other vi do you have any example on .vi?

0 Kudos
Message 20 of 23
(956 Views)