Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

CNVPutDataInBuffer and CNVGetDataFromBuffer reads old data

Solved!
Go to solution

I'm using CNVBufferedWriter and CNVBufferedSubscriber to write/read a shared variable. When I write data to a scalar variable it works fine. I see the new value in NI-DSM.

But when I write data to a structured variable and read it back, I always receive the old values. All functions return "0" (success).

Please help!

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

Perhaps I've found a bug in the SVE:

when I call the functions CNVCreateScalarDataValue() or CNVSetScalarDataValue() with data type CNVSingle no error is returned. But the value conversion with CNVGetScalarDataValue() always returns "0.0".

The data type CNVDouble works.

Does anyone use the data type CNVSingle?

0 Kudos
Message 2 of 3
(3,074 Views)
Solution
Accepted by topic author Nitsch

We change all variable members of CNVSingle to CNVDouble to fix this bug.

0 Kudos
Message 3 of 3
(3,040 Views)