LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate PRBS7,9, 11 ... in Labwindow CVI 6.0? Any function in C we can refer to?

Hi,

In our project, i want to use a function that can select the payload data from the following:
All1,
All0,
Pattern,
PRBS 7,9,11,15,..
However, I can't find any hints in Labwindow CVI that can generate the PRBS as same as Labview?

Regards,

Mike Cheong
0 Kudos
Message 1 of 4
(7,068 Views)
Hi Mike,

Can you provide me with some more details about what hardware you're using (if any) and what kind of an application you're trying to develop? Then I can do some more research and hopefully find you a suitable answer. Thanks for your cooperation!
Jeremy L.
National Instruments
0 Kudos
Message 2 of 4
(7,055 Views)
Hi, Jeremy L,

Thanks your reply!
It doesn't related to Hardware so much, it's just pure PRBS coding. You can refer to attachment, after we select the PRBS9 (for example), it will show you what data sequence will be put in the payload. so i want to know if there's any function in CVI we can directly to use it?

Regards

Mike cheong
0 Kudos
Message 3 of 4
(7,043 Views)
Ahh, thanks for the explanation! Unfortunately, CVI doesn't have any built libraries to handle PRBS sequences or generating it. However, you can create your own functions and possible instrument driver for this fairly easily by just treating the sequence as a string array or array of binary numbers, and then you can have constants defined for each PRBS sequence. Then, you'll just manually configure the packets as you need to. You should be able to create a similar GUI as in your picture using CVI without too much trouble. To make a long story short, we don't have anything already made for PRBS, but I see it extremely feasible for you to create your own library. Hope this helps!
Jeremy L.
National Instruments
0 Kudos
Message 4 of 4
(7,024 Views)