LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The binary file processing in PDA device (LabVIEW PDA Module)

To whom it may concern,

 

I created a VI application, which should read some binary files and transform them to waveforms shown in the Waveform Graph. I implemented it with Mobile/PDA module. This application runs successfully on my desktop, that is, on the Labview Front Panel. However, when I run it on "Windows Mobile 5.0 Pocket PC Device" (a PDA has been already connected to the PC), all the windows, menus, buttons are displayed correctly, the only thing wrong is that the waveform can't be shown in the Waveform Graph. So, I wonder whether the Windows Mobile system will automatically modify the binary file format a little when I copy them from the PC to my PDA so that the original VI can't process it as what I expected in PC execution. Or, are there any requirements for the programs that will be executed in actual Windows Mobile Device?

 

Thanks a lot for any comments and suggestion. 

0 Kudos
Message 1 of 4
(2,788 Views)

What version of LabVIEW are you using, and how many points are you plotting?  The PDA Module can't plot more than 32000 points on a graph (which isn't usually a problem).

 

Can you try to narrow down the problem?  Try loading a small waveform of constant data in your VI, and see if that can be graphed, and also set up an indicator to verify that your data is being properly read from your file. 

Regards,

Jeremy_B

Applications Engineer
National Instruments
Message 2 of 4
(2,768 Views)

Thanks, Jeremy,

 

I used LabVIEW 8.5.1.  I rechecked and debugged the VI. The problem is not due to the Waveform Graph. I set an indicator after the Read File unit, in both PC Front Panel and PDA Front Panel. As I described before, when I run it in the PC Front Panel, the indicator could show the right values read from the file. But when I switch to PDA Device Front Panel, the indicator shows zero (invalid values), which demonstrate that the data is not accessed from original files.

 

The units I used are shown as follows:

 

File Dialog ---> Open/Create/Replace File ---> Get File Size ---> Read From Binary File (Here I set an indicator, no values read from the file, but if run in PC, correct values will be shown).

 

In this case, I guess the problem should come from the transfer (copy operation) of the file from PC to PDA. Or the operation behavior for LabVIEW  Read File unit is a little different for PDA implementation from its PC implementation.

 

If you want more information, including the original binary file or VI, please let me know. Thanks a lot.

0 Kudos
Message 3 of 4
(2,764 Views)
There should not be any difference between the file IO on PDA.  Can you confirm that the file is transferring successfully?  You might also try a text file, and then you could open the file on a text editor on the PDA to ensure that all of the data is there.
Regards,

Jeremy_B

Applications Engineer
National Instruments
Message 4 of 4
(2,750 Views)