01-20-2006 10:43 AM
01-23-2006 05:21 PM
Hello jspaarg,
After reviewing your post, I still need a little more information to help diagnose the improper execution time. Which version of NI-DAQmx are you using? What CAN hardware are you using (i.e. PCI, PXI, PCMCIA)? Is it National Instruments hardware?
Furthermore, are you using any of the CAN DAQ synchronization
01-23-2006 05:27 PM - edited 01-23-2006 05:27 PM
Thanks for the reply.
I am running the DAQmx 7.4 driver set.
My serial<->CAN convertor is serial only as far as the PC is concerned. It runs from COM1 at 57,600 BAUD. The convertor is a small embedded-device that converts the serial to CAN for my device. My device is a PIC 18F8520 controller (if that matters).
The application that is giving me concern updates the embedded software in the PIC by writing data over the serial port (and thus to the CAN). The controller receieves the data and writes its FLASH.
When the 6224 is connected (via the cable), the download takes about 58 seconds. When the 6224 is not connected, the download takes about 29 seconds (pretty much twice the speed). This timing is extremely consistent.
Any ideas are greatly appreciated.
Edit: The 6224 is not involved in any way in the FLASH being updated.
Message Edited by jspaarg on 01-23-2006 05:28 PM
Message Edited by jspaarg on 01-23-2006 05:29 PM
01-24-2006 04:24 PM
01-24-2006 04:29 PM
01-25-2006 06:42 PM
HI jspaarg,
The .NET code may not be necessary.
Lets see if I understand correctly:
You are programming your PIC by way of the serial port on the PC. The serial data is converted into CAN and then compiled onto your PIC’s FLASH.
My confusion is how the PCI 6224 DAQ card is involved? (via the cable?) Are you using the standard SHC68-68-EPM shielded cable or is it something you fabricated? Also, is the cable attached to the PIC somehow or is it a separate application?
If the SHC68-68-EPM cable is acquiring data from the PIC at the same time it is receiving a bit file download from the serial<->CAN converter it may be sharing the resources on the PIC?
If the PCI 6224 DAQ card is part of another process, does the delayed execution occur when the cable is plugged into the back of the PCI card with nothing on the other end? If so, check for bent pins.
Post a reply with any additional info.
01-25-2006 06:52 PM