LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combo box to code

Hi treadagon,

i´m so sorry, i forgot to connect the timeout shift register with the timeout input. Smiley Sad Please connect it, like shown in the picture. You can change the time in the for loop, now there is 10 connected. I use the timeout event to receive the data from your device, but because of i forgot to connect the value to it, this event will never execute. I use it, so that you can use the reset button while reading the data.

Hope it works now. Mike



Message Edited by MikeS81 on 06-17-2008 10:47 AM
0 Kudos
Message 41 of 62
(1,335 Views)
It works properly it executes right all the commands but i still do not see anything to the indicators. You think I shall put a delay like in the "Basic Serial read and write.vi"??? Or do you believe is something else wrong?
0 Kudos
Message 42 of 62
(1,327 Views)
Hi treadagon,
please use the attached example. Your indicators show only values if you receive the correct value from your device. Check if this value is correct.
Mike
0 Kudos
Message 43 of 62
(1,321 Views)
I still don't see nothing on the indicatorsand yet I believe that the PC maybe is to fast for the device. So I'm going to start experiment with the "delay before read" time. How can I change this delay? (or general the delays)
.
0 Kudos
Message 44 of 62
(1,301 Views)

Hi tredagon,

but now the timeout case will execute, right? You can remove the Wait function or you can connect a new number to it.

Mike

0 Kudos
Message 45 of 62
(1,299 Views)
I don't know if it works because I have no signs of this. The LED that I experimentaly connected to the output of the "string compare" it never blinks. I'm CERTAIN that labview recognize the ending string because in "Basic Serial Read and Write.vi" I saw the "\02999\03" in the display. So I thought it would be the delay. I saw in the vi you sent that the constant number has the "-1". If I wish to change it I must change it with a negative number?
0 Kudos
Message 46 of 62
(1,297 Views)

Hi treadagon,

the "-1" is only at the beginnig, the timeout case will never execute, but in the "start" event i set the timeout to 10msec. All your string constants has the "code display" active, is it correct? If i test your vi on my pc and i press the start button then the timeout case will execute. Can you see if your device react on your start command?

Mike

0 Kudos
Message 47 of 62
(1,295 Views)
My device it responds to ALL commands. I tested in different pressures in different modes, in cycle mode, it works PERFECTLY. I know it is correct because the cuff has an analog manometer connected so I see that the pressure I put is the actual I've chosen. All the commands have a tick in code display (which means it's active).

The problem is while reading only!
I never never get results! The indicators just stay empty!!

The delay applies AND in the timeout event? Do you think that it may need an additional delay there?


Message Edited by treadagon on 06-18-2008 06:10 AM
0 Kudos
Message 48 of 62
(1,287 Views)

Hi treadagon,

do you get some data back? Do you receive something in the timeout case?

Mike

0 Kudos
Message 49 of 62
(1,283 Views)
I connected an indicator to the output of the first visa read in the timout event. It shows some expected strings (I think) but they were just blinking in the indicator so I could not see them clearly so I'm not sure if the ending string (\02999\03) was displayed. And I don't see even a blink on the results indicators.


Message Edited by treadagon on 06-18-2008 06:27 AM
0 Kudos
Message 50 of 62
(1,279 Views)