LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem using GPIB and labview

Solved!
Go to solution

Can you save it in LV 2012 and attach the VI .. I can help as much as possible working within your controls.

CLD | CTD
0 Kudos
Message 11 of 31
(3,009 Views)

Chris,

 

Thanks for your help. Attached you'll find my VI saved into 12.0 version.

 

Regards

0 Kudos
Message 12 of 31
(3,005 Views)

For the sake of completeness can you please send the VIs used, such as Initialize, Close and Configure Standard Waveform..

CLD | CTD
0 Kudos
Message 13 of 31
(2,998 Views)

Thank you!

Download All
0 Kudos
Message 14 of 31
(2,994 Views)
Solution
Accepted by topic author Ivanhe

Since I don't have the lvlib of the Tek SW, nor do I have the physical devices, I can't check this, but this should work.

 

Note: Due to the OR function with the error cluster, it will stop on EITHER error or the "Stop" button

Note: You may have to reload the Tek VIs or just replace the VIs from your machine into this one due to dependencies of the lvlib not being in my machine

 

Let me know what the outcome is.

CLD | CTD
Message 15 of 31
(2,986 Views)

Chris,

 

Thank you very much. I am outside of the lab atm, but tomorrow at first hour i'll test and give feedback.

 

Really thank you for your time

0 Kudos
Message 16 of 31
(2,975 Views)

Chris,

 

Not able to work. FOllowing, i'll attach the errors i have. Picture 1 is first try to modify any value. Second picture is trying to modify after getting error.

 

Regards

 

 

Download All
0 Kudos
Message 17 of 31
(2,954 Views)

Hmmm,

 

Are you sure you have correct VISA resource name? Try doing this: Make a separate VI and just direct wire it all without the event structure and see if the VIs you are using from Tek are working properly. Pass the resource into the initialize and the output resource out to the next Tek VI, so on and so forth.

CLD | CTD
0 Kudos
Message 18 of 31
(2,940 Views)

Hi Cris,

 

As u can see in DAQ MAx it works.

 

Its really strange, the turn ON / OFF channel VI works, as the wave generator also but only when i operate inside the VI, not having the block.

 

The resource name is correct, changed to Func, maybe the _ did something strange

0 Kudos
Message 19 of 31
(2,923 Views)

Alright,

 

Try the first VI and see if an error pops up while single stepping through and highlight execution is on. Tell me if the error case surrounding the while loop is where the error begins.

 

Then try the second VI and see what happens, that has no event structure, just to see if what you're doing programmatically is the right inputs.

CLD | CTD
Download All
0 Kudos
Message 20 of 31
(2,919 Views)