Jump to content

sjukheter

Members
  • Posts

    76
  • Joined

  • Last visited

Everything posted by sjukheter

  1. Hi, i am thinking to do in labview for our production controlling. I have some pupms that can generate noise when stroke touches the inside mechanical parts. I am adjusting this noise by adjusting the stroke length manuvally in soft ware and then they prepared for selling. But, why not i can make a automated system that can calibrate these noise. SO, i think i can take some sound sensor which can handle 50db- 120 db sound. and the sound in 50-70db means no noise, if i hit other range then its noise by touching mechanical part. i think i can get the data from sound sensor to labview and make the adjustment automatically. Here i have some questions? 1) choosing sound senor and can it differenciate two sounds? please give me some sound sensors if someone know. Note: i would like to use sensor as externally. 2) If i am write with above, how can i get data to labview from sensor? I searched a lot on web for sound sensors but can't able to get one as my requirement. Even, i can use pressure or vibration sensors. Please some one suggest me.
  2. In my program, If my serial device is disconnected unfortunately, i am displaying a message to user and program is shutdown. Now, i would like to do in a way, that if my serial device disconnects then my program shoud display the message and then it will not shutdown but it has to wait for the serial device again. if it connetcs in same port the program should run as well or if it connects in other com port then the program should automatically change existing comport to that port. Is possible in labview? Can you help me?
  3. Good project and it is very interesting to me but i am also new to labview and eagerly waiting to see reply from other experienced persons.
  4. i did not make it to erase dropdown data at the starting of program and how to add the empty array to existing property node. Drop down data is coming from for loop and displaying in it in same time that before that operation how can i exactly empty the combobox.
  5. yes, I know that and problem is even i have to wait 10 min first time to see the results. Can i put any button in the timeout case like you can see immediatly or otherwise for every 10 minuts.
  6. thank you somuch for brief explanation. I have one more problem with my event structure that contains 10 event cases. In that event cases are run according to the button press. I would like to run one of the case for every 10 mintus to update the data. is it possible to that with one event case.
  7. Really, I am confused and i need to know how it is displaying the binary "1100001101001101" after replace array subset. Before your message i think that it will add the coming 5 bits after 11 bits. On that time, i don't have any answer my self that how it is displaying "1100001101001101" instead of "1011001011000011". I have seen with probe now and I saw the output as "1011001011000011" and not "1100001101001101". Then how i got the real output or am i get going in wrong way.
  8. Hi, I have a problem with my combobox. it is always saving the strings in drop down list and displaying it before even the program not run one time. When I run my code it will populate some addresses and when my total vi and open again also displaying previous addresses. how should clear these address when the program is closed. Thank you.
  9. Thank you so much for your help. I have two small doubts that how Reshape array subset appending five bits as MSB and 11 bits as next to that. I think according to the discription it will append the 5 bits as LSB. I am little confused, can you how and where it is adding. I don't know exactly when to use 4.x data and normal typecast converstion. can tell in exactly one sentence when to use and what id the difference. I have studied labview discription and not understand.
  10. I would like write two bytes of information to write visa. Two bytes consisting with 5 bits as signed (exponent) and remaining 11 bits are mantissa. I have done some coding but i need extend that to two bytes. you can find attched vi. At last i have to add those 5 bit and 11 bit to a two byte value. example, 3.3 is written input and output should be ---------> 1100001101001101----> here first fivets represents -8(always signed) and next 11 bits represents(845). One more doubt, Please say in one sentense. what is difference between 4.x typecast and normal type case. I read the help information and not understand any thing. i have done some coding and did not got the original output. writevalue.vi
  11. the given solution also not working and I sloved my problem. I just changed my labview version. Thank a lot for your kind help. Can you help me in writing write visa. suppose let say, i want to write 3.3V to device to set. I have to convert that into Y=X.2(power of -N) , which gives into two bytes. You can see example in the given PPT (77th slide second model). Can you help me, how can i do that logic in labview.
  12. Thank you for your suggestion. I already know this option but i am using labview 8.5 ,so, that option is not available in 8.5. Now, i am downloading latest verstion . MAy it will take some time to fix all. I have one doubt and will ask later about that.
  13. I have 5 signed bits which creating problems. I have to get the below values when i run the VI. it is not converting the five bits to signed. CAA6--------> 5.3v, DA80-----------> 20,C34D-------->3.3, E367........> 54.43v You can find some examples from page 74 to 89 in th egiven PPt. Can any one help me. pptpm.pdf
  14. Steve, I just once look your code and affried to handle that. I am just learning it now. Have you used any state machine in your code. Furthurmore, if i have any doubts then i will post here. What is enumerated typedef constant. I don't have any idea about these terms. can you explaine me. Thank you.
  15. I have one doubt on this model that what is the main difference between before program and this model. Where this program is good compared to previous. Now, i am just learning how this is working. I want to know where the difference is?
  16. thank you so much i am using LB8.5 and eagerly waiting for starting code.
  17. Can you just make it to some extent then i will do myself after. I don;t where to start. More, what is the difference between my event cases and you said something "user events". Please help me.
  18. yes, the controller will change the values what we are written to it. But, this is going to be extent more that means i want use one formula when i am writing from control and that i can make it later. I know only queues and state machines and will learn quickly about others also. Now i am seeing the producer and consumer design. My project process is like below 1) address search as in my firstcase and display the available addresses (one refresh button is required to update the addresses anytime) 2) select one address write it with list of commands as in my monitor case and display it to respective textbox 3) simple user terminal for seeing user interested value by just writing his wish command in it. 4) other all cases belongs to control commands which write user entered value to device (here posiblly need send button to send value to device after press) I am studying here http://forums.ni.com...ure/m-p/1184565. Is that what you suggested? If you make it to some starting stage i will try then to fill the remaining holes. Thank you so much for your helping hand.
  19. Yeah,people suggested that model but i don't know how to convert this program into that way. So, I am just continuing with this. Don't know what is going to happen in future. I am very new to labview and afraid of this changing. Again, if some thing happens, i should have to put all the stuff in forums and simply waste the time for people replies. Don't know what to do. You have any good material for that model. i will try.
  20. I am from india and i am so happy now, Your are my god of today. After changing the delay into 150ms it is working good. no more problems. I haven't studied your description clearly. I have one problem that, now i changed my forloop to 100 iterations. i am getting all the replies in combobox but the combobox is displaying all the output of 100 iterations even though there is no output. If no read data means it is displaying empty in that place. if it reads any data from read visa then it is also displaying that address on combobox. Therefore the combobox is displaying all the values in it even no output(empty place). how can sort out all the string and display one after another. You can see in the following image. As you said in above with array and shift register to combobox for eliminating these empty spaces is not working i.e. the combo box is hanged if i run the vi and I checked for the addresses in it. then it is freezesd and not all droping down. how to remove this problem.
  21. After increasing the time between write and read also not working. Really, i don't know why. It is executing exactly in highlight execution mode. once If change that to normal mode, then it is only displaying one string in it. you can see my attched vi for futhur errors. never mind about other cases, still i am doing them. Actuvally this not the way i want. I want to write all the possible addresses from 0 to 64(hex) and i will display available address in dropdown list according to the read data. I have to take for loop indexing and writing them in order. So, i did not got any reply in that case. So, i am only writing three adresses which i know that they are available in my serial device. Still i have lot of problems and did not get a way from one week. its working only in highlight mode. why? i have attched highlight mode, normal mode and my file. Can help where is the mistake. Please help me out of this error hell. GUI.vi
  22. Hi, I want to display 3 strings in combox and it depends on read value from read visa. My program is working good in highlighed mode i.e. combox is displaying all the three values in it. but in case of normal run it is only displaying first string alltime i.e.10 Why it is like that please ...some help me. I guess the problem is with stroing into combobox. how can i store all the read values in to array then to combobox all.
  23. Hi, I want to display all the available addresses on dropdownlist(only hex values not characters because imy readvisa is reading characters). In my first event case(address search), i am writing 0 to 64 hex values to serial device with command code and then it replies some other value(any value except zero) for each written address. So, if it returns any value other than zero means that address is available and i need to display the only written address in drop downlist. can some help me how i can it with case structure like i did in second event case(monitoring options). I have one more problem with dropdown list i.e. if user select any value(hex) in dropdownlist and in other all event case will write that address to the serial device. Problem is my address search read visa reads only character and i am converting that to hex and displaying in drop downlist. If any value selected in dropdown list and user slects the monitoring options button then again in that case the selected address coverted back to character and written to device. In that case, serial device is not giving any reply. It giving reply when only, if the readvisa read only in characters are as usually diaplyed in dropdownlist and then user selects any address(means character read from readvisa) plus monitoring options button, then the device is giving the replies for all the values. I hope you will understand my problem and please help me. Its very urgent for me to do this. yahoooo.vi
  24. Hi, I am writing o to 64(hex) values to device to read the available addresses in writen values. There is no problem with device because the same code i.e tha same functionality is developed in matlab and java and that is working. Though, if i run code in highled mode then there is no TIMEOUT error but there is no reply from serial device(Device should reply when it reads 1F and 41). If i run with array constant, from outside the loop with only 1F and 41 then it replying the answer and its not when i am running whole loop. WHY? Please help me, Why this timeout error coming always. 3 days simply gone without doing any thing. My serial device is AVR32 and i have written the program in it. Please reply any thing in labview 8.5 version. yahoooo.vi
  25. Hi, Still the problem is not solved. I have used the setting what you suggested. Please help me in another way.
×
×
  • Create New...

Important Information

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