Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Driver modification problem

Hello,

I am trying to write a simplified code for a power meter using the drivers that the power meter came with.  I am having trouble decifering what is what and am overwelmed at the fact that there are 41 sub VI's associated with this driver.  I am a begining LabVIEW user so I am looking for guidance as to how I can complete this task efficiently without wasting more time. 

Thanks
0 Kudos
Message 1 of 16
(5,454 Views)
You should help us to try to help you by, for example, providing information as to:
  • what kind of power meter you are using
  • where did you get the drivers (is there a link where we can actually download them so we can see them)
  • what you're trying to change
0 Kudos
Message 2 of 16
(5,445 Views)
Hello All,

Sorry for the lack of details, I am new to this and appreciate your patients. 
Thanks for your reply
Rafael
0 Kudos
Message 3 of 16
(5,423 Views)
Well, I can't really tell you what each of those VIs do since they basically implement the meter's functionality. If you open each of those VIs and have the context help window open (Help -> Show Context Help) and place the cursor over the VI Icon in the upper right of the window you will see a description of the VI.

A basic sequence to read the power would likely be:



If you want to read the meter once a second you can do something as simple as this:




Message Edited by smercurio_fc on 05-21-2008 03:38 PM
Download All
0 Kudos
Message 4 of 16
(5,415 Views)
Hello Smercurio_fc, 

Thanks for all your help,

I came up with something that I kind of understand and might work.  The only problem I am having is that the intervals I timed are not exactly one second, How can I fix this?

I am getting power readings but the intervals are not exactly one second apart. 

Thanks
Rafael



0 Kudos
Message 5 of 16
(5,383 Views)
Hello Smercurio,

I tried running the first sample VI and I couldn't for the life of me figure out why it wasn't working. 

Also how was it that you determined those VI's you selected from the driver list where the ones we needed?

I have attached my set up and the error message

Thanks for your time


Download All
0 Kudos
Message 6 of 16
(5,377 Views)

I came up with something that I kind of understand and might work.  The only problem I am having is that the intervals I timed are not exactly one second, How can I fix this?


The Instrument I/O Assistant and Write to Measurement File add overhead, so that's probably why you're not seeing "exact" 1 second intervals.


I tried running the first sample VI and I couldn't for the life of me figure out why it wasn't working. 

You probably need to set the baud rate. The "PM100 Initialize" VI has a "baud rate" input, which defaults to 115200. Is this the baud rate you were using? That error code is not a LabVIEW error code. Could be a LabWindows error code. The only info I found said it meant "Data corrupt or stale". Doesn't make much sense for it to come from the Initialize VI.


Also how was it that you determined those VI's you selected from the driver list where the ones we needed?

The Initialize and Close are fairly standar functions. Then, I just looked for a VI that was named something along the line of what I was trying to do, which was to read. As I noted, opening the VIs and having the context help window open will help considerably, as it provides a description of the VIs.
0 Kudos
Message 7 of 16
(5,370 Views)
Hello Smercurio,

Ya, I did modify the baud rate but was still getting that error. 

Thanks


0 Kudos
Message 8 of 16
(5,349 Views)
I honestly don't know what else to suggest, as the Initialize VI simply calls that LabWindows DLL, and that error code doesn't mean much to me. I could find no documentation on it other than what I already mentioned.
0 Kudos
Message 9 of 16
(5,276 Views)
Hello,
Can you verify that you are using the right VISA runtime engine 3.0?
Have you followed the entirety of that readme for that driver and place any dll in the right directories?
Christian A
National Instruments
Applications Engineer
0 Kudos
Message 10 of 16
(5,247 Views)