12-02-2008 03:53 AM
Hello I have been fighting with this issue from last 2 months ... They getting help from different I thought I have solved the problem, but of no use still I am standing on zero
Problem: I have to get high speed data on USB in form of HEX ( coming in hex and to be stored in text file in hex like each hex value in different line I am also going to attach file)
We get ASCII on serial or VISA read but when try to convert to hex like the shown in text file make code slower to process, I know my VI will need more improvement.. Waiting for suggestions
Need help in urgent ....
Thanks in Advance
Solved! Go to Solution.
12-02-2008 03:59 AM
Hi Ali Afzal,
you read only one byte and generate an array with 10000000 elements. Why do you make it?
How fast shall your loop run?
Mike
12-02-2008 04:05 AM
12-02-2008 04:11 AM
when i assigned 10000000 i was using the bytes on port so they i have been playing with this VI, Mike can you tell me that in my vi i tried to use the concept that when byte is received on port the rest code should go means read visa after that just like event handling dont want to be pooling every time
what i have tried to is right or not? if not what should be done.
12-02-2008 04:13 AM
Hi Ali Afzal,
can you give us an example string which you receive? If you don´t have enough time in this loop, then you can send the data with a queue to a parallel running loop. In this loop you can store more values at ones.
Can you explain why you create this big array in your vi?
Mike
12-02-2008 04:21 AM
12-02-2008 04:29 AM
Hi Ali Afzal,
i think the attached example can work for you. If not, then try the solution with sending the data to a parallel running loop and store it there.
Mike
12-02-2008 04:31 AM
12-02-2008 05:10 AM
Thanks Mike it is running fast and even writing it on same speed thanks sir now going to check it with FPGA when will go to my office LAB
Thanks again sir.
12-05-2008 11:18 PM
Hello Mike
Thanks for your help I have another query about the same code. Sir I am trying to make a condition to look for End of data pattern in coming data like "FF00FF00FF00" when every I receive this continues data loop should terminate. Sending you vi also with details marked in it...
waiting for your reply..