LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PH measurement Machine

Please design a control software in LabVIEW with an interface like picture:

Wishnu_1-1689596940555.png

  • Software should allow user to input file name for recording, select serial port for PH electrode.
  • Software should allow user to change the sample ID as an integer.
  • Once user click start button, software should get reading from PH port every second, and display
    PH level against time on plot continuously.
  • Once user click stop button, software should stop reading from PH port, and save current
    sample id and last PH value into a csv file with user specified file name.
  • For the PH sensor, if you send “1” to sensor on serial port, it will send back PH value as float
    number immediately. You can refer following Arduino code as a simulator.

Wishnu_0-1689596858691.png

 

0 Kudos
Message 1 of 8
(1,115 Views)

And what have you created to start this project?

I see only requirements.

0 Kudos
Message 2 of 8
(1,111 Views)

I'm just a beginner in LabVIEW, I got this course project. I'm trying to solve it, but I couldn't able to figure out how to make the block diagram. Can you help me with it?

0 Kudos
Message 3 of 8
(1,101 Views)

@Wishnu wrote:

I'm just a beginner in LabVIEW, I got this course project. I'm trying to solve it, but I couldn't able to figure out how to make the block diagram. Can you help me with it?


It sounds like it's a starter project on labview to get you going. 

Make the front panel, and from there people can assist you. 

No one will just do your homework for you 

0 Kudos
Message 4 of 8
(1,080 Views)

I have already created the front panel, just I need to know how to make the VISA serial connections with the conditions.

 

Wishnu_0-1689601537315.png

 

0 Kudos
Message 5 of 8
(1,070 Views)

@Wishnu wrote:

I have already created the front panel, just I need to know how to make the VISA serial connections with the conditions.

 

Wishnu_0-1689601537315.png

 


If you open the context help (ctrl + h), it will tell you what needs defining to make each of those functions work.

0 Kudos
Message 6 of 8
(1,065 Views)

Hi Wishnu,

 


@Wishnu wrote:

I need to know how to make the VISA serial connections with the conditions.


Watch this video to make it right from the beginning!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 8
(1,050 Views)

Try Chat gpt 

 

Unfortunately, as a text-based AI language model, I'm unable to directly create visual interfaces or design LabVIEW programs. However, I can provide you with a detailed description of how you can create the LabVIEW control software you described. You can use this description as a guide to implement the software yourself in LabVIEW.

Here are the steps to create the LabVIEW control software:

  1. Start by creating a new LabVIEW project and a new VI (Virtual Instrument) within the project.

  2. Open the Front Panel of the VI. This is where you will design the user interface.

  3. Add the following controls and indicators to the Front Panel:

    • A text input control for the file name. You can use a string control for this purpose.
    • A drop-down or list box control to select the serial port for the pH electrode. You can use a string control or a combo box control for this.
    • A numeric control for the sample ID.
    • A start button and a stop button, which can be represented using a standard push button control.
    • A waveform graph control to display the pH level against time.
    • An indicator to display the current pH value.
  4. Arrange these controls and indicators in a visually pleasing manner, referring to the provided picture as a guide.

  5. Now, switch to the Block Diagram of the VI. This is where you will implement the functionality of the software.

  6. Add the necessary code to handle the start and stop button clicks.

    • For the start button, when clicked, you can use a while loop to continuously read the pH value from the selected serial port and update the pH level against time on the waveform graph. Use the "Read" function or a suitable LabVIEW serial communication library to read the pH value from the serial port. Display the current pH value in the indicator.

    • For the stop button, when clicked, exit the while loop to stop reading the pH value from the serial port.

  7. Implement the file saving functionality.

    • When the stop button is clicked, use the "Write To Spreadsheet File" function or a suitable LabVIEW file I/O library to save the sample ID and the last pH value into a CSV file with the user-specified file name.
  8. Complete the wiring of the controls, indicators, and code blocks on the Block Diagram, connecting them appropriately to achieve the desired functionality.

  9. Save and run the VI to test the control software. You can enter a file name, select a serial port, and input a sample ID before clicking the start button to initiate pH reading. Clicking the stop button should stop the reading and save the data to the specified CSV file.

Remember to configure the serial communication settings in LabVIEW to match the requirements of your pH sensor.

Note: LabVIEW provides built-in serial communication functions and libraries that can be used for reading from and writing to serial ports. You may need to install additional LabVIEW libraries or drivers specific to your pH sensor if required.

I hope this guidance helps you create the LabVIEW control software you need.

0 Kudos
Message 8 of 8
(1,026 Views)