Jump to content

Incremental count on button press


Recommended Posts

Hi everyone, I have a problem I can't solve. I have a program where I am writing values to a table, and automatically generating the names for each row of data. I want to generate a new row of data each time I press the "add data" button, and the row number will be generated by an incremental variable that keeps track of how many times the switch has been pressed. I will also use the variable to index the array.

My problem is, I can't find a way to make numeric variables in labview. I found this, and it looks like what I want to do, but I cannot make the double variable type. I can only make constants, numeric indicators and controls. Does anyone know how to make one, and where to find it in the palete?


When I delete a row of data, I will need to subtract from the array index number while keeping the data number incremented.



Link to comment

Variables are not quite the same concept in LabVIEW as they are in other languages. Read up on the concept of data flow. There's boatloads of other helpful information on that wiki as well.

You should post what you have so far in your VI (just attach it to your post) and we'll give you some feedback.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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