Author Topic: Assigning numbers to the signal  (Read 3506 times)

MimmoA

  • Guest
Assigning numbers to the signal
« on: January 28, 2014, 10:54:48 AM »
Hello to all,
i have this problem:
I have two position signals and I would like to assign a number to each of them to be able to distinguere.Ho tried to connect the block'' Value'' but when I go to acquire the associated number remains in memory the last number of the previous block. Anyone have any suggestions?
Thanks in advance

Offline oiltronic

  • PLUS+1 Guru
  • *****
  • Posts: 170
  • Karma: +15/-0
Re: Assigning numbers to the signal
« Reply #1 on: February 03, 2014, 06:15:25 PM »
I'm not clear on what you are trying to do, but it sounds like you might not be using the Value component correctly.  The Value component is best understood as a "sample and hold" device that passes through a signal when the control input is TRUE, then will hold (memorize/freeze, etc) the output when the control input goes FALSE.

It sounds like you want to either use a switch (binary or selected with a number) or maybe put the values into an array.