Jump to content

sjukheter

Members
  • Posts

    76
  • Joined

  • Last visited

Everything posted by sjukheter

  1. You mean timeout option at serial VISA block. can I increse directly the value of timeout terminal at serial VISA block. I don't know how to do that with property node.
  2. Hi, i am first time working with data communications and experiences the following error shown in the picture. The "timeout case" running good for some iterations and then it is generating the error shown below. I am very new to this did not understand anything. Please some can help me with where the problem is.
  3. Yes, you can see the attched code ...timeout case(read visa is reading Characters @ and A) and monitoring options case. Also, i would like to on(it should glow) the button until the specific case completes and then off. Problem is the dropdown list is showing these characters before thats the reason i changed that to display values with ascii to hex and another case hex to ascii conversion(not working now).. saras.vi
  4. As i am new to labview and understanding your points straight away is difficult forme. Though, I will try when you post the given example in labview8.5 version. I am just making GUI to control the SMPS. In part of that I created address search function in timeout case to run continously in the case of no user event. Also, coming to local variables, i don't know how to use shift register for reducing local variables. thank you for your suggestions and need to see the given example. Please post it in 2008 version. In my program, I am using 8 indicators for display the read vale -----for these all indicators i would like to create one CLEAR buuton to erase all the indicators to zero between the programm running. controls for wiring the data inti serial device-----I have taken one case per control and i would like to create SEND button for these all controls. If user enter any value in nay of the control and then clicked SEND button will write these values into device. Now, value change event will write all the values into device if user try to enter new value in any control but i would like do the above way with send button. Now i think you got my point to build this. Please give me any suggestions. I am planning to learn statemachines with any examples before and some assignements followed. Can you help me with any link.
  5. I have a problem that the given vi converts given hex value to ascii character but in my code before i am directly concatenate the character "@" with another string and I am writing that to serial device. In that case it is working fine. But after some days I want to write just 40(hex) to serial device which menas ascii character is "@". I am just doing this in my gui for user friendly behaviour. User can not undestand characters. so that why i am displaying 40 to user in frontpanel and converting that to ascii character in inside labview and after concatenate it with another string. In this case my serial device is not replying back like before, though both are writing same. I don't know why? But i found one difference that, In normal case i.e. in my first case(red)it is writing "@+some other concatenated command" in second case "Some space+@+ concatenated command" I hope you are understand my problem and please help me.
  6. Hi, I am new to labview and learning in slow phase. I have a doubt regarding String to number converstion vi's. why it is not converting hex string to number and it is giving zero as result. Can nay one help what is reason.
  7. Hi, I am using event structures entirely to my program and don't know how to clear my indicators when ever i need. More i want to create a send button to control which are in event structure and when ever user enter some data in it and one clicked send button should start event case and ron the particular control which are entered by user. You can also see the picture downside and attcjed VI. Hope you all undestand my problem and looking for help. Some suggest me. I am very new to labview. the white back ground represents all controls and up you can see some indicators. rajnew.vi
  8. I am just expecting to work my program in below manner. start with given VISA resource name and then it wait for event. 0ms is my timeout case which enters into the case and performs the task. I am expecting that after finishing the tmeout case, it should wait for other events to happen unlike now i guess it will close the session. I want to make it as to wait for other event after finishing the first case. I don't know wether it will work as what i am expecting or i need to do any more for that. Please suggest me. rajnew.vi
  9. thanks for your kind information though i would not clear my self. Before, i did not check with the real device at the moment and i am just checking with 32 bit microcontroller. SO, I am just making address search and displaying then all in dropdownlist. As you said, if i send 0 to 127 then shift makes the difference and change these all values to some other values. I am guessing that device address will be in range between 0 to 127 but after the shift values are changing to some others. Is it ok to continue?
  10. Hi, I was using 8 controls to write the data into serial device. All the control are represented in DBL format. At staring on one control there is one representaion with letter "d". Only one control is having this prefix as I showned in the attchment. I want remove that visible "d" and make it normal like other controls which displayed below to that. Why only control displaying prefix"d" . what is reason for that and how i can delete this "d". Doc1.doc
  11. Hi, I supposed to say that the given logic wold not work. I did not check with the device though i would like to send always addresses from 0 to 127. After the logic shift this value is chnaging to some other value and i guess this make some difference. You can see in the below attchment for packet structure. LSB isalwyas for indicating Read/write operation. Why really logic shift is there in the given example. I did not undestand. weather it acts like what i ecpected.. Doc1.doc
  12. Hi, I have a basic doubt that I am communicating with SMPS by serial virtual COM port from labview. Generally, is this UART or USART communication? what is basic difference between these types. I read lot of threads on wed but all explaing about their abberivations. Can any one clear my doubt and what type of communication in this case i am using?
  13. Please, repost the last example VI in 8.5 version. So that i can see the given example..
  14. nice option and i will do it immediatlly but the i want display a message to user in the case of limit exceeds dy displaying the popup message. For that i will take user dailogue Vis and implementation is bit unknown for me.
  15. No, its difficult for me make it in expexted way. You can see in my code, first event case, I am writing all the addresses to serial device from 0 to 127 because it represents 7 bit address and the LSB bit should be read bit or write bit whicjh i did not sending now. I am sending all the addresses as 8 bit ans its totally wrong. Also you can see in other event cases i am using local variable of selected address but ther also i am adding read bit bit and write bit. Its totally wrong because it is considering both as two bytes. so i want to add these write bit and read bit in all cases. More I want to block the controls(from 3rd event case on wards) with some range values i.e. User can enter values.only between in those ranges. Hope you can suggest me.
  16. Now i am doing totally wrong and you can see in the attached VI. I have one more doubt that i am using virtuval comport USB to my PIC. I don't know the basic communication ruls. What type of communication am i using. USART or UART? rajnew.vi
  17. Hi, I want to write a byte of data to serial device. Byte indicates (7 bits representing address and one bit representing read or write operation). So, I don't have any idea to write in manner to serial device. Now i am writing address 10(00001010) and 0 or 1 separately and it is totally wrong. Please some one suggest me how can I write this to write visa.
  18. Yes, I was thinking the same but if connect read terminal to property node like what you showed. Next, Can I delete existing indicator on that place(PMBus address) after connecting to the property node of PMBus indicator. In that case, it delets existing property node also and i have left it alone there after. Is this right? I have one more doubt about enable and disable indexing. As i am new to programming and difficult for me to undestand. can you help me, In waht cases we use these option. Since, I was just using trail and error methods in the case of errors. I want to know what exactly it is? see the attachment, hopefully i changed all things. Is it ok now, then i will check with device later and may i can troubleshoot some other problems. rajnew.vi
  19. No, i did not check with the device though My task is to finish this. Could you please help me that you told some thing about property node setting in the first message ..Please I am running out of deadline. Please can tell me exactly hoe can i do that.
  20. I tried to create property node in strings but the problem is I Am using local varible of the dropdownlist in other event cases because of selected address should written to port in other event cases. Please can make it for me and the attched Vi is above. I am using labview 8.5. I guess that i have taken string dropdownlist but I need to display hex numbers in dropdown list. Please make me out of this.
  21. Hi, I was struggling with event structure that in my program first, I want to display all the available addresses in dropdownlist and then user can select any one of the available addresses plus any of the other available buttons (terminal or monitoring options). The problem is after getting the all available address the program is closing itself without waiting for the other events. How can I slove this. Please some suggest me. rajnew.vi
  22. Now, I had changed my code to event structure and I did not check with my serial device. Can any one suggest me If I had done any mistake in my code. rajnew.vi
  23. Thanks a lot , After changing with shift registers there is no broken wires. Can you explaine me what exactly shift register is doing and why it is suited here. I am very new to labview, Please can you tell me how can I do the follwing thing. Now i am doing address search on my first case of event structure which will get address and display in dropdown list. In next other two event cases Right now i am sending commands with address as first databyte(example 1088 where 10 is address) but I need to make a program that will take the address from dropdownlist what user selected always and sending to the serial device. Please could againe suggest me clearly what mistakes i am doing and guide me for the above question. rajnew.vi
  24. Now, I changed my total code to event structures. Though, I have some errors and couldn't solve it. First problem is I can't wire to close visa and it arises error. In second event case currently I am writing command like 1088(here 10 is address) but I want to make if first case runs and displays all the available addresses user can select the any address and it should replace the existing address and write to port. In Third event case, I would like to write user entered data to port by appending the data to existing command in String concatenation. In this case also selected address should replace the existing address always. Please any one should suggest me. Thank you. rajnew.vi
  25. HI, I have a big problem now and need to change my code in another way. Please refer the new post i have written some in the forum which having title as"writing 3 times to write visa". I am crying now and i can not able to do anything with the code. Please see the new post and can reply me there. please......
×
×
  • Create New...

Important Information

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