LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

variant to data In QMH remain empty

hallo,
I am working on a logging module.the software uses QMH architecture.

 

the project has a sent Log.vi as below. this is subvi is called whenever i need to log the status.

RepMat_1-1730583865346.png

In the logging module, i used a deque element and in the update log case, i use a variant to data for logging the data.the screenshot is attached below.

RepMat_2-1730584078809.png

the data is empty. why?there is no error but the log data is completely empty with headers

 

0 Kudos
Message 1 of 7
(160 Views)

No one can debug pictures.  Post your actual code.

0 Kudos
Message 2 of 7
(129 Views)

I agree with Paul that it is difficult (and usually not worth the effort) to debug "pictures" (even if they are legitimate VI Snippets, which yours don't seem to be).  However, I noticed that the dequeue (not the spelling -- the last "ue" is important) has Cluster unbundle, suggesting there may be multiple Queues, one of which is called "logging".  If you enqueue into a Queue contained, for example, in a Cluster element named "UI", say, and try to dequeue from another Queue named "Logging", you might not get much useful information.

 

Bob Schor

0 Kudos
Message 3 of 7
(111 Views)

Without seeing code I CAN guess that either your message has a typo or, you lost the refnum in an unwired case.


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 7
(81 Views)

I would guess that a Break point and Retain values will quickly reveal the truth. You've probably misspelled "Update log" or similar in your Enqueue.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 7
(52 Views)

@Yamaeda wrote:

I would guess that a Break point and Retain values will quickly reveal the truth. You've probably misspelled "Update log" or similar in your Enqueue.


That should be "Update Log" the case structure is not set to ignore case.  (I think that you exactly duplicated the OP's most likely source of error) 😀 

 

I double the Kudos if he has a "Developer Error, default" case in the actual code to catch message typos.


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 7
(36 Views)

@JÞB wrote:

@Yamaeda wrote:

I would guess that a Break point and Retain values will quickly reveal the truth. You've probably misspelled "Update log" or similar in your Enqueue.


That should be "Update Log" the case structure is not set to ignore case.  (I think that you exactly duplicated the OP's most likely source of error) 😀 

 

I double the Kudos if he has a "Developer Error, default" case in the actual code to catch message typos.


That's why i prefer Enums as Commands. 😄

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 7
(27 Views)