LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

trouble exporting two waveforms to excel

OK, I have two potentiometers that are giving me data on how many degrees they have been turned. I used the calibration on the DAQ assistant. I need this data exported to an excel sheet. 

 

I had it going with one potentiometer and everything was dandy. Then I added my second one and I've got a mess. The only way I can get my data it shows up in an excel sheet but it's not calibrated, it's just the voltage readings instead of the degrees like I needed. 

 

What am I doing wrong, I feel like this should be much simpler than I'm making it. 

 

Thanks!

Download All
0 Kudos
Message 1 of 7
(2,951 Views)

Di you define the task that will generate the data? Is the task suppose to have 2 channels or 1? In the example you gave (I have no task defined) it showed that you are extracting only from a single channel. You might want to reconsider how you do the program. I suggest you generate the code associated with the express vi. It tells you a lot on what it was created.

0 Kudos
Message 2 of 7
(2,942 Views)

I'm sorry, but I have no idea what all that meant. I don't think I have any tasks? I don't even know how you would go about making any. And I don't know anything about express vi...

0 Kudos
Message 3 of 7
(2,921 Views)

A piece of advise, since you are using a potentiometer a good method to obtain an angle measure is to setup a voltage task, creating a custom scale to relate voltage with angles and then save the data to a file. The export data to excel is suppose to store the displayed data of the graph to excel but you can also use a write to measurement file. I don't know if you noticed but the DAQ Assistant in the attachment is setup to measure strain, which is not close to what you are looking for. I hope this helps

Alejandro C. | National Instruments
0 Kudos
Message 4 of 7
(2,912 Views)

OK, thanks, I'll look up the voltage task thing. I have never done that before. I'm not sure how yet... 

 

And yes, it's set up to measure strain because that's what the NI support person told me to do over the phone. The method we were using at first was extremely complicated, and I've since figured out how to simplify it a lot, but since I don't really know what I'm doing I left some things the same because I knew they worked. 

 

If you happen to have an example of what you're talking about, that would be amazing. 

0 Kudos
Message 5 of 7
(2,907 Views)

OK, I tried doing a new task to measure voltage, but my device isn't showing up. Here's what all I have: 

1 NI cDAQ-9178

4 NI 9237

25 or so NI 9499 

25 or so RJ50 cords

 

Does anyone have any advice for this?

0 Kudos
Message 6 of 7
(2,890 Views)

Check that the NI device loader is running (follow the instructions in this link), Change to a different port and try not to use a HUB.

Alejandro C. | National Instruments
0 Kudos
Message 7 of 7
(2,874 Views)