LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Instrument I/O Assistant only reading the first command

I am very, very new to LabVIEW and I am trying to program a device using ASCII codes.  When using the VI Instrument I/O Assistant only the first command is executed. So I am wondering if there is something obvious I am missing to make all the commands executed or a way to write multiple ASCII codes in one Write command?  Any help would be much appreciated. Thanks. 

0 Kudos
Message 1 of 7
(2,792 Views)

@Rach_77 wrote:

I am very, very new to LabVIEW and I am trying to program a device using ASCII codes.  When using the VI Instrument I/O Assistant only the first command is executed. So I am wondering if there is something obvious I am missing to make all the commands executed or a way to write multiple ASCII codes in one Write command?  Any help would be much appreciated. Thanks. 


We could help (most likely anyway) and yes, If you are new to LabVIEW it may be obvious to those of us that can look at what you've done so far, (think: attach your codeSmiley Sad) and know what device you are trying to communicate with. (make and model at least - best Link to the manual as we may need it as a reference Smiley Surprised


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 7
(2,791 Views)
I am using a Stepnet Panel Amplifier, and the online manual's address is below. An example of a code I am trying to do is: .b s r0xc8 0 .b s r0xca 40000 .b s r0xcb 70000 .b s r0xcc 200000 .b s r0xcd 200000 .b s r0x24 31 .b t 1 However only the first line ".b s r0xc8 0" is being executed and the device will not move unless ".b t 1" is the first Write command. http://www.copleycontrols.com/motion/pdf/StepNet_panel_Manual.pdf
0 Kudos
Message 3 of 7
(2,781 Views)

I believe the serial interface only accepts 1 command at a time. Are you sending the CR and reading the response after each command?


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 7
(2,775 Views)
Only the first command has the response "ok" when I try to run multiple commands. If only one command can be processed at a time what is the best way to sequence commands so the device has an order it can follow?
0 Kudos
Message 5 of 7
(2,770 Views)
Nevermind, I put the commands I needed in a sequence structure and put those inside a case structure. Thanks for your help! 🙂
0 Kudos
Message 6 of 7
(2,747 Views)

Sorry, I was busy today...

 

Something like this might be a bit more scaleable than a sequence inside a case. 

1.png

 

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 7
(2,741 Views)