LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set channel, mode and voltage value to chroma 63103

Hi,

 

I am currently working on a project using LabVIEW and Chroma 63103 DC electronic load and Chroma 6314 which actually comes tgthr. I have 4 double modules. Means CH1 and CH2 are in one module, and CH3 and CH4 in another module. 

 

I am trying to communicate to the electronic load to set the things i want to set by software(labview) instead of manually physically pressing the buttons.

 

DSC_1356.JPG

 

The steps i have to do:

 

1. toggle CHAN button to choose channel no(either 1, 3, 5, 7) (right now in pict it is CH7)

2. set to constant voltage(CV) mode by pressing MODE button (right now in pict it is in CV mode)

3. activate load of channel by pressing LOAD button (right now in pict it is activated)
4. type in voltage you want to set (eg 10V) (right now in the pict it is 10V)

I am currently using VISA (attached) but my program doesnt control the load. What can i do to improve my program? Or are there any specific function i can write to control the load? Because all that is stated in the labVIEW program i have written is already all the things i think are feasible when reading the manual 😞

 

 

So when i simulate a voltage into the load through a power source, the load display will only receive till 10V no matter if i tune the source to above 10V.

 

Any comment or help is appreciated especially if you have used this dummy load before. Thank you!! 🙂

0 Kudos
Message 1 of 7
(5,635 Views)

Have you tried looking for the LabVIEW drivers for the Chroma instruments? A lot of device manufacturers provide LabVIEW drivers which give you a simple API to communicate with the device. Be aware though that sometimes the quality of the drivers might not be that great - but at least it's a starting point. You probably find them either on the manufacturer's website or from the LabVIEW Driver Network.

 

Also - even if you just use raw serial commands - you never configure the serial port to have the right parameters (e.g. baud rate, termination etc.) to match your instrument. If you go down the route of writing your own driver then you'll need to be very careful about reading the device documentation to ensure you send the correct commands to the device (e.g. casing - "CHANnel:ACTive").

 

I had a look at your VI. Get rid of the stacked sequence structure - it makes it very difficult to see what is happening. Use data flow instead!


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 7
(5,614 Views)

@Sam_Sharp wrote:

. If you go down the route of writing your own driver then you'll need to be very careful about reading the device documentation to ensure you send the correct commands to the device (e.g. casing - "CHANnel:ACTive").


 

Actually this syntax is pretty common for IEE488.2 compatible instrument syntax and doesn't usually mean that you have to send the commands exactly in that uppercase/lowercase writing. The command line syntax for those instruments is usually case insensitive and the uppercase part of the command is mandatory while the lower case part can be ommitted (but doesn't have to). Some instruments allow part or all of the lowercase command to be omitted, others allow only for the whole part to be present or omitted but not fractions thereof.

 

Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 7
(5,598 Views)

I haven't used those specific instruments - I was just making a generic point about having to read the documentation for the device to ensure you send/receive the right commands - not specifically that it was wrong. 🙂


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 7
(5,581 Views)

Hi, 

 

I have tried to fetch the voltage and current by sending            :FETCh:VOLTage?;          through VISA Write. It works fine.

These are the commands given in the manual book. That is where i derived it from 🙂

 

Thank you for reminding me about the upper case and lower case. I purposely put both cases so it would be easier for me. 

 

If my VISA Write and Read works fine when i want to fetch voltage and current, shouldnt i be able to control the machine by putting           :MODE CV;         to set the mode?

 

 

0 Kudos
Message 5 of 7
(5,565 Views)
Before doing any LabVIEW programming, you should manually configure the instrument so you what you can and cannot do and what order you have to do things. Then go into MAX to send the commands that you think will configure the instrument the same way. Then you can start to program.
0 Kudos
Message 6 of 7
(5,554 Views)

Thank you everyone for your inputs! 

It finally managed to work. By putting VISA Write with commands extracted from the manual. Its just that ive been using the wrong commands from the manual so my electronic load wouldnt accept it. 

 

 

0 Kudos
Message 7 of 7
(5,513 Views)