From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i communicate with AALBORG mass flow controller usinng labview?

Hi Everyone,

 

I have been trying to read data from my AALBORG mass flow controller via VISA. I have taken the RS485 output and used an RS485 to usb converter made by silicon labs .since I'm new to labVIEW i want know if there is any mistake in the block diagram that i have made. I have been able to read the data from an indicator made from PIC18F2520 through the same converter from this VI.

 

Along with the Screenshots of the block diagram and front panel i have also attached the screenshots of the write commands to be sent (from the master) to the mass flow controller from the manual. 

 

Thanks in advance for helping. 

0 Kudos
Message 1 of 10
(2,757 Views)

Hi KB,

 

there are several problems in your VI:

  • Don't open the port in each iteration inside the loop - especially when you close it only once after the loop!
  • NEVER USE BytesAtPort when there is a TermChar in use!

 

Simplified:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 10
(2,752 Views)

Hi Gred,

 

Thanks for the help. 

I tried reading from the MFC via the vi you suggested. i'm still not able to read anything. I'm wondering what is the reason. 

 

Thanks,

KB

0 Kudos
Message 3 of 10
(2,678 Views)

Hi KB,

 


@KB0710 wrote:

i'm still not able to read anything. I'm wondering what is the reason. 


When you "wonder what is the reason" you should check the error wire!

Which error do you get?

 

Do your serial port settings match with the device settings?

Is the serial port itself working correctly?

Can you check with some other software?

Best regards,
GerdW


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

Hi Gred,

 

I have checked the error. The error source is "VISA Read " with a code "-1073807339".

 

Apart from that every thing is fine. The port settings match the device settings. Also, i have tested it in a software provided by AALBORG instruments and it works fine. 

Is there anything that is should change in the VI?

 

Thanks & Regards

KB

0 Kudos
Message 5 of 10
(2,611 Views)

Hi KB,

 

do you append the correct TermChar when sending the command to your device?

(To my shame I forgot to show the display style-indication at the string constant, I set it to \-display mode to add the CR char at the end of the command message…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 10
(2,607 Views)

Hi Gred,

 

I changed the display style of the string control to '\' Display like you said and was able to get the response from slave.That was the one thing i had missed out.

Really appreciate you for guiding me through this.

 

Thanks

KB 

 

0 Kudos
Message 7 of 10
(2,591 Views)

Hi Everyone,

 

I have been trying to communicate with AALBORG Instrument's DPC mass flow controller. I am able to read the data from the flow controller via visa(the controller has a 485 output and i'm using an rs485 to usb converter to communicate). Now i want to be able to control the set point(digitally) using the same rs485 via VISA. I tried to find example online but it didn't help me much.

Since, I'm new to labVIEW (i'm using LabVIEW 14) I would really appreciate if someone helped me out with regards to this by guiding me to the right document or help me find the resources. 

Thank you in advance

KB 

0 Kudos
Message 8 of 10
(2,550 Views)

Hi KB,

 

please keep (related) things in one place instead of starting new threads for basically the same question!

 


@KB0710 wrote:

Now i want to be able to control the set point(digitally) using the same rs485 via VISA. … guiding me to the right document or help me find the resources.


Why don't you read the "commands" which YOU provided in your own first message?

It mentions the command to change the setpoint…

Best regards,
GerdW


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

Hi, could you share the new vi screenshot?

0 Kudos
Message 10 of 10
(1,963 Views)