Jump to content

Zer0

Members
  • Posts

    3
  • Joined

  • Last visited

About Zer0

  • Birthday 05/17/1988

Profile Information

  • Gender
    Male
  • Location
    Poland

LabVIEW Information

  • Version
    LabVIEW 2010
  • Since
    2010

Zer0's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks for all the tutorials and advices. Indeed the inner while loop was unnecessary. I've done the code like in the pic below and it works fine for me
  2. Thank you for your quick reply My previos code looks like this: And this one works as I desrcibed - it memorizes only the last index and value. Every previos input is nullified. Even if I rewire some connctions to fit your advice, my code still doesn't work:
  3. Hello everyone, I'm new to your community, so firstly I'd like to say hello to everyone I guess the topic was repeated several times and I have read many examples, but most of them were concentrated on auto fill of array with random values. I however need to set values into array manually, memorize them, and if possible to go back and make changes in case of a mistake. These values are given from Tasti WB630 keyboard and determine line feed for each of electrical linear drive. In my vision UP / DOWN keys set index number which corresponds to a subsequent piston, LEFT / RIGHT keys set value of feed for currently indexed piston. After setting a correct value for desired piston I hit OK and the value is stored into array. But here my vision ends, because LabVIEW somehow doesn't want to memorize all of the input data except the last one given index and value.The code for now works like this: Array: set + OK [0] 280 [1] 0 [2] 0 [3] 0 [4] 0 set + OK [0] 0 [1] 50 [2] 0 [3] 0 [4] 0 set + OK [0] 0 [1] 0 [2] 135 [3] 0 [4] 0 etc. I'd like to make it work like this: Array: set + OK [0] 280 [1] 0 [2] 0 [3] 0 [4] 0 set + OK [0] 280 [1] 50 [2] 0 [3] 0 [4] 0 set + OK [0] 280 [1] 50 [2] 135 [3] 0 [4] 0 etc. So, can anyone help me out? EDIT: I've added my source files with code needed for the emulation of Tasti keyboard and my work so far. Main VI: tasti_emul.vi, SubVI's: Tasti_LR.viTasti_OK2.viTasti_UD.vi
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.