LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write datalog does not accept record

Solved!
Go to solution

Hello,

 

I am using LabVIEW 9.0 and a producer/consumer architecture to generate and send a serial command, then write a timestamp and a boolean value to a datalog file.  The included snippet of code shows a problem I'm having with my consumer loop where the Write Datalog VI gives a broken link when connected to the Dequeue Element VI.  The context help says "You have connected to a polymorphic terminal that not accept this data type."  But, when I initialized the Datalog, I tie the queue to the "record type" terminal of the Open/Create/Replace Datalog VI.  Any suggestions?

 

Thanks for any assistance,

Mike Stebbins

Download All
0 Kudos
Message 1 of 3
(1,067 Views)
Solution
Accepted by topic author MikeStebbins

In your initialize frame, you set the data type to go into the log file to be a queue reference.  You need to wire in the actual datatype which is the cluster of timestamp and boolean, the same one you used to obtain the queue.  That is why you get the error in the read data frame.  You are trying to write a cluster to the datalog function when it has been primed to be a queue reference datatype.

 

0 Kudos
Message 2 of 3
(1,063 Views)

Ravens Fan, thank you for catching that mistake, and for giving me a clear answer so quickly.  Much appreciated!

Mike

0 Kudos
Message 3 of 3
(1,057 Views)