LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA

Hi, 

 

I'm trying to design a vi that will take information in a HEX format from Docklight and output blood pressure and heart rate. 

 

I've included my requirements as I understand them and my inital attempt at the vi (not very complex I got lost fairly early, and don't have much experience understanding VISA requirments). 

 

I want to be able to "read" through the file (output HEX) and determine when the value is 67 because this is the indication that the sensor has acheived a sucessful measurement. The next three values are the systolic pressure etc. I know how to take the output values and use them as I want. 

 

What I need to know is:

     Do I have to change my valued from HEX in order to read them in the VISA? 

     How do a create a loop that reads all the value until it reaches 67?

     How do I initalize a new loop starting at 67 and have it output these values in a way that I can display easily on the front panel? 

 

I'm pretty sure this is straightforward I'm just still getting used to understanding VISA function. 

 

 

Blood Pressure vi.PNG

0 Kudos
Message 1 of 3
(2,399 Views)
What you are saying does not make much sense. You say you want to read from a file but VISA has nothing to do with file I/O.
0 Kudos
Message 2 of 3
(2,390 Views)

I assume you are using Serial VISA?

 

Check out this tutorial:

 

https://learn.ni.com/learn/article/getting-started-with-instrument-control-hardware-and-labview

 

Br,

 

/Roger

0 Kudos
Message 3 of 3
(2,380 Views)