LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial communication with generator and NI USB 6008

Solved!
Go to solution

I link my computer with an other screen (an other computer), VisaWrite doesn't show any error. But I don't see anything on this screen for port COM which is connected to my computer. Normally, I should see the counter value on this screen because I did serial communication. I don't understand what I should add to my programm to work correctly.

0 Kudos
Message 11 of 15
(724 Views)

Hi ki4,

 

I link my computer with an other screen (an other computer), VisaWrite doesn't show any error. But I don't see anything on this screen for port COM which is connected to my computer.

Why should a "screen" show anything just because you connect a serial communication cable?

There has to be a tool (aka "some software") reading the COM port of that other computer and write that data to the screen!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 15
(722 Views)

We can't not configure all that on labview in my computer? and when I run the programm, the port is show on the screen and show the values counter? I can not add something to my programm to send values counter to this screen?

0 Kudos
Message 13 of 15
(717 Views)

Imagine for a moment that it's possible for me to write some code on my computer, and then force your computer, without you installing anything or trying to receive anything, to do various things.

 

This probably wouldn't be so great for security...


GCentral
0 Kudos
Message 14 of 15
(711 Views)
Solution
Accepted by mimi99

If you have created a VISA serial port link between two computers with LabVIEW installed, you should be able to open LabVIEW on the second computer and run a While loop with the VISA Read for the appropriate port (on the 2nd computer - it may not be the same name as the first) and receive the message.

 

Is this the expected result? If so, has it worked?


GCentral
Message 15 of 15
(703 Views)