LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display scope waveform & export data

If your "set "config" case is executing, then the "run test" case has to be running. You might have a couple problems though that you should use basic debug tools to determine. First, put a probe on the boolean array that is connected to the For Loop. Also put a probe on the error in to the case statement inside the For loop. The array has to have a least 1 element and there can be no error. If all is correct, set a break point on Scope Setup. When the VI pauses at this VI, you can step into it and see if the subVI is running and if you have passed the correct data to it.

After running the initialize function, you should be able to run any of the other scope functions because you now have a valid VISA reference.

Message 11 of 18
(1,351 Views)

Could you check to see if this looks correct?

Found this error msg from 'Error In" probe.

Error -1073807265 occurred at VISA Write in HP8133A Output Chanel Selec.vi->Pulse Channel with Load and Save_no event_v09.4.5.vi

Possible reason(s):

VISA:  (Hex 0xBFFF005F) No listeners condition is detected (both NRFD and NDAC are deasserted).

==================================
The Error msg, displays after executing, 'set config' case.
Does this mean that the scope is inactive? I don't understand why...
 
Message 12 of 18
(1,349 Views)
No, that's not correct. You should have no errors. It looks like you are generating an error one of the times when you are writing to the HP8133.
Message 13 of 18
(1,347 Views)
Hi JJlee
have you tried to communicate with the instruments via instrument assistant ?

That way you get a basic functional BD code after building,  the assistant allows you to attempt to use  test commands  to communicate with  instrument
with the options:
 trace and parse
write
query and parse
read
etc

regards
xseadog
Message 14 of 18
(1,337 Views)
Hi xseadog,
 
No, I have not tried...instrument assistant...
where can I find this?
I don't get any error checking with MAX.
 
BR,
JJ
Message 15 of 18
(1,322 Views)
sorry for the late response...sick for last 2 days...recovering...
 
'user input data' and 'test settings' did not show the correct boolean logic selected in the front panel (using probe in the block diagram)...I don't know why this is the case...should I change the front panel value as the default value? (i.e. show results, re-init, math setup)..
 
By the way, how can I make the 'save data' case work, so that I can save the scope x,y data points in a file?
 
 
Message 16 of 18
(1,317 Views)
jjlee,
What isn't working about the save data state? Also, you have made a vi that isn't attached in your code. It is the "write to spreadsheet file - mod.vi". Go ahead and post the complete code. Thanks!
 
Chris C
Applications Engineering
National Instruments
 
 
Message 17 of 18
(1,301 Views)

Hi Chris C,

The main goal of this 'save data' case is to;

1. generate header info.

2. collect (x,y) data points from waveform

3. save both header info & data points in a file

I suspect that not being able to generate a proper waveform display in 'run test' case may prevent the 'save data' case(?)

here is the new lib with that missing file included. Thanks!

 

Message 18 of 18
(1,289 Views)