LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hi Guys,CAN and PDA DAQ

 
0 Kudos
Message 1 of 5
(3,527 Views)
What about them?

I'll take some guesses and start.

PDA's can have DAQ via the NI CF-6004 if your PDA has a compact flash slot.  Another way to do CAN and DAQ via PDA  is to use a PCMCIA card adaptor for a PDA and use the PCMCIA versions of CAN and DAQ.

Is this what you are after?

Bob Young

0 Kudos
Message 2 of 5
(3,514 Views)
For some reasons nothing showed up.
 
I have a pcmcia adapter for my pocket pc and I am using a CAN/2 card from NI.
I am using this setup to monitor the bus line in a racecar and the VI I have is an hybrid with the CAN receiver example.
The Vi works fine if used with a laptop but when I use it with the PDA it will run ok for about 15 minutes and then it will start slowing and eventually never finish the write the text file wih the report when you close it.
 
Yesterday I went to the lab again and even after modifying I could not get it to work.
 
Do you guys know why it slows down a lot after 15 minutes? Is that because of the shift registers?
 
I will attach the VI that I used, the one that I tries to use yesterday, and the outcome file.
 
Thanks for your time.
 
 
0 Kudos
Message 3 of 5
(3,512 Views)
Hello FedeSAE,

From taking a quick look at your program, I have one idea about what could be causing poor performance in your program.  In the true case of the case structure in your while loop, you are using the build array function.  When you use the build array function like this in a while loop, LabVIEW has to dynamically allocate memory every iteration of the while loop.  This memory leak can affect system performance, especially on a device with limited memory and processor like a PDA.  Try preallocating an array before you enter your while loop using the 'Initialize Array' function, and place data into this array using the 'Replace Array Subset' function.  This will cause LabVIEW to request the needed memory at the start of your program, and reuse that memory space each iteration of the loop, avoiding a memory leak.  In LabVIEW PDA 8.0, you can also monitor the memory usage of your program using the PDA Memory Usage.vi, located on the Application Control palette.  Let us know if this suggestion solves the problem.

Regards,
Travis Gorkin
Applications Engineering
National Instruments
www.ni.com/support
0 Kudos
Message 4 of 5
(3,500 Views)

By mistake I made 2 of this treads.

I will only use the following:

http://forums.ni.com/ni/board/message?board.id=30&message.id=1714

Sorry about taking the space and confusion

 

0 Kudos
Message 5 of 5
(3,495 Views)