LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

communication using VISA in two seperate VIs

Hi, Iam very new to labview.So I have made a wide search to solve this problem.But all went to vain.I have two seperate VIs.Both are attached below.I used queue function to easily communicate with two VIs.But now my intension is to interface these two VIs using VISA module.That is read from sender.vi using VISA(COM2) and display it in receiver.vi(COM3).Using a modem cable as there is no hardware with us.Iam totaly confused where to place the VISA module and make it work.Hope any one can help me. Regards, Hasini

Download All
0 Kudos
Message 1 of 14
(3,428 Views)

Well, you'd put the a VISA Read in the receiver and a VISA Write in the sender...

 

Or am I missing something?

0 Kudos
Message 2 of 14
(3,420 Views)

Hi,

    I tried out as per your suggestions.I don't know this logic works or not.The attached VI showing errors while I tried to connect to the numerical value with VISA.As VISA can read and write only string buffer.How to make them work?

Download All
0 Kudos
Message 3 of 14
(3,397 Views)

That code makes no sense. Put your read and writes inside the loops. Why would you place the enqueue and dequeue inside but not the VISA functions? Why even have the queue functions? Did you even write the original code or is something you just found and really don't understand?

 

To send/receive numerics, you can simply use the conversion functions on the string palette.

 

0 Kudos
Message 4 of 14
(3,392 Views)

Iam confused how to connect read and write VISA modules in two seperate VIs.Using queue function it is working properly.But I have to do serial port reading between two VIs.please help.

0 Kudos
Message 5 of 14
(3,389 Views)

Is it possible to read from one VI and write it in another VI using VISA??

0 Kudos
Message 6 of 14
(3,379 Views)

You don't have any serial port configuration. Please review the examples that ship with LabVIEW regarding serial port functions. I also don't understand why you have the queue functions in there.

0 Kudos
Message 7 of 14
(3,364 Views)

Hi,

    I made the following changes to my VIs.Now it is working properly,only when I select the same reference in both the VIs(that is COM1 & COM1 or COM2&COM2).But it is not working when I select COM1 in SS1.vi and COM2 in RR1.vi.Why this happens??Can anyone please suggest some way to solve this issue.

Download All
0 Kudos
Message 8 of 14
(3,352 Views)

Hi Danil,

 

why do you create new threads with a new user name?

Are you angry no one will answer in your original threads?

Don't try to be smarter than the forum!!!

 

Haazini, when you are a member of the same group as Danil then you should mark this in your thread.

You only offend all the people trying to help, when different user names try to ask the same questions!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 14
(3,346 Views)

Hi Gerdw,

                Me and danil is working in the same team.We togather trying to achieve the thing.Iam extremely sorry if we are annoying you.Sorry.Have you had any suggestion for this issue?

0 Kudos
Message 10 of 14
(3,336 Views)