07-19-2019 02:12 AM
Can I run this .vi project for my aim?
07-19-2019 02:19 AM
Hi bestecf,
Can I run this .vi project for my aim?
Yes.
In your "System.jpg" the controller "Inficon VGC501" is visible. The producer of that controller provides a manual for that device on its website. Download the manual, read it, and follow the descriptions given in chapter 5…
07-26-2019 06:49 AM - edited 07-26-2019 06:51 AM
I'm going to go step by step onto manual review with your help.
1) I have a lv project which is read_vacuum.vi
2) I connected 2 usb cables to my computer.
3) Device manager doesnt give error about connection. But it shows 5 COM ports. (4 ATEN which is rs232 to usb converter device, 1 SERIAL PORT)
4) LV project has an error.
5) Then, I read first part of manual. page 65 , Should I write a COM command to while loop? / Which port should is read ?
I'm beginner sorry. ![]()
07-26-2019 07:13 AM - edited 07-26-2019 07:14 AM
Hi bestecf,
1) I have a lv project which is read_vacuum.vi
That's just a VI, but no "project"…
2) + 3)
Totally irrelevant here…
4) LV project has an error.
It's not the "project", which has an error. It's the VI!
Just double-click the error to see the error in the block diagram…
5) Then, I read first part of manual. page 65 , Should I write a COM command to while loop? / Which port should is read ?
That "COM" command is explained on page 70. Read your manual…
Use the serial port which is used to connect your device with your computer.
General suggestion: It is not very nice to attach just images of VI(s). Attach the real VI…
07-30-2019 09:05 AM - edited 07-30-2019 09:13 AM
I connected to INFICON VGC501 with USB cable. There is no error but "dataout" didnt show anything from serial port. And I should add ASCII with 3-character mnemonics. (with VISA WRITE)
How do I send the following line to port?
Transmit: COM [,1] <CR>[<LF>]
07-30-2019 09:23 AM - edited 07-30-2019 09:24 AM
07-31-2019 01:51 AM - edited 07-31-2019 01:52 AM
@GerdW wrote:Simple as this:
Thanks to show your simple example.
If you check data_format.png in the previous, you may help me about writing ASCII with 3-character mnemonics. How to send it ? For example: COM [,1] <0D>[<0A>] hex format or only COM [,1] 0D0A ? And also i'm confused of entering byte count to VISA WRITE. 32 or 64, according to what.
Sorry for my questions ![]()
07-31-2019 01:57 AM
Hi bestecf,
How to send it ? For example: COM [,1] <0D>[<0A>] hex format or only COM [,1] 0D0A ?
Do yu see my snippet?
I entered the command "COM<0d><0a>" in the string constant. (Take care of choosing the right display style…)
And also i'm confused of entering byte count to VISA WRITE. 32 or 64, according to what.
As your device answers with a trailing LF (LineFeed, <0A>) you simply have to request more bytes than you expect in the answer string. In the snippet I choose 9, you may also request 32, 64, or even 999 bytes…
07-31-2019 02:31 AM - edited 07-31-2019 02:35 AM
(Take care of choosing the right display style…)
I understood better, thank you now it's ok. (codes_display.png) When I change display style," \s\n" is added by .vi.
As your device answers with a trailing LF (LineFeed, <0A>) you simply have to request more bytes than you expect in the answer string.
Thank you GerdW for your elucidating.
07-31-2019 02:43 AM
Hi bestecf,
I understood better, thank you now it's ok. (codes_display.png) When I change display style," \s\n" is added by .vi.
No, you don't understand that at all!
Other things: