LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

command line with flash magic

Hi :

 

I want to control on flash magic application using command line with Labview, I look into this application and I see that I can send through command line all I need

 

Please read what they said aboue using command lines  

 

 

Before you can run FM.EXE on the command line you must set up your PATH environment

variable to point to the folder FM.EXE is stored in. This is done automatically during

installation, however you must restart your machine before the change to the PATH variable

is recognized when using Windows 95/98/ME. You must restart your machine or log out

then back in again before the change to the PATH variable is recognized when using

Windows NT/2000/XP.

 

Commands are passed to FM.EXE in the form or either directives or a Command File

containing directives.

 

The command line will have the following syntax:

 

FM [directives]

 

For example the following command line:

 

Description:  Specifies the PC Serial (COM) communicating  

 

Type:      Configuration

 

Syntax:    COM(port, baudrate)

 

      Where:

 

      port    The COM Port t

      baudrate :

          2400

          4800

          9600

          19200

          38400

          57600

 

Output:    Connected

      Or: Connection failed: reason

 

      Where:

 

      reason   The reason the

 

Default:    COM 1, baudrate of 19200 (COM(1, 19200))

 

Examples:         COM(1H, 9600)

                         COM(1, 0x2580)

                         COM(0x01, 2580H)

 

 

 

I try to used this command line with Labview but I always get error attach see file please

 

What I am doing wrong ?????

0 Kudos
Message 1 of 12
(6,605 Views)

Hi,

 

did you check the PATH variable ? Does it contain the FM Path?

 

Try "cmd /c FM.exe" with wait for completion TRUE and minimized FALSE.

 

What is the result in cmd window?

 

Best regards,

 

Balze

 

P.S.: Maybe the wait for completion and minimized are called different, I've got an german LV

0 Kudos
Message 2 of 12
(6,574 Views)

AAARGH,

 

ignore the above mentioned !!!

 

Your working directory should not be an *.EXE file !  Smiley Wink

 

Best regards,

 

Balze

0 Kudos
Message 3 of 12
(6,572 Views)

Hi,

 

I've had a strange problem with the Flash Magic command line tool via system exec.vi, when using it to load a .hex file from a library which had brackets in its name it didn't work, once I removed the brackets - all was good. When I use the FM GUI it works in both cases, so does other executables.

 

I tried to look for a note or comment on that issue but found none, I would appreciate any help on the matter.

 

Amir

0 Kudos
Message 4 of 12
(5,724 Views)

Hi AmirBerN-trig,

 

Based upon the information that I found on the Windows command line syntax, the square brackets, aka [ and ], indicates to the command line that the text inside is optional. Maybe that is why the file opened properly when you removed the brackets. Hope this helps!

Sam Burhans
Senior Product Manager
National Instruments
0 Kudos
Message 5 of 12
(5,684 Views)

Hi CofeeBreak,

Thank you for your comment, but I was able to find the problem (didn't solve it yet): In the FM command line interface, calling a HEX file located in a folder with brackets in its name, such as "C:\hello_World(V1)\LabVIEW.hex" will not be recognized by the FM.exe, whereas "C:\hello_World_V1\LabVIEW.hex" will work just fine. In the Flash Magic GUI and Command Line Manual section on hex files there is no mention of that, my solution at the moment is to remove the brackets from folder names.

 

Thanks

 

Amir

0 Kudos
Message 6 of 12
(5,655 Views)

Hi,

 

Could you able to flash using Labview?

0 Kudos
Message 7 of 12
(4,536 Views)

You want to know if i've been able to flash using FM.exe and LabVIEW?

 

YES!

 

(I answered your question! Please give a kudo.)



 

Message 8 of 12
(4,529 Views)

I'm interested to know what are the commands have been used as i dont get enough information for erasing & programming.

 

If possible can you send me the details about it?

 

If you can able to share the VI it would be great 🙂

0 Kudos
Message 9 of 12
(4,522 Views)

As you may have noticed, this topic is more than 3 years old.

 

I did not use FM.exe since then.

 

All you need (from LabVIEW perspective) is shown in the jpg in the first post.

LaBVIEW just calls the FM.exe (via cmd /c) with appropiate command line options.

 

The Command line options you have to use depend on your setup and you have to figure out on your own.

There are a lot of forum entries regarding fm.exe command line options and the usage.

Try to use google to find these threads.

 

(For example: http://forum.flashmagictool.com/index.php?topic=3066.0 )

Message 10 of 12
(4,506 Views)