LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

populate an array with continuous data

I have data from psudo random patterns coming in, I want to take that data and continuously populate an array with it and add bits to that data for asynchronous timing. I need to add start and stop bits to the data in packets of 5, 6, 7, or 8 bits where the user can sellect the packet size. The thing is is that im kind of a novice when it comes to programming so Im not really sure what the best way to do this would be. I am using LabVIEW 2011  

0 Kudos
Message 1 of 6
(2,803 Views)

I would suggest you start out by learning the language. Read the manual, study example code (help->examples) and study the labview core courses, which may be available freely to you.

 

http://www.ni.com/training/

0 Kudos
Message 2 of 6
(2,791 Views)

I have already been doing a good bit of that, one ething I found on the discussion forums that seemed like it might help is a ring buffer. what I am doing is transmitting data between two DAQ's which I can already do, I have VI's to create the psudo random code and transmit through one DAQ and recieve it through another DAQ hooked up to another computer. what I am trying to figure out now is the best way to transmit that data using asynchronous timing. 

0 Kudos
Message 3 of 6
(2,745 Views)

If you post what you have already and point to the bit with the problem or where you need ideas, we will more likely be able to help.

0 Kudos
Message 4 of 6
(2,722 Views)

Post your VI friend, What you have tried so far and what do you want

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 5 of 6
(2,703 Views)

Sorry it took so long to get back to you guys, been a little sick latelly. so here is my code: 

psudo-ringbuffer.png

the top VI creates a psudo random bit pattern that the usser can define, 63, 511, 2047, 2^15-1, etc. what I want to do is take the data stream fromthese patterns and break it up into data packets of 5, 6, 7, or 8 bits and add start and stop bits to that data for asynchronous signal timing. we are currently able to send this data out through a myDAQ and recieve it on another system with another myDAQ and see that pattern with a waveform graph. the problem with the myDAQs is they are only software timed which means we cant send the data as fast as we need to. to counter this we got some myRIO to use for this. that part isnt important its just a little background on what we are doing. any way we need to be able to send this data asynchronously at a rate that the user can define between 50 bps up tp 20kbps and do bit error tests and error free seconds tests and stuff like that. 

what I am having trouble with righgt now is splitting the data up into packets so I can add bits to that data. 

 

and the bottom VI is a ring buffer I found on the internet that sounds like it sould work for what I want to do im just not sure how to implement it. 

 

thanks for your responses 

0 Kudos
Message 6 of 6
(2,653 Views)