01-13-2014 12:20 AM - edited 01-13-2014 12:23 AM
good day sir 🙂 i just want to ask on how to convert parrallel data to serial.. on the vi i have made, the input image is converted to array and then converted to 1-d array of boolean.. my teacher give me a task on how to convert it to serial.. thank you 🙂
Solved! Go to Solution.
01-13-2014 03:30 AM
01-13-2014 06:29 AM
thank you for your reply sir,i want to send these array of pixels to fpga board.. my teacher ask me to send it using digital i/o lines of the fpga.. then he asked me to send it in serial because he says that i have parrallel output.. thats why i'm asking how send that serially..
at first i thought that i can send the array of pixels in serial because i have just converted it to 1-d array. but im wrong. error occured saying that i have a large amount of lines when sending these pixels to the fpga board. thanks 🙂
01-13-2014 07:46 AM
You have the 1D Boolean array. Just write those values, one at a time, out of your single DIO line.
01-13-2014 08:00 AM
thankyou sir.., 🙂 ahm sir by the way.. how can i write it one at a time? thanks 🙂
01-13-2014 09:25 AM
@robin123_hood wrote:
how can i write it one at a time?
FOR loop. You put the write inside of the FOR loop and you pass the array to the FOR loop. Use autoindexing and you will be writing out the one value at a time through the entire array.
01-13-2014 09:10 PM
thank you sir.. 🙂
01-14-2014 02:39 AM
hi again sir.. ahm how can i reverse the process? because when i wired it outside the for loop and put an indicator, i cant read any values.. thanks again sir 🙂
01-14-2014 02:46 AM
01-14-2014 02:54 AM
here sir 🙂 i cant read any values on the indicator at the top of the loop