Hello,
I have downloaded trial verison of LabVIEW Embedded for ARM 2009. I am trying to use file I/O functions to read/Write to the SD card on MCB2300 (LPC2378). The program always gives an error at file open function. Please find the attached screenshot.
Thanks in Advance
已解決! 轉到解決方案。
I think your program worked first time and the file is already there.
The VI will end with an error on Windows too (error 2/Duplicate path) – try "replace or create". You can see the error code if the error cluster is wired to a "CCG Error Handler.vi" (located near CCG Console Output in Time & Dialog).
Is this snippet working? http://forums.ni.com/ni/board/message?board.id=420&message.id=1455#M1455
Hello NiCB,
I receive error 6 (generic file I/O error). I have changed the file open to open or create function. I am able to read and write to the Sd card using my pc sd card slot. Do we have to set any jumpers or any other parameters on MCB2300 board?
OK, this is an IO error.
I am wondering if Keil example is running (http://www.keil.com/download/docs/338.asp).
If you don't have RL-ARM just load the project file and execute flash-download.
Hi Jaggs,
Have you tried using the file I/O example on our community? If not, could you run and see if you experience the same behavior?
File I/O for Embedded ARM Targets
http://decibel.ni.com/content/docs/DOC-6254
Thanks!
Hello Meghan,
The example is not working.
Hello NiCB,
The flash download is giving a error "No ULINK device found"
i have connected COM1 port on the board to the PC COM port. Do I need to set any jumpers? My OS is VISTA.
Thanks.
Hello,
I connected the ULINK2 and was able to download the SD file program to the flash and now when the program is running, I have connected the serial cable to COM1 and PC and trying to communicate with SD card. However, I am not sure about the commands to use in hyperterminal.
I don't understand the previous post, perhaps you just hadn't connected the ULINK2. However, this link may be useful in some cases http://www.keil.com/support/docs/3315.htm
Hyperterminal commands are listed in SD_file.c
Try "CAP", "TYPE", "REN", "COPY", "DEL", "DIR", "FORMAT", "HELP", "FILL", "?".
Anyway, they are listed at startup as an intro message.
Nic
Hello,
I was able to run the Sd file example and debug using COM1 Port. Previously I was using wrong serial cable. However, the initial problem of communicating to the SD card from LabVIEW is still present. I found that when I initially launch LabVIEw, it says that LabVIEW embedded builder licenseis not present. I am not sure if this is causing a problem.