LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combo box to code

Do you think that a delay is needed in the timeout event?
The blinking is a matter of no delay?
0 Kudos
Message 51 of 62
(1,411 Views)
Hi treadagon,
i inserted an array which shows all received string in the timeout event. Normally you shold see nothing in your indicators, because only if you receive the correct string the case true will execute. I thought i made it like your example.
 
See the attachment please.
Mike
0 Kudos
Message 52 of 62
(1,411 Views)
Well during the measurement I didn't see anything in the array. When I put a single indicator at the output of the 1st visa read I saw some strings blinking (almost unable to read them). I expected to see a blinking to the result indicators. Perhaps this blink to the result indicators was to fast for the eye to see.
0 Kudos
Message 53 of 62
(1,404 Views)

Hi treadagon,

the output from the first VISA read is what i add to the array, so you should see something. I´m not sure, but try to change to "code display".

Hope it helps.
Mike

0 Kudos
Message 54 of 62
(1,399 Views)
No... I don't see anything, not even a blink. I change it to code display from in the block diagram AND in front panel... But nothing again. I've done the measurement twice.
0 Kudos
Message 55 of 62
(1,396 Views)
With this one I've managed to prove that I get the \02999\03 (the \02 and the \03 are appear as little squares). So the case MUST become True. When I put a numeric indicator to VISA write at the return count output it's always 0. So what's going on IN the case structure?
Download All
0 Kudos
Message 56 of 62
(1,386 Views)
Should we check another way if the string compare actually works? Shouldn't the VISA write numeric indicator show some non-zero value? I mean perhaps the command isn't going to VISA at all!
0 Kudos
Message 57 of 62
(1,357 Views)
Hi Treadagon,
if you think the case has to execute, please check if the string constant has the correct value. Maybe this is "code display"! Should your device do something if you send the command, something you can see without reading from VISA, maybe a LED?

Mike
0 Kudos
Message 58 of 62
(1,353 Views)
While change a string constant from normal text to codes display it automatically places the "\". Also if I copy/paste it Labview automatically replace the little squares to \02...\03. After all in this display it recognizes all the other commands. Following your orders I experimented with the attached. I was expecting to see even a little blink in the LED but nothing. I've experimented also to give the order to open the case by a button because the device keeps the last measurement till retake or reboot but nothing again. It's the last step to finish the N(on) I(nvasive)B(lood)P(ressure) meter! What should I do next?

I know I have become EXTREMELY tiresome to you. I understand that you are busy enough to answer all the time. You are my only hope to graduate. Smiley Indifferent I don't want to do everything for me. I experiment myself some things. Please help me a little little bit more.
0 Kudos
Message 59 of 62
(1,340 Views)

Hi treadagon,

i created an example for you with which you can check the code. I changed all VISA send and read functions with notifier. The other vi receives the send data and allows to send some data back, to "simulate" your device. As i can see it should work like expected. I hope it makes clear what happens in your code.

Mike 



Message Edited by MikeS81 on 06-20-2008 10:08 AM
Download All
0 Kudos
Message 60 of 62
(1,330 Views)