LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

datataker string

Hello,

 

I have a Datataker DT85 that I read Doubles and a String from in Labview. I managed to extract a Relative Time from the incoming String, but the value is not consistent, meaning I should get a new Relative Time every couple of seconds or so depending on the configuration I give to the DT85, but sometimes it gets updated, other times it does not. In the attached picture you will see the highlighted section of the picture shows a Relative Time of 00:00:04.021 then 00:00:01.977 then 00:00:02.997. These Relative Time values are seen in an application from Datataker called DeTransfer, but in Labview I might only see one or two Relative Times. I have deleted most of my program to the bare essential but I am still missing Relative Times. I also attached my VI to help you understand what I mean.

 

Thank you

Download All
0 Kudos
Message 1 of 6
(2,048 Views)

To be clear, you are not running the DeTransfer at the same time you are running your vi?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 6
(2,036 Views)
Yes I am. Would this affect the receiving of data?
0 Kudos
Message 3 of 6
(2,023 Views)

@rcote1 wrote:
Yes I am. Would this affect the receiving of data?

I'm not really sure how your monitoring software works, but they could be competing for the same output.  Try not using the logger and see if the problem goes away.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 6
(2,015 Views)

I closed everything and rebooted the PC then only started my Labview application but it still misses some data. I'm thinking it has to do with my while loop and the fact that I set the DT85 to acquire every 3 seconds and they are not in synch with each other. Anybody knows how to synch the DT85 with Labview? Should I set a flag on the DT85 when Data is ready every 3 seconds for Labview to read, then clear the flag and make the While loop wait for the next flag to show. How would I implement this. Is there another option?

 

Thank you,

 

Richard

0 Kudos
Message 5 of 6
(1,972 Views)

It will probably be tough, but see if you can morph this into a producer/consumer architecture.  LabVIEW has examples to get you started.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 6
(1,967 Views)