Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Port Communication

Hi
My name is Joshua. I am fairly new to labview and i needed a great deal of help with my program. Before into the interface i made i should explain what it should. Basically all it needs to do is receive data through a RS232 from a microcontroller. the data comes in as the first four digits will be the energy used and the next six digits will be the time. there may or may not be space between the energy numbers and time. But thats the flow of data..energy used-time-energyused-time.....till the user hits stop. This should also let the user save the data. And also the data received should be converted to number and plotted. well the first four digits, since its the eneregy used, should be plotted in respect to time(each four digits are one data bit). It should keep plotting it as the data comes in till we hit stop. when saving the data should be split in two colums for example a column with all the energy used and the second column- the time. Next, it also should take the data that is recieved, only the enrgy used and multiply it with a constant that the user puts in. In addition the interface should also use the data that comes in, just theenergy used data-the four digit data, and compare it with a constant that user inputs and if the data is less or equal boolean indicator should show green. if not the indicator should turn red. Am attaching the additions that i made to the NI example. i dont think its write. it would be great if someone could really help me with this. thank you in advance for any help. This is really important i get this done soon. I could be reached at jvarghese83@gmail.com.
 
sincerely,
joshua varghese
 
0 Kudos
Message 1 of 3
(3,279 Views)
Also, i dont know if i should use a Null modem adaptor on one end...since the configuration of RS232 on one side isnt the same on the other.
0 Kudos
Message 2 of 3
(3,278 Views)

Hi Joshua

It looks that you forgot to add a while to your program for repeating the stuff.

You have to set the read and write switch now befor you start your vi.

The while should include all subvi's except init and close

And I would remove in this stadium the write to file of the timestamp, and also the other filewrites.

Just display on the screen and use a nul modem if your wires do not respond.

remeber rs232 means regular soldering 2->3->2

greetings from the Netherlands
0 Kudos
Message 3 of 3
(3,264 Views)