LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB drivers running simultaneously in a sub-vi ??

Solved!
Go to solution

Hi guys, sorry for my dupicated post, but i'm with a short schedule on this.

 

I need to innitialize and read several data with 4 different instruments. I got 1 power source, 2 multimeters and 1 temperature controller. And i need to know if i'm doing it right like the attach i'm sending. I know that probably nobody has these specific drivers installed, but if anyone has already worked with this, give me some ideas or tips, please.

 

 

Any opinions are welcome.

 

Thanks for your time.

TN
Currently using LV 8.5
logo
0 Kudos
Message 1 of 22
(4,071 Views)
Can i get some help. Please..
TN
Currently using LV 8.5
logo
0 Kudos
Message 2 of 22
(4,056 Views)

Hi,

 
You could do it in a sequence by using the error in / error out wires. According to this KB
the approach is open A, open B, write A, write B, read A, read B etc..

Hopefully this resource will get you started on controlling multiple GPIB instruments.

 

Regards,

Message Edité par Steve Mohamed le 07-15-2009 03:22 PM
Steve M.
Message 3 of 22
(4,052 Views)

The link you posted is broken. Can you re-post it please.

 

 

Thanks

TN
Currently using LV 8.5
logo
0 Kudos
Message 4 of 22
(4,046 Views)

Please get that KB article fixed. It's yet another one that has images which link to ae.natinst.com, which THE OUTSIDE WORLD CANNOT SEE!

 

Sorry, didn't mean to shout at you and I know you're not responsible, but you have no idea how many times this issue with the KB articles comes up on this form. And, yes, it's been reported many times. 

 

 

To OP: You don't really need to use two loops. One loop is sufficient. If you want to turn off the reading from some multimeters while the code is running then provide checkboxes on the front panel, and place your meter readings inside of case structures that are driven by these checkboxes so that the readings only occur if the checkboxes are on.

Message 5 of 22
(4,034 Views)

smercurio_fc a écrit:

Please get that KB article fixed. It's yet another one that has images which link to ae.natinst.com, which THE OUTSIDE WORLD CANNOT SEE!

 

Sorry, didn't mean to shout at you and I know you're not responsible, but you have no idea how many times this issue with the KB articles comes up on this form. And, yes, it's been reported many times. 


 

In fact I 've already edited my post when TN posted as you can see with my last reply above.

Nevertheless I admit that I would have inform you that the link was fixed. Sorry, I'll be less absent-minded in the futureSmiley Happy

 

Regards,

Steve M.
Message 6 of 22
(4,025 Views)

The problem I'm pointing out isn't with the link - it's with the article. We out here in the non-NI world cannot see the image that's in the article. The HTML tag for the image is:

<img width="500" height="329" src="http://ae.natinst.com/operations/ae/public.nsf/$CXIV/ATTACH-AEEE-7JDRCS/$FILE/lvvisa.jpg" alt="" />

The outside world cannot access ae.natinst.com. As I've noted, there are MANY KB articles with this problem. I'm not picking on you, believe me. Smiley Wink

Message 7 of 22
(4,019 Views)

I still can't open the link. But i think i made some improvements since i posted this question.

 

Can you guys check if i'm heading the right direction? I'm attaching the VI.

TN
Currently using LV 8.5
logo
0 Kudos
Message 8 of 22
(4,011 Views)
No. Using the timed loop the way you have is just a bit silly, imho. Use the error in/error out clusters to control data flow and don't use a sequence structure. Wire all of the initialize and setup functions together and have both read funtions in the same loop. You would end up with one long chain of VIs. Since you can only read one instrument at a time with GPIB, it does not make any sense to have two separate loops. 
Message 9 of 22
(4,003 Views)

 The GPIB/USB that i use, wires to the 1st instrument, but i have all 4 instruments wired in serie. So, i'm communicating with all of them simultaneously, right? The time delay i'm using between the boot of the instruments and the aquisition of data was just for testing, and to see if it would work out, since i have to give a delay between the processes. And because i can't start sending DC current at the same time i'm measuring the data.

 

With this explaination, i'm still on the wrong way?

 

 

Thanks for the comments and helps.

TN
Currently using LV 8.5
logo
0 Kudos
Message 10 of 22
(3,986 Views)