LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous Acquisition and Generation LabVIEW RT

Solved!
Go to solution

I have been referencing this example for a real time application I am writting:

Continuous Acquisition and Generation Reference Example for LabVIEW Real-Time

http://zone.ni.com/devzone/cda/epd/p/id/5366

 

I am using the exact code provided. I run the host vi, configure the Target-Main vi for the IP address of my computer and point the AI and AO to cards on my system. All as instruced in the comments. The Host front panel displays my data correctly.  Although the time doesn't apear to update in the waveform graph. The program times out correctly after 10 seconds. 

 

The issue is the tdms file.  The tdms file created is garbage, nothing coherent when I go to open it in notepad. I see the code is rated at 2.33 out of 5. Is there a correction for this code, or a better example to use?

0 Kudos
Message 1 of 4
(3,243 Views)
Solution
Accepted by topic author MgDAQ

gardma wrote:

 

The issue is the tdms file.  The tdms file created is garbage, nothing coherent when I go to open it in notepad. I see the code is rated at 2.33 out of 5. Is there a correction for this code, or a better example to use?


Of course you cannot read the TDMS file, you arent a computer  Smiley Very Happy

TDMS files are written in binary, so trying to read it in Notepad will be meaningless.

You would have to convert it to something readable like ASCII first

 

http://zone.ni.com/devzone/cda/tut/p/id/3727

Cory K
0 Kudos
Message 2 of 4
(3,225 Views)

In labview, you can use "TDMS File Viewer.vi" to read tdms files and have a check of the data written.

0 Kudos
Message 3 of 4
(3,218 Views)

I will select another file type. Thank you for your help.

 

 

0 Kudos
Message 4 of 4
(3,155 Views)