Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69159

LV 2024 - Casting Bundle with waveform data to variant and then back to bundle causes the Y array of the waveform data to be removed

$
0
0

Hey fancy folk,

 

Question:

Is there a reason why casting a waveform array in a type deff cluster to a variant and then back to cluster then waveform array causes the waveform array to lose the Y array data?

 

Background:

I have some code that is running in a consumer producer loop where multiple producers (various part of my code) give the data to the same consumer.  When I got to testing the code, I noticed that the waveform data being sent by my Ai producer loop (PS V, PS I, MTR Tq) to my consumer loop loses its Y array data.  I then created a small scale version of the process as best I could and in the small scale version of things, there isn't an issue.  I can't release the code, but I did take screen snippets of my relevant code along with the probes and text inside the probes for specific things.  Below you can see these images.

 

Producer Loop

Matt_AM_0-1725476255200.png

 

Consumer Loop

Matt_AM_1-1725476275703.png

 

Probe 29 (ai data read from DAQmx as a 1D waveform being stored as a variant)

Matt_AM_2-1725476316655.png

 

 

Probe 31 (element I am enqueuing and the corresponding text file contains things in the "Adtl Data")

Matt_AM_3-1725476355773.png

 

Probe 35 (element dequeued by consumer and the corresponding text file contains things in the "Adtl Data")

Matt_AM_4-1725476404668.png

 

 

Probe 32 (data after being casted back to a variant)

Matt_AM_5-1725476417147.png

 

Proof of Concept VI that shows this works in a different VI

Matt_AM_6-1725476469197.png

 


Viewing all articles
Browse latest Browse all 69159

Trending Articles