LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

matrix formation by plotting from another matrix

Solved!
Go to solution

Hi all

 

Our aim is to form the Parity Check Matrix H of (4607*9215)(Row * Column)

How to form the parity check matrix H;

In H matrix , the position of one's are defined by the matrix below. All other positions are zero's.

When you open the text file you can find 4607 rows of values(starting from index 0).
For each row their respective column values have been given
ie., For each row their respective column values have to be made one.

In other words you can say for the 9215 columns that row 0 has only 6 column values have to be made one.

So following this procedure for all the 4607 rows we can get the Parity Check Matrix.

 
We have to read the text file in labview and from their procced. Someone send me a sample VI please
Regards

Temin
0 Kudos
Message 1 of 8
(3,456 Views)
Solution
Accepted by topic author temin_fpga

Hope this helps:

Generate Array from Indices.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 2 of 8
(3,451 Views)

Thank you so much for your help.It works like a charm.your help came in the right time.

 

I was using "Read From Text File" function and converting it into byte array and couldn't get the Decimal value.

 

can you explain me how the Space Constant vi wired to Delimiter(/t) terminal works.

 

warm Regards

Temin

 

 

 

0 Kudos
Message 3 of 8
(3,444 Views)

TAB (/t) is the default delimiter, as your data file had spaces, I had to use the space character that's all. It works similar to the 'text to columns' function in excel.

 

Excerpt from labview help:

delimiter is the character or string of characters to use to separate fields in the spreadsheet file. For example, a value of , (comma) specifies a single comma as the delimiter. The default is \t, which specifies a single tab character as the delimiter.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 4 of 8
(3,442 Views)

If I give a .xls file as input to the same Read From Spreadsheet vi of the same code its not working why???

 

The scrren shot of the .xls file I gave as input  is attached below. Kindly reply.

 

Regards

Temin

0 Kudos
Message 5 of 8
(3,439 Views)

H matrix image.jpg

0 Kudos
Message 6 of 8
(3,436 Views)

Hi temin,

 

an Excel XLS file is not a spreadsheet file!

 

XLS is a proprietary file format developed by Microsoft and you need to use MS' routines (aka ActiveX) to read the content of such a file...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 8
(3,432 Views)

This link may be of help: http://forums.ni.com/t5/BreakPoint/Excel-Board/m-p/379682?jump=true


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 8 of 8
(3,425 Views)