JMak Posted July 21, 2011 Report Share Posted July 21, 2011 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? http://forums.ni.com/attachments/ni/170/183817/1/Increment.jpg%22 When I delete a row of data, I will need to subtract from the array index number while keeping the data number incremented. Thanks, James Quote Link to comment
asbo Posted July 21, 2011 Report Share Posted July 21, 2011 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. Quote Link to comment
Norm Kirchner Posted July 25, 2011 Report Share Posted July 25, 2011 Although I'm fairly certain this is homework, sometimes the best way to learn is to see. So learn away Increment Example.vi It's not all you were asking for, but will give you an idea of how you need to be thinking ~,~ Norm Kirchner Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.