11-24-2010 06:10 AM
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 ?????
11-24-2010 10:33 AM
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
11-24-2010 10:36 AM - edited 11-24-2010 10:36 AM
AAARGH,
ignore the above mentioned !!!
Your working directory should not be an *.EXE file !
Best regards,
Balze
05-01-2014 08:15 AM
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
05-02-2014 01:11 PM
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!
05-05-2014 01:57 AM
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
12-13-2017 04:52 AM
Hi,
Could you able to flash using Labview?
12-13-2017 05:15 AM
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.)
12-13-2017 05:35 AM
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 🙂
12-13-2017 05:59 AM - edited 12-13-2017 06:00 AM
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 )