Getting data into a file

Questions about the BASICtools and MakeItC
YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Getting data into a file

Post by YahooArchive »

I am having problems getting data from my ARMmite board into a file on
my PC.

The BASIC PRINT statement only shows data in the BASICtools window.
Ideally I would like to OPEN a file, WRITE data to it, and CLOSE it, as
in standard BASIC.

Even if I wanted to use tcl I can't get the tcl programs to open
(windows does not recognise tcl files).

Within these restrictions, I have already looked at the relevent
programming examples.

Does anyone have any suggestions ?

Ed
2.February.2009



YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: Getting data into a file

Post by YahooArchive »

In a message dated 2/21/2009 6:40:16 PM Central Standard Time,
etrc_etrc@... writes:




I am having problems getting data from my ARMmite board into a file on
my PC.

The BASIC PRINT statement only shows data in the BASICtools window.
Ideally I would like to OPEN a file, WRITE data to it, and CLOSE it, as
in standard BASIC.

Even if I wanted to use tcl I can't get the tcl programs to open
(windows does not recognise tcl files).

Within these restrictions, I have already looked at the relevent
programming examples.

Does anyone have any suggestions ?

Ed
2.February.2009






Ed,

You can highlight the text in the BASICtools window, do an Edit/Copy, paste
it into Notepad, and save it as a .txt file.

You can install a Vdrive interface and put all kinds of data on a thumb
drive. This is what I do, and it is extremely convenient because of the huge
capacity of thumb drives now.

Don W.
**************Need a job? Find an employment agency near you.
(http://yellowpages.aol.com/search?query ... ntusyelp00\
000003)


[Non-text portions of this message have been removed]

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: Getting data into a file

Post by YahooArchive »

Ed;

I did this by installing the legacy driver for the usb port following
the instructions on the coridium site. Then I could see the data
using hyperterm, a program common to the pc world. Hyperterm allows
you to capture the file. After that, I wrote a labview program to
datalog all 8 a/d channels, and to graphically display them at the
same time (sledge hammer approach, but I have a site license for
labview). Labview visa serial commands were used. This approach
works well, though I still have to initiate the armmite by pushing the
button, though would rather have a software initiate.

Don, did the vdrive install go according to the instructions on the
coridium site?

Anyone have a handy schematic for elevating the a/d input to its
midrange voltage so that both positive and negative signals can be
measured? I have many ideas on how to do this, but if someone has
already done the simple elegant thing ....

Has anyone made a lock-in amplifier with the armmite? I have in mind
to generate a digital reference square wave, to multiply it by the
resulting a/d input (the reference drives a stimulus) and time average
using an approximate exponential decay. The output would be the
amplitude of the in phase component at the frequency of the square wave.

Pat A.

--- In ARMexpress@yahoogroups.com, scirockit@... wrote:
>
>
> In a message dated 2/21/2009 6:40:16 PM Central Standard Time,
> etrc_etrc@... writes:
>
>
>
>
> I am having problems getting data from my ARMmite board into a file on
> my PC.
>
> The BASIC PRINT statement only shows data in the BASICtools window.
> Ideally I would like to OPEN a file, WRITE data to it, and CLOSE
it, as
> in standard BASIC.
>
> Even if I wanted to use tcl I can't get the tcl programs to open
> (windows does not recognise tcl files).
>
> Within these restrictions, I have already looked at the relevent
> programming examples.
>
> Does anyone have any suggestions ?
>
> Ed
> 2.February.2009
>
>
>
>
>
>
> Ed,
>
> You can highlight the text in the BASICtools window, do an
Edit/Copy, paste
> it into Notepad, and save it as a .txt file.
>
> You can install a Vdrive interface and put all kinds of data on a
thumb
> drive. This is what I do, and it is extremely convenient because of
the huge
> capacity of thumb drives now.
>
> Don W.
> **************Need a job? Find an employment agency near you.
>
(http://yellowpages.aol.com/search?query ... ntusyelp00\
000003)
>
>
> [Non-text portions of this message have been removed]
>

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: Getting data into a file

Post by YahooArchive »

