LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pseudo Random Binary Sequence Output from myRIO

Hello,

I'm attempting to run a near-field communication experiment and need to generate a pseudo random binary sequence on a digital output pin of the myRIO.

I've looked at the PRBS express VI but can't seem to figure out how to control the sampling frequency.

I need to generate the signal at a switching frequency between 100K-200K Hertz.

Can anyone help explain how to control the frequency of the PRBS express VI?

Thanks,

Matt
0 Kudos
Message 1 of 6
(3,188 Views)
If I recall correctly, you don't set the sampling frequency of the prbs signal. You set the sampling frequency of the hardware.
0 Kudos
Message 2 of 6
(3,166 Views)
Care to elaborate?
0 Kudos
Message 3 of 6
(3,135 Views)
I haven't used the myrio but there should be a way to set the output rate. When I generated a prbs signal with a standard DAQ card, I used a timing function of DAQmx to output the ones and zeroes that were in the array.
0 Kudos
Message 4 of 6
(3,131 Views)

So I found a really simple way of generating a PRBS and outputing it on the digial output pins. I've attached a snapshot of the block diagram to do this.

 

However, the highest switching frequency I've been able to obtain through this method is 22.727 kHz.

 

I need to reach between 100k-200kHz.

 

Any suggestions on alternative methods or ways to improve this method?

 

Thanks,

 

Matt

0 Kudos
Message 5 of 6
(3,096 Views)

I suspect the problem is that you are sending single points (as opposed to a PRBS, where S stands for "Sequence", i.e. a train of pseudo-random binary numbers) to the Express VI.  You are probably seeing the overhead of trying to output "one point at a time", where the hardware wants to output at a much faster clock rate (on the order of 100KHz or better).

 

BS

0 Kudos
Message 6 of 6
(3,081 Views)