11-02-2024 04:49 PM
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.
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.
the data is empty. why?there is no error but the log data is completely empty with headers
11-02-2024 09:37 PM
No one can debug pictures. Post your actual code.
11-02-2024 11:25 PM
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
11-03-2024 08:59 AM
Without seeing code I CAN guess that either your message has a typo or, you lost the refnum in an unwired case.
11-04-2024 02:08 AM
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.
11-04-2024 09:03 AM - edited 11-04-2024 09:10 AM
@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.
11-04-2024 09:41 AM
@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. 😄