02-28-2011 09:47 AM
You do not change the data type of the terminal. The terminal is polymorphic. Just create a constant on the block diagram and connect it to that terminal.
Have you actually tried to open the LabVIEW Help on that function and to read it?
02-28-2011 09:51 AM
We have seen many threads by you where we seem to go round and round with people posting answers to your questions and your asking the same thing over and over. I think you would benefit greatly from taking a LabVIEW basics course, working through the online tutorials or picking up and good book on LabVIEW. We cannot teach you LabVIEW via the forums. You need to put some effort in yourself to learn LabVIEW.
02-28-2011 10:10 AM
I agree with mark But the sistuation demands me in another way because i was taken one project in labview though i dont know labview much. intially while taking these project i think labview is virtual programming and i can able to do something rather taking a microprocessor and writing code onto. Day by day its getting difficult for me and always looking for online help. I saw some hundreds of posts by dennis knuston and feel my self "when i can able answer like chack..chack..
". I am doing my level best by simply reading NI forums and living more 10 hours on this website. I hope you people undestand my problem. I am planning to learn fully on summer because i will get 3 months holidays on that ocation. So, until i will struggle my self to whatever. Although, Ni forums helping me lot in all these actions.
The proposed solution also not working with typecast...it taking 88 hex string in and giving 2281701376 as answer and type was u32.
02-28-2011 10:22 AM - edited 02-28-2011 10:22 AM
@shjukheter wrote:
The proposed solution also not working with typecast...it taking 88 hex string in and giving 2281701376 as answer and type was u32.
As Yamaeda said, change the representation of the constant going into the top of the typecast to U8 instead of U32.
02-28-2011 10:25 AM
Your typecast is not working because you are performing the typecast on 0x88000000, not 0x00000088. You are taking what you respresent as an 8-bit number (0x88) and extending it to a 32-bit number. You need to be aware of which end you pad with zeros as you see the result is quite different.
As for learning, spend some of your time going through the online tutorials instead of just reading the forums. The online tutorials are lessons geared to teach you LabVIEW. The forums are here to answer specific questions. I do believe the tutorials would benefit you significantly.
02-28-2011 10:42 AM
i changed type to the U8 mode but still notworking then i changed the case structure representation to decimal then its working fine but problem with loop it only running for one time means it only reads value for command 88 and then it stops at border of while. How can i achieve continous loop?
I have question on String/number pallet and type cast? i know that type cast is useful for converting from one datatype to another datatype of same number but then what is the difference between hex string to number vi. Why hex string to number vi is showing zero always even though i had given hexadecimal string as input. Some one asked this question on forums but the answer was quite high level which makes difficult to understand for me. You can see the image before i was attached.
02-28-2011 10:53 AM
When you say it only runs once do you mean the FOR loop or the WHILE loop? Your while loop contins the event structure which will prevent the WHILE loop from running a second time until it detects an event. This will be true in all cases. After the first execution the WHILE will only run after an event is detected.
02-28-2011 11:43 AM
now i have taken off that event structure but still it is running contiously but always it running with first command 88. i want to make all the commands run one by one continously..
02-28-2011 02:19 PM
Ofcourse it'll only run once.
You have a conditional stop on your For-loop (unnecessary) which is 'If Error OR Read' and Read is always true! Thus the check is always true and you'll always stop.
/Y
02-28-2011 03:40 PM
i think you mis understood my problem, now the loop is running continous but the problem with commands that everytime only first command 88 is running always no further moving down.