Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

no data recieve

I change a VI to have only a part who is able only to read Data from a serial port, and if I recieve ^Q the VI should stopp, the probleme is that my VI dont recieve anything I have 2 serial port in my computer and I sent ^Q but my VI dont recieve anything.
where are the problem.
thanks
0 Kudos
Message 1 of 10
(4,457 Views)

Hi cybername,

you close your visa resource in your while loop, so it will be closed in the first iteration. Move the close block to outside the loop.

Mike



Message Edited by MikeS81 on 07-29-2008 11:51 AM
0 Kudos
Message 2 of 10
(4,455 Views)
I chnge it and it dont work
0 Kudos
Message 3 of 10
(4,452 Views)

Hi cybername,

how did you connect your both serial ports? Which program do you use to send characters?

Mike

0 Kudos
Message 4 of 10
(4,444 Views)
I connect com1 to my VI and my programm sending at port com2
I am using Digicom to send
I have another VI to write and I have no problem with it and Digicom can reab what I sent
0 Kudos
Message 5 of 10
(4,442 Views)
How could you know the program does not receive anything? You don't have anything in the LabVIEW program to show what might be read? Put an indicator on the VISA Read output. What is the purpose of the '^' character. I hope you don't expect that to be the CTRL character.
0 Kudos
Message 6 of 10
(4,435 Views)
my VI is a loop it will go to ende when it recieve ^Q I sent ^Q with my programm Digicom and the loop dont stop
I just test it and I see (read byte) that my VI is recieving 1 byte but when I send ^Q my loop dont stop
thanks
0 Kudos
Message 7 of 10
(4,432 Views)
You are typing the keyboard character '^' (above the 6) and the keyboard character 'Q'? That should be two bytes. You should be keeping the received data in a shift register and appending new data to the old. Do the comparison to the data in the shift register.
Message 8 of 10
(4,430 Views)
thank you  I will try to do like you have said (I dont know why but I will read the doc)
0 Kudos
Message 9 of 10
(4,427 Views)
I dont dont know how can I make it, but I will read the doc.
thaks
0 Kudos
Message 10 of 10
(4,422 Views)