LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

binary file reading

Because I need to Make the Table and based on that I need to read the Bytes with Byte Length. So I'm getting bit confuse about it. It could be more helpful for me if you will give some sample VI.

 

Thanks & Regards,
Munna

Munna
0 Kudos
Message 11 of 21
(820 Views)

Dear All,

 

Please help me in this problem.

 

Thanks & Regards,

Munna

Munna
0 Kudos
Message 12 of 21
(792 Views)

Hi Munna,

 

have you done anything on your own until now? Or do you want to wait for someone else to do your job?

 

To create your timing table you could start with this approach:

check.png

It creates a "table" consisting of time and channel number, sorted by time and channel (in this order). You still need to change the way the number of occurances for each channel is calculated, right now I simply call each channel 10 times. You need something like the greatest common multiple of all timing values…

 

Start your coding, attach your VIs and ask for specific problems.

Before even starting to code you should consider some preparation work! Such flow charts can help to create actual programs…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 21
(787 Views)

Dear GerdW,

 

 

Thank you so much for your Support as always.

I’m not too good in LabVIEW. I have tried myself.

 

This is My VI.  I have created Table as per Channel Timestamps.

 

Please let me know, If I can change anything else.

 

Thanks & Regards,

Munna

Munna
0 Kudos
Message 14 of 21
(783 Views)

Dear GerdW,

 

Finally I make the table to read the Data Bytes from file.

 

Here I don't know how to store the each channel data into separate array (Like array of cluster of 1D array concept as you mentioned previously).

And also, its killing more time for Execution. Could you please tell me where I can reduce my time.

 

Best Regards,

Munna.

 

Munna
0 Kudos
Message 15 of 21
(747 Views)

Dear GerdW,

 

Please help me in this.

 

 

BR,

Munna

Munna
0 Kudos
Message 16 of 21
(723 Views)

Hi Munna,

 

you really have problems to connect my snippet with "channel"/"value" input to your own routine that already provides "channel"/"value" data?

 

See attachment!

 

Hints:

- You still need to initialize the array of cluster, otherwise you cannot replace elements in that array.

- Your routine to convert an array of U8 to a single U64 is overly complicated. You should stay with some simple math instead of building a (wrong?) string and converting that string back to a number…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 17 of 21
(707 Views)

Dear GerdW,

 

Thank you so much for your support and valuable suggestions.

 

Can provide me your VI in Version 2012. I don't have LabVIEW 2013 now.

 

I have created sample VI to store the Data. I think this the way I can store my values.

 

Please let me know if there is any modifications required.

 

BR,

Munna

Munna
0 Kudos
Message 18 of 21
(700 Views)

Hi Munna,

 

see attachment.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 19 of 21
(697 Views)

Dear GerdW,

Thank you so much for your support.

 

I never thought about it (like math calculations).

 

In my project I have to convert U8 to I32 or U32 or U64 based on some conditions. Can I use this Math array for all kinds of calculations?

 

 

BR,

Munna

Munna
0 Kudos
Message 20 of 21
(693 Views)