01-24-2018 08:27 AM
Good morning,
I expose to the usual situation: normally, it uses labview in order to program instruments, suppose that our instrument is an osculloscope, the usually thing, is that we use LabVIEW to control throught SCPI commands said oscilloscope. do not?
But now, if I have a sb-RIO with a FPGA where I have deployed a .vi cretated in labVIEW. Now our instrument is the sb-rio, ergo, our instrument is Labview already.
How could we control through an instrument through the putty or VISA.
Is there a way for LabVIEW to send the answer to a scpi command question?
i don't know if I explained well.
Thanks you.
01-24-2018 08:36 AM
01-24-2018 08:40 AM
How Can I do this?
Is there any docummetion of this?
Thanks.
01-24-2018 09:05 AM
Hi cristina,
using Google you surely will find a lot of SCPI documentations…
But why do you insist on using SCPI?
You could use any kind of network communication between your sbRIO and a LabVIEW host program running on a usual PC! And LabVIEW comes with a lot of example VIs and projects explaining how to do such communication…
01-24-2018 09:07 AM
I don't find in google how to do my own parser SCPI in Labview, I find how to do in C for example, but not in Labview.
01-24-2018 09:19 AM
01-24-2018 09:21 AM
Ok....
But my doubt is how i can recreate that in LabVIEW .....
😉
01-24-2018 09:49 AM
1. Setup a TCP/IP listener loop on the SB RIO.
2. Learn how to receive commands from the TCP/IP Read, preferably using the CRLF ending option.
3. Learn the functions in the String palette. You might want to really look at Scan From String and Search/Split String.
Once you have the data, it is all in how you parse it. You can even test that offline.
01-24-2018 09:51 AM
I want to do the communication with serial port, no with TCP/IP
Could i do the same with serial port communication?
Thanks.
01-24-2018 10:13 AM
@cristina.lopez wrote:
I want to do the communication with serial port, no with TCP/IP
Could i do the same with serial port communication?
That can work just as well. Learn to use the VISA functions and properly use the termination character.