--- In ARMexpress@yahoogroups.com, scirockit@... wrote:
>
>
> In a message dated 2/21/2009 6:40:16 PM Central Standard Time,
> etrc_etrc@... writes:
>
>
>
>
> I am having problems getting data from my ARMmite board into a file
on
> my PC.
>
> The BASIC PRINT statement only shows data in the BASICtools
window.
> Ideally I would like to OPEN a file, WRITE data to it, and CLOSE
it, as
> in standard BASIC.
>
> Even if I wanted to use tcl I can't get the tcl programs to open
> (windows does not recognise tcl files).
>
> Within these restrictions, I have already looked at the relevent
> programming examples.
>
> Does anyone have any suggestions ?
>
> Ed
> 2.February.2009
>
>
>
>
>
>
> Ed,
>
> You can highlight the text in the BASICtools window, do an
Edit/Copy, paste
> it into Notepad, and save it as a .txt file.
>
> You can install a Vdrive interface and put all kinds of data on a
thumb
> drive. This is what I do, and it is extremely convenient because
of the huge
> capacity of thumb drives now.
>
> Don W.
> **************Need a job? Find an employment agency near you.
> (http://yellowpages.aol.com/search?
query=employment_agencies&ncid=emlcntusyelp00000003)
>
>
> [Non-text portions of this message have been removed]
>

Don,
This sounds like the simplest suggestion so far (the others all
needing operation of the ARMmite through a terminal emulator I think -
I might be wrong. The Coridium website gives an example of tcl
which I can't seem to open on my PC). Copy & pasting the O/P is not
quite what I need but it will do for initial test purposes. But how
do I set up a vdrive that works in this fashion ? I can copy and
save and edit files with other programs to my drives including USB
drives already. My PC sees them as any other kind drive, so I am
still at square one, getting the ARMmite to write to data to an off-
board memory. Clearly my ARMmite board can transfer data to my PC (I
can use use the PRINT statement), but to get it to print to permanent
storage ?? Anyway, thanks to you and others for your help, I'm afraid
I'm bit of of beginner.

Ed
23.February.2009

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: Getting data into a file

Post by YahooArchive »

I have tried two ways of getting data into a file now and both met
with basically the same reason for failure: the program that was
trying to read the data before file output (a JustBasic one I wrote,
and Hyper Terminal by MS) told me that " device was already open"
and "another program is using the selected telephony device". In
these two examples I couldn't intercept the data that was being
transmitted through the USB port and this leads me to believe that
this is a general problem with data collection from the ARMmite.
Please bear in mind that even if I could understand anything about
tcl I am unable to download it, and I can't get VB to work, although
I did download it.

EdC

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: Getting data into a file

Post by YahooArchive »

I have had zero problems pulling data from my ARMmite to my PC. The
error its giving you suggests there's a conflict on the COM port you
are emulating. What other programs do you have running when trying to
do this?

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: Getting data into a file

Post by YahooArchive »

Thanks for the hint, I had the BASICtools Control for ARM window open
running, displaying data as it came in. The 'this Port already open'
window seems go away if I close that

But I have other errors now. Hyper Terminal just doesn't see
anything, and my JustBasic program gives the error:

"#PORT4
These handles closed by ust BASIC
Please add the appropriate CLOSE commands"


How have you acheived pulling data from your ARMmite to your PC ?

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: Getting data into a file

Post by YahooArchive »

I use winwedge pro to get the data into the pc. (http://www.winwedge.com/)
I've used it for years for RS-232 connections to PIC data loggers. It works
just fine with the USB connection to the ARMmite. However, I've noticed that
connecting the USB cable while my Basic program is running on the ARMmite,
stops execution. This is due to a giant power glitch caused by the
switchover from local power to USB power. I haven't looked into it any
further but it is on my list to stuff to figure out. For now, I connect the
USB before I turn on the instrument power. Eventually, if I stay with the
ARMmite, I need the instrument to run without USB and then connect the usb
to download the data.
Pete

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: Getting data into a file

Post by YahooArchive »

> I've used it for years for RS-232 connections to PIC data loggers.
It works
> just fine with the USB connection to the ARMmite. However, I've
noticed that
> connecting the USB cable while my Basic program is running on the
ARMmite,
> stops execution. This is due to a giant power glitch caused by the
> switchover from local power to USB power.

You're not running into a power glitch, but what happens when the
ARMmite is connected to a PC, is that Windows goes out and does a
number of operations on the newly connected serial port. Among those
things (and it does it a couple times) is to toggle the DTR line,
which is used to RESET the BASIC program.

So for this to work that DTR connection to reset would have to be cut.
While it might be possible to change the FTDI driver, I doubt you
could get the source for it and doing Windows drivers is a non-trivial
task.

The power is diode OR'ed so that should not be an issue.

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: Getting data into a file

Post by YahooArchive »

Thanks for the quick reply Bruce ( I see that you're working on a Sunday
just like I am)

I can understand the DTR reset situation when running RS232. I don't know
how USB can control the DTR??

I briefly looked at the power input with a scope several weeks ago and saw
the glitch. I need to go back and look at it more carefully because I may
have been mentally impaired at the time.

Thanks

Pete

Post Reply