sjukheter Posted March 3, 2011 Report Share Posted March 3, 2011 hi, i am using basic serial read write for communicating with my device and i created some numeric indicators for displaying the values. I want to write to a value from indicator to serial port but indicators can only display the result. How i can do both write and read things from indicators. Please some one help me. Quote Link to comment
Christian_L Posted March 3, 2011 Report Share Posted March 3, 2011 hi, i am using basic serial read write for communicating with my device and i created some numeric indicators for displaying the values. I want to write to a value from indicator to serial port but indicators can only display the result. How i can do both write and read things from indicators. Please some one help me. Use a Local Variable in LabVIEW to write to an indicator. In general use Local Variables sparingly and only when absolutely necessary as they make the program difficult to maintain and may introduce race conditions. Excessive use of local and global variables is considered a bad programming practice. Quote Link to comment
sjukheter Posted March 3, 2011 Author Report Share Posted March 3, 2011 (edited) Use a Local Variable in LabVIEW to write to an indicator. In general use Local Variables sparingly and only when absolutely necessary as they make the program difficult to maintain and may introduce race conditions. Excessive use of local and global variables is considered a bad programming practice. I know how to create local variables but i am very new to labview and i don't know exactly how to make this operation. In my code i just have 8 numeric indicators under tabcontrol. first i will send command from write visa to port which will get a value and displayed in indicator but at the same time I want to provide user to enter his own value and sent it to port with respective command. Can any one give example for one of my indicator then i will come to know, how i can goahead. using lv8.5. Thank you. newvi.vi Edited March 3, 2011 by sjukheter Quote Link to comment
skilledengineer Posted March 4, 2011 Report Share Posted March 4, 2011 (edited) I do not have LV 8.5. But based on your requirements, I think this VI (LV 7.1) will work. -George Edited March 4, 2011 by skilledengineer 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.