From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Recording data from graphs

Solved!
Go to solution

Hello everyone.

 

I have a dynamic array which results from calculations then plots graphs. I would like to record the data to view the graphs elsewhere or later.

My routine does not work, can somebody explain me why?

 

NB: this is based on an example I found in the help window of "Read from binary file"

 

Data Recording.png

0 Kudos
Message 1 of 12
(3,237 Views)

Hi Alain,

 

in your picture there is no "Dynamic Datatype" array. There is no "dynamic" data at all. All I see is a 2D array constant…

 

My routine does not work, can somebody explain me why?

What does not work?

Which errors do you get?

What have you tried to debug your routine?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 12
(3,226 Views)

 Hello Gerd.

 

in your picture there is no "Dynamic Datatype" array. There is no "dynamic" data at all. All I see is a 2D array constant…

When I said I had a dynamic array, I did not mean Dynamic Datatype array but an array (in orange, on the left) that may vary in size, depending on previous calculations.

 

What does not work?

What should happen is the indicator Result reading should be active and look like Reading,

 

Which errors do you get?

Data Recording_error.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

What have you tried to debug your routine?

I do not get what you mean here. I think I have not tried to debug anything yet.

 

Here is a repost with simpler base path and file name...

(to try the routine, just drag and drop this image in the Block Diagram of a blank VI)

Data Recording.png

0 Kudos
Message 3 of 12
(3,205 Views)

i really also want to try this program, it is related to my labview program to analyze raw  data from satellite and analyze all the data  back to its original messagecamera raw data, aodcs , high voltage solar array data etc

0 Kudos
Message 4 of 12
(3,202 Views)
Solution
Accepted by topic author AlainKabs

Simple solution:

original.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 12
(3,192 Views)

Thanks...am new to labview can you illustrate some of the blocks for me to easily pick  search on my labview program version 2012?

0 Kudos
Message 6 of 12
(3,175 Views)

Hello GerdW,

 

Thank you very much, this works just fine!!!

Can you explain me why you use this? 

snip.JPG

 

 

 

 

 

 

 

 

Thank you again.

 

 

Best regards,

Alain.

 

0 Kudos
Message 7 of 12
(3,150 Views)

Hi Alain,

 

IndexArray: ReadFromBinaryFile expects a description (or the datatype) of ONE data element in your file. As you wrote an array of elements you need to provide the scalar element as datatype description.

 

-1 constant: read the help of ReadFromBinaryFile. It explains the "-1"…

Best regards,
GerdW


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

Hello mon39Por,

 

Here is a repost of my VI with all labels on it.

As I said earlier, the second part of my VI is based on Right-click < File I/O < Read from binary file < Detailed Help < 3rd example. Then I merged both VI's.

 

 

Data Recording with Labels.png

 

 

Regards, 

 

Alain.

 

 

PS: Are you from France?

0 Kudos
Message 9 of 12
(3,132 Views)

Ok, now I get it.

Thank you again.

 

Regards, 

Alain.

0 Kudos
Message 10 of 12
(3,128 Views)