LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB Sensor (VISA) display data on graph

I have a USB load cell that plugs directly into the computer via USB interface. I am having trouble getting the data from it to display on a graph... this is my first time working with VISA and USB, so I need a bit of guidance.

 

My ideal outcome from this assistance request is that the I end up with a graph on the front end showing load (Y) over time (X) that updates in real time.

 

This is the block diagram in its current state. Once this is complete and the graph is displaying as intended I'm going to try and output the data to an excel file.

 

Also, this is my first time posting, and I'm an inexperienced LabView programmer... so if there's any more information I can post to help with responses, please let me know. Also, if anyone can provide some known links to help me self educate (like lynda docs or similar), I'd appreciate it. Thanks everyone!

 

VISA Sensor Block Diagram.JPG

0 Kudos
Message 1 of 4
(3,559 Views)

You need to convert your string to a number.  Look in the String palette.

 

Then you need to wire that to a waveform chart.

 

You should change the conditional terminal of your while loop to Stop when True since you have a Stop button wired it.  Right now you have Continue While True, which means you have to illogically press the Stop button on in order to keep it running.

 

What is "lynda docs"?

 

I would recommend looking at the online LabVIEW tutorials for lessons.
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

0 Kudos
Message 2 of 4
(3,549 Views)

Just nitpicking here:

 

Your problem has nothing to do with USB.  Your device IS a USB devide but it has a virtual COM-port so for all intents and purposes you're using a good old RS-232 serial port.

 

Using USB in LabVIEW (as opposed to within the vendor driver as is the case here) is a lot more tricky.  I was hoping to be able to give some input but alas, this is not a USB issue.

0 Kudos
Message 3 of 4
(3,518 Views)

Intaris, you're absolutely correct. I appreciate the clarification. I was hoping to aid other begineer users who were trying to search for similar assistance by adding that word to the title.

 

RavensFan, I'm going to try that today and report back results. Thanks for the assistance.

 

0 Kudos
Message 4 of 4
(3,502 Views)