LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview: Send Data periodically and sequentially from ini file over com port

Solved!
Go to solution

Hi,

 

I want 2 things from my vi:

> First, read the data from .ini file 

> Second, send the data to com port periodically and sequentially.

 

For example, in the ini file i have the data as 

data 1 - $GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A

data 2 - $GPRMC,143724,A,2226.575,S,11955.982,E,0.000000,45.0,111217,005.0,E*64

data 3 - .

data 4 - .

data 5 - .

..... so on

 

Vi needs to send the data1 then data2 then data 3 every 1 second interval to the com port.

 

Any suggestions/examples are highly appreciated.

 

Thanks

Aniket 

0 Kudos
Message 1 of 5
(2,226 Views)

Hi aniketjha,

 

1. Read this "ini" file as an array of lines

2. send those lines to the COM port in a loop

 

What exactly do you have problems with?

Did you start to create a VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,203 Views)

Hi 

 

 

 

0 Kudos
Message 3 of 5
(2,190 Views)
Solution
Accepted by topic author aniketjha

Hi aniketjha,

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,178 Views)

Thanks Gerd for the heads up, for me i was also looking for how to retain the GPS coordinates as mentioned in ini file.

 

Now, i am able to simulate it successfully.

 

 

Regards

Aniket

0 Kudos
Message 5 of 5
(2,151 Views)