Jump to content

pockey

Members
  • Posts

    47
  • Joined

  • Last visited

    Never

Everything posted by pockey

  1. Thank you, martin I'll try to find information about the "property node"... And I'll try to see whether there's such courses here.
  2. Thanks tcplomp However, I just need to make the configuration the first time, if I stop the program and restart it, I have to press the "Start" button first...Actually, I did not need to since the configuration is still there...And I'll forget to press the "Start' button... Is there a way to disable other parts on the front panel first and enable them again after user press "Start" button? Besides, if the destination PC has been installed LabVIEW RunTime 8.20, could it run the executable file? Or should I create the installer for proper use?? And, when I build the exe file, in Source File Settings, the "Window is maximized" is selected under "Use VI Setting", however, when I open the built exe file, it did not show in maximize size... I need to maximize it...Could anyone tell me why?
  3. Hi, I need to build an executable instance of my VI which is quite simple with only a single .VI file. I have to add that VI to the startup VI as required. However, since I need to make some configuration first to run the VI, I have to first stop the executable VI as it runs automatically; and then run it again after making corresponding configuration. It is troublesome. Is there any way to disable the automatically running funtion? Thanks!
  4. Thanks a lot, ashishuttarwar ! I've got the result by ned's method, and you show me another approach. I'll try to think with LabVIEW!
  5. Thanks, ned! Since I'm just using LabVIEW, I still did not know "Ring/Enumeration" before... I'll try your suggestion and try to think differently (I'm used to think with C# and Visual Studio...)
  6. Thanks a lot, ashishuttarwar! Your example shows me the usage of Toggle Switch However, for "Combo box", the command sent is the same as the value, I hope to send "r 0x24ad" for "2403.33 MHz", how could I assign different commands to different values of a "Combo box". In C#, it's quite easy to use a event handler and with { if(combobox.text=="2403.33 MHz") comport.write("r 0x24ad");}... It's difficult to get the same result with LabVIEW, at least for me at this stage. Is there any Compare or Match function in LabVIEW to compare the current select of a Combo box?
  7. Thanks, Tcplomp! Is it the same with "Combobox"? I could set the label according to different index?
  8. Hi, everyone I am writing a LabVIEW program to test a board through COM Port, User should send commands to the board and the corresponding response should be displayed on the String indicator on the Front panel. By now, I only know the way of using buttons to send commands, I use a "Build Array" and "Search 1D Array" to assign each button a number and do the corresponding operation in the case structure... However, to be more user-friendly, I need to replace some of the buttons with ComboBox and Toggle Switch, since these controls are different from buttons, I did not know how to implement them... I tried to use a Toggle switch, for each "on" or "off" state, different commands should be sent to the board. I hope command sent to the board once when user click the switch. By default, I hope nothing would happen. It seems I should use a "event structure", however, I failed to do so ...My problem is how to make the Combox or Toggle Switch act as buttons and combined these cases with buttons without conflict. By now, all the "value1/value2/value3/on/off" are represented by a button... Could anyone give me some suggestion to replace the "2403.33 MHz/2442.24 MHz/2479.10 MHz" to a Combobox and "XCEN 0/XCEN 1" to a Toggle switch?? I think I need to know more about the properties of controls... Admin Note: Please read the following for information on how to post images on LAVA: How to Insert Images in your Posts, Making a good first impression Download File:post-6631-1169006264.vi
  9. Strange! I could read but not write with the cable... The driver of the cable is not recognised by Windows, and it causes blue screen sometimes.
  10. Well, it seems the problem is with the USB to RS232 cable. I tried another connector and there's no error now. Well, how to get rid of the error if I use that USB to RS232 cable since I know the error is with the cable not the program?
  11. Thanks tcplomp I've replaced the picture with a link. Actually, there's no problem with my browser, I could see the portal normally with the resized image.
  12. I'm developing a serial communication program with LabVIEW 8.20. There is a USB to RS232 cable connected to a testing board. As topic shows, when I write commands to the board, there will be error shown: Error -1073807298 occurred at VISA Write in ML2427Tester.vi Possible reason(s): VISA: (Hex 0xBFFF003E) Could not perform operation because of I/O error. The program could run OK after I click the "Continue" button. Anyone is aware of such error?? If the error is not so important, how could I ignore it for proper operation of my program? A picture of the block diagram could be seen here: ML2724Tester -- Error at VISA Write Thanks! Download File:post-6631-1168917470.vi
  13. Thanks a lot, karthik with your template, the problem seems clear to me. I'll try to figure other parts out!
  14. Hi, all I'm writing LabVIEW to test a board through COM Port. There're buttons on the front panel for user to send commands to the board. I could send one command at a time and display the response on a string indicator... However, I did not know how to send continuous commands one-by-one with just one button. For the "Reset" buttons, it will only send "x" to the COM Port, and the program runs OK. For the "RX_LOWBAND" button, it should send string "p rxon1", "p paen0", "p hp0", "r 0x0118" and "r 0x24ad" one-by-one to the board and get each corresponding response. I use a stacked sequence stracture to send these five commands one after one, however, the program could only implement the first one. Since I'm quite new to LabVIEW, I do not know whether there's some easy way to realize that... Could anyone give me some suggestion? Thanks a lot! Download File:post-6631-1168846857.vi
  15. Thanks for your idea! I've found the answer in NI forum: Make a property node for the string indicator, set to write, and set the property to "Scroll Position". Then just wire a very large number to it or get the length of your string (string length under string pallete), and wire that in. http://forums.ni.com/ni/board/message?boar...uireLogin=False More detailed information could be found from the above link! Here is my steps: Right click the String Indicator, choose "Create" -> Property->Text->Scroll Position, and then create a numerial constant with a very large number and connect to the property node created just now. That's OK!
  16. Hi, I use a shift register to show all the information in the String Indicator on front pane, however, I do not know how to make the string indicator scroll automatically when new information arrives. It's troublesome to press the vertical scrollbar to see the latest information. How to make the String Indicator act like a terminal? Someone says to set the cursor position, however, I do not know how to implement this. Anyone can help me?
  17. Thanks a lot, Robijn There are many concepts in your answer I need to get to know. I tried some buttons, however, the program can only now run once, and user has to press the button first and then click the "Run" button to send commands. When I add while loop, the string indicator could now show the message correctly... I'm looking for the method to append new message to the original one and show them all in the string indicator. I'll have a look at the register. For your suggestion, I'll try them one by one.
  18. Well, is there append function to show all the information instead of only showing the latest information? Since we can use the scrollbar to move up and down?
  19. Thanks a lot, robijn, for your long and detailed answers, it shows me the direction and ways to develop my programme. I know I could not learn a language in one day, however, I had to complete the convertion in one day this time~~~ :headbang: I'll try to learn to use the functions you mentioned here. Another question: what is the character for the "Enter" key? For example, to reset the connected board, user should send the string "x" with pressing "Enter" key. In HyperTerminal, after key-in "x", user has to press the "Enter" key to send the "x" to reset the board. For easy use, after user press the button, the string "x" together with the character representing "Enter" key should be sent. In C#, I use String s = "x" +'\r'; so '\r' stands for the "Enter" key action, I could not write String s = "x\r"; which won't work. So in LabVIEW, if I want to send string "x" together with the "Enter" key character, what should I do? And for the event of button, where could I find such information??
  20. It seems all the buttons in LabVIEW are boolean values... In C#, button has event which can be implemented to send command to the COM Port, how to get the same result with LabVIEW??? Is there any similar examples for RS232 communication?? Thanks a lot!
  21. Hello, all, I'm totally new to LabVIEW. I'm now going to convert a serial communication developed with C# to LabVIEW. However, I'm unfamiliar with LabVIEW at all and do not know how to convert the programme in a short time. The deadline is tomorrow and I did not have time to learn LabVIEW from the very beginning. There is too much information and I could not find what I need only for this project. I know that I should use VISA for the RS-232, however, I did not know how to make the program check the COM Port by itself, the default is COM1. But in my computer, the right one is COM3 or COM4...Is there such funtion to automatically check all avaiable and connected COM ports by itself?? In C#, user should first open the port, and then begin write to or read from the port. LabVIEW will immediately read fom the COM port, right?? When I open the port in C#, there will be a menu of commands from the connected board, the GUI is shown: I need to develop a LabVIEW front panel similar as above. Does LabVIEW have "textarea" which shows the message received from the COM Port? And "Group" to put "buttons" together? I can see there is a lot of controls and functions, however, to find the right one is time-consuming for me, could anyone tell me the name and location of the controls in LabVIEW corresponding to "buttons", "textarea", "group", "combobox"...in Visual Studio? And when I press the button, it will send a string to the COM Port, some buttons send more than one command, so there should be some delay between these commands, in C#, I use "Thread.sleep(100)" as the delay time...How to implement this in LabVIEW?? Thanks!
  22. Hello, everyone! I am a year-2 student of EIE(Electronic and Information Engineering) of Hong Kong PolyTechnic University. And my hometown is NanTong City in JiangSu Province. It's a small but nice city and is near ShangHai! So is there anyone interested in China? I am now taking one-year placement in Hong Kong Science Park. And my next project is to use LabVIEW to develop a software for testing. I am totally new to LabVIEW and has no ideas about VI. However, I'll try to get familiar with it as soon as possible. It is a nice place here. I am thankful to find it! Hope we can have a good time together! Fighting!
×
×
  • Create New...

Important Information

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