10-25-2018 08:59 AM
Hello. First of all, forgive my ignorance. I have to include one feature to my project. I am supposed to send spesific commands to my code through serial port and depending on the command, I have to execute a test. The result of this test have to be read from serial port again. For this purpose, initial idea was to implement Real Term or Tera Term but I came to the conclusion that VISA would be much simpler to implement. However, I am still having problem to grasp the some stuff 🙂
I want to read the output as 'Pass' or 'Fail'. Is it possible to read the result of my tests directly?
Would it be possible to integrate this Visa with TeraTerm or Real Term?
Thank you!
10-25-2018 09:14 AM
You can read from VISA 4 bytes.
This will be the answer
10-25-2018 09:17 AM
Sounds like you need to look under Instrument IO -> Serial pallet
There you will find the controls for Serial port, including configuring (open), writing and reading.
I am assuming if you know how to use Tera Term, you will know how to open and configure a serial port. Feel free to browse the Labview help and examples on the topic.
10-25-2018 09:22 AM
Thank you! But in this case, how can I change the message as 'Pass' or 'Fail'? I mean what I do not get is that how can I control the output message to be shown in Visa Read?
10-25-2018 09:25 AM
Thank you @Frozen! Yes I know this actually but still I do not know if Visa is directly linked to Tera Term. Can Tera Term get directly the message in Visa Read or send directly to Visa Write?
10-25-2018 09:32 AM
In any case you send to VISA the string and get from VISA the string.
And you can build any string
10-25-2018 10:13 AM
I assume the output of this test is NOT "pass" or "fail" but you want to convert the output to that? You need to understand what the test is returning. Whoever created this test should tell you what to expect. That's probably the toughest part of this exercise. (Once you get the hang of VISA in LabVIEW - which we can definitely help you on!)
10-25-2018 10:46 AM
Thank you so much Billko!
Actually, I know what it returns. It basically communicates with the power supply and if it is able to establish a communication with power supply in the predefined time interval, it returns true. I was thinking either I could evaluate the test before Visa and send final result as the message 'Pass' or 'Fail' to VISA OR the message which contains 'time' only.
10-25-2018 11:02 AM
@Rightphalange wrote:
Thank you so much Billko!
Actually, I know what it returns. It basically communicates with the power supply and if it is able to establish a communication with power supply in the predefined time interval, it returns true. I was thinking either I could evaluate the test before Visa and send final result as the message 'Pass' or 'Fail' to VISA OR the message which contains 'time' only.
I think you are confusing what you expect to receive in your VISA Read and what you want to display on the screen to the user.
Why do you need to send the instrument the "Pass" or "Fail" result?
If you receive the proper response in the proper amount of time then it passes.
10-26-2018 02:47 AM
I think you are right. The result of the test should be just displayed on the screen, not to be sent. I will need to send the data of the test though. In this case, I can put an additional indicator to display the result of test.
Thank you all so much for your help!