07-21-2021 12:06 AM
Hi,
I am currently using USB-RS232 to get data to excel from the instrument but I am getting all 8 channel data only in one channel. But I need all different channel data go into 8 different row. My excel file and VI is attached.
07-20-2021 11:44 PM
Hi,
I am using LabVIEW for first time.
I am currently trying to send command to my instrument device using LabVIEW visa but when I write in the normal command window no response is coming. I tried fining the solution but no luck yet. I want sent command "WFreadall". I used serial example "Continuous Serial Write and Read". In addition when the device is debug mode its providing me value. So I am not sure what modification need to do to communicate with the device.
07-21-2021 12:52 AM
You haven't asked any specific questions here.
At a minimum this is the information we will require to help you:
- What device are you communicating with
- a user manual for this device
- Attach the code you have already written (the actual VI, not pictures)
07-21-2021 01:29 AM - edited 07-21-2021 01:31 AM
Hi Intern,
@InternlABVIEW wrote:
I am currently using USB-RS232 to get data to excel from the instrument but I am getting all 8 channel data only in one channel. But I need all different channel data go into 8 different row. My excel file and VI is attached.
You better use AutoCleanup before posting your VI…
And you definitely should watch this video before starting again!
(No need to start two threads for the same problem!)
Conclusion:
Try this:
07-22-2021 02:14 AM
Thank you for your reply but I am still getting the same result like before. All 8 channels data coming as a single row. But I have total 8 channels and want to get data in 8 different rows. Just wondering is it possible to send same command continuously and record the data in excel or text file.
I tried sending command. But it’s not working. I have to send command “WFreadall” which is ASCII command.
Lastly is it possible for labview to send 8 different commands continuously to 8 different channels and get the data. Thanks
07-22-2021 02:31 AM
Here are the document you have requested. I am trying to send command to the device through Labview but no response. Please look page 43&44 for the command manual. Thanks
07-22-2021 02:48 AM
Hi Intern,
@InternlABVIEW wrote:
I am getting all 8 channel data only in one channel. But I need all different channel data go into 8 different row.
You just need to parse the received messages and sort the data into their individual rows/columns/arrays!
Each line contains the channel number, along with the sensor data:
@InternlABVIEW wrote:
21/07/2021 12:58
Channel 05 Converting pH sensor InBuff= 0.000 Converted hex value to AD420 = 0000
Read the device response and parse the values as needed!
07-22-2021 04:24 AM
That’s what I am struggling to do for few days and struggling to find anything or examples that will allow me to it. Always coming data in a sane rows.
07-22-2021 04:43 AM - edited 07-22-2021 04:44 AM
Hi Intern,
@InternlABVIEW wrote:
That’s what I am struggling to do for few days and struggling to find anything or examples that will allow me to it. Always coming data in a sane rows.
You found no examples on how to parse a string into numeric values?
See this:
07-22-2021 05:46 AM
No examples of getting data of different channels with different command. I have an idea but not sure how to execute that. I am a new Labview user. I was thinking of getting 8 data rows for 8 different channels which will runs with 8 specific command 😅.