LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Drivers for Wireless Sensor Networks

Hey,

 

Error code 1073807202 typically indicates that NI-VISA isn't installed or needs to be repaired. I would suggest installing the newest version of NI-VISA, which is available here.  Install this and see if this helps resolve that issue. I'm currently working on an example piece of code that will read your MDA300 and MTS400 continuously. I'll see what I can get working and post it here.

 

Thanks,

David Pratt
Group Manager for Application Engineering Specialists | Automated Test
NIC
Message 61 of 154
(2,701 Views)

Hey,

 

So the attached VI should continuously acquire data from your MDA300 and MTS400 until you press the stop button, theoretically.  Without the hardware to test with, I could not confirm this.  There is one note to mention.  The drivers do not have a fully functional VI for actually reading data from a MDA300.  Whenever this model is selected, the VI becomes simplified and does not actually read any data from that.  It appears that no one has built and provided an actual working VI for reading the data from a MDA300 like that have for a MTS400.  Because of this, there is only one clust on the front panel and that is for the data returned from the MTS400.  I found other discussion forums where people said they used the MDA320 instead and got results back but the values were slightly skewed. This should be easily adjusted by applying constants or algorithms to the values to get the correct data.  Hope this helps!

David Pratt
Group Manager for Application Engineering Specialists | Automated Test
NIC
Message 62 of 154
(2,690 Views)

Thank you so much David. I could read data for all the VI's that I drew earlier after installing the VISA.

 

As for the VI that you sent, it shows the error 8003 after I run it. Do you have any idea what is incorrect?

 

Regards,

Kim

0 Kudos
Message 63 of 154
(2,677 Views)

Hey David,

 

I tried to run your VI in my lab just now and it could read from MTS400. When I click stop, an error ashowed up, error8001.

 

As I changed the MDA300 in your VI to MDA320, it just doesn't read data from neither MTS400 nor MDA320 after a long time.

How can I solve it?

 

As now, I can read from MTS400 already:

1. how can I save the data in a database or how can I veiw all the read data?

2. is it possible for me make a plotting chart for all the elements like the temperature, humitdy, voltage... data in labview?

 

Best regards,

Kim

0 Kudos
Message 64 of 154
(2,668 Views)

Hey,

 

Since the VI is made to read data from the MDA320, I'm afraid there's no way, unless you program and the VI to read from an MDA300, to read data from your mote.  The reason you don't see data on either mote is due to the error you're getting from the MDA320 VI.  That will stop the MTS400 from reading properly.

 

To write to a file or database it will matter what you're wanting to do with the data.  Since it's coming out as a cluster, you can unbundle that cluster, build arrays with the data elements inside the while loop, and then once you stop the while loop, you can write those arrays to a spreadsheet.  It really just determines on how you're wanting your data to look and how much data you'll be wanting to acquire.

David Pratt
Group Manager for Application Engineering Specialists | Automated Test
NIC
Message 65 of 154
(2,647 Views)
But David, I can read data for my MDA300 using MDA320 alone in LabView. But as I put it together with MTS400 as how you did it just doestn't read... Did I miss out any step?
0 Kudos
Message 66 of 154
(2,632 Views)

Hey Milky,

 

This code is ugly but see if it works for your setup.

 

Thanks,

David Pratt
Group Manager for Application Engineering Specialists | Automated Test
NIC
0 Kudos
Message 67 of 154
(2,621 Views)

Hi David,

I can't open the vi file that u sent this time. keep getting the message as attached, saying that it's created in newer version labview 8.6 as i'm using version 8.5...I wonder if i could open the previous vi file tat u sent,  y can't i open it this time? Can u pls advice?

Kim

0 Kudos
Message 68 of 154
(2,607 Views)
Sorry about that, I posted it in LabVIEW 8.6 and not LabVIEW 8.5.  Here is the file in a previous version format.
David Pratt
Group Manager for Application Engineering Specialists | Automated Test
NIC
0 Kudos
Message 69 of 154
(2,581 Views)

Thanks David,

I got error 1026 as attached as I run the vi you sent. How to fix?

David, I have some more queries... pls see my attachment Question.JPG. What are the purpose or benefits of the blocks that I circled?

As in attachment Doc2.doc, I could obtain results from both MTS400 and MDA300 without the circled blocks in this simplified version as u can see.

I need to understand, what are the importance of the circled blocks that you used? Can you explain pls?

 

Kim

Download All
0 Kudos
Message 70 of 154
(2,562 Views)