LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

storing output into a array problem

Solved!
Go to solution

Hi Dennis,

 

I noticed a wire comming from the left wall of the block (going to Input A), what exactly it is doing? also does it matter if we connect the daq output to Input A?

 

I will try you solution and let you know.

 

Thanks,

Sine

0 Kudos
Message 11 of 20
(1,516 Views)

Hi Dennis,

 

I noticed a wire comming from the left wall of the block (going to Input A), what exactly it is doing? also does it matter if we connect the daq output to Input A?

 

I will try you solution and let you know.

 

Thanks,

Sine

0 Kudos
Message 12 of 20
(1,516 Views)
That's a shift register and is a basic element in LabVIEW. And yes it matters if your wire the DAQ output to input A. Input A is earlier data. Input B is the latest data.
0 Kudos
Message 13 of 20
(1,512 Views)

Thank you Dennis. Every thing seems to be working. I will do some testing and will let you know. Actually this VI is a part of the bigger system I am trying to design and being a novice, I could not have done it without your help.

 

Thanks,

Sine

0 Kudos
Message 14 of 20
(1,505 Views)

Hi Dennis,

 

The solution is working only if I am acquiring 1 channel, I modified DAQ assistant to acquire 2 channels and the append signals VI is outputing only 1 channel to write.

 

Thanks,

Sine

0 Kudos
Message 15 of 20
(1,470 Views)
If using multiple channels, I think your best bet may be to convert from dynamic data with selecting 2D array of scalars with columns as channels. Then use the Insert into Array function. For some reason you cannot set up the old data as the top input array, so I just flipped it around to insert at the beginning of the array with the new stuff.
Jeff | LabVIEW Software Engineer
0 Kudos
Message 16 of 20
(1,443 Views)
this is continued/double posted here!
Best regards,
GerdW


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

Hi Jeff,

 

I just saw your reply and tried it. Now the x column data is not empty. But the problem is, it now contains the row number and not the time data. How can I get the time column?

 

Thanks,

Sine

0 Kudos
Message 18 of 20
(1,406 Views)
With Jeff's solution, he converted to a 2D DBL array so there is no time information to save.
0 Kudos
Message 19 of 20
(1,395 Views)
Dennis is correct. You may want to use the Convert from Dynamic Data and select the 1D array of waveforms instead. Then you can use the Index Array to retrieve the waveform data of a specific channel.
Jeff | LabVIEW Software Engineer
0 Kudos
Message 20 of 20
(1,369 Views)