How to import 3000 instructions into a program?

Hi,

I have a question about importing 3000 lines of data into serial terminal. Can someone help me with it? Thank you!

Now I am running a program that takes input from serial terminal to set up. For example I need to write “set 0 8 44” and hit “enter” to set up the first instruction, then set up the next instruction in the same way.

The problem is that I have more than 3000 instructions to input, and all the instructions are generated by another program.

I wonder whether or not there is a quick way to transport all the data generated by another program into Arduino serial terminal automatically?

Thanks,
Jack

Use a different serial terminal which can either take copy-paste or upload from a file. There are many available.

MorganS:
Use a different serial terminal which can either take copy-paste or upload from a file. There are many available.

Thank you Megan. Ultimately, what I want to do is transferring the data automatically rather than copying and pasting manually. Is there any kind of serial terminal that does this please?

Hello and welcome.

Maybe you should tell more about that mysterious program...

guix:
Hello and welcome.

Maybe you should tell more about that mysterious program...

Hi,

It's a program called PineBlaster that can be downloaded here.
http://labscriptsuite.org/hardware/pineblaster/

It has another name called pseudoclock. It takes in "set i j k" in serial port to set up the clock. And it is impossible to copy and paste during the experiment. So I wonder whether there is a more efficient way of setting up the clock or not.

Thanks,
Jack

I have looked at your link but I am still no wiser as to what you actually want to do.

You say there are 3000 lines of data.
Where are they?
Are they in a text file on your PC?

What do you want to do with the 3000 lines ?
Do you want to incorporate them as source-code in an Arduino program ?

OR, do you want to send them to an Arduino one at a time so that it can act on them ?

...R

Robin2:
I have looked at your link but I am still no wiser as to what you actually want to do.

You say there are 3000 lines of data.
Where are they?
Are they in a text file on your PC?

What do you want to do with the 3000 lines ?
Do you want to incorporate them as source-code in an Arduino program ?

OR, do you want to send them to an Arduino one at a time so that it can act on them ?

...R

Hi Robin,

So the 3000 lines of data are generated by another program called LabVIEW. Each minute it will generate one set of 3000-line-data. I need to input the data as instructions to set up my PineBlaster program.

I think I know the answer now. LabVIEW has a function that talks to the Serial Terminal, but I'm not sure whether it talks to the Serial Terminal that I'm using (MPIDE) or not. I will try it out first.

Thanks,
Jack

JackZ:
So the 3000 lines of data are generated by another program called LabVIEW. Each minute it will generate one set of 3000-line-data. I need to input the data as instructions to set up my PineBlaster program.

I can't quite see how you manage to leave out all the useful information and include the irrelevant stuff.

It seems to me the number of items (3000) is completely irrelevant. There is just new data once per minute.

What is completely missing is a description of how the data is supposed to get from labVIEW to PineBlaster and what role an Arduino might play in all of that.

...R

LabVIEW has a function that talks to the Serial Terminal, but I'm not sure whether it talks to the Serial Terminal that I'm using (MPIDE) or not.

That's nonsense. Labview has a function to talk to a serial PORT.

The Arduino needs to be what is listening to that serial port.

Labview can send data directly to the arduino, from a serial port.

Maybe this will help:

guix:
Labview can send data directly to the arduino, from a serial port.

Maybe this will help:

https://www.youtube.com/watch?v=VpxBTtvCklo

Yep. I just found that out. Thank you all for your help! :slight_smile:

JackZ:
Yep. I just found that out. Thank you all for your help! :slight_smile:

You may find some useful stuff in serial input basics

...R