LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Firmware uplading with VISA

Hello all,

I'd like to try and control an EZUSB-FX microcontroler using VISA USB, if
possible both in Windows and Linux (haven't tested VISA there yet).

But the first thing I need to do is to upload a firmware to the card. How
can I do this using VISA ? The firmware is in the form of an Intel format
..hex file. For instance on Linux it is uploaded with the fxload command; and
on Windows it can be autoloaded with the Intel LoadEZ driver...

Since I need to upload it every time the card is reset, I'd like to do this
from the CVI program... I guess there must be some VISA command for this but
I'm not yet familiar enough with them.

Or maybe I can modify the VISA inf file to autoload the .hex file ?

Thanks.
--
Guillaume Dargaud
http://www.gdargaud.net/
"So i open a can of pepsi max and i see on the side: 'Best Before: See
base of can' so i turn the can around and i feel a cold chill running down
my legs..." - King_Kane.


0 Kudos
Message 1 of 3
(3,018 Views)
Hello Guillaume,

Have you tried using viWriteFromFile?  You should be able to use that function to load and write a file to your VISA Resource.  The Help File for that function is below.  Please let me know if you have any other questions!

Meghan



Message Edited by Meghan R on 04-20-2007 03:02 PM

0 Kudos
Message 2 of 3
(2,997 Views)
> Have you tried using viWriteFromFile?

I get "Visa Error: Unable to start operation because setup is invalid
(usually due to attributes being set to an inconsistent state)."
I assume the options are not properly setup and I'm still very hazy about
what this card needs in term of configuration.
I'll have to look it up.
--
Guillaume Dargaud
http://www.gdargaud.net/


0 Kudos
Message 3 of 3
(2,972 Views